From ecf11ad973bef098143ccab351996747d9a3a3c0 Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Wed, 3 Apr 2024 12:02:53 -0600 Subject: [PATCH] feat: Adding run groups support (#8) * feat: Adding run groups support * feat: Adding metadata support * feat: Adding metadata support * PR comments --- README.md | 34 +- ...rom-id-queue-cloud.js => list-pokemons.js} | 7 - examples/test-from-id-queue.js | 41 - examples/test-from-id.js | 61 - go.mod | 34 +- go.sum | 454 +- models/job.go | 24 +- models/tracetestOptions.go | 1 + models/tracetestRun.go | 2 +- modules/metadata/metadata.go | 25 + modules/tracetest/api.go | 142 +- modules/tracetest/queue.go | 8 +- modules/tracetest/tracetest.go | 37 +- openapi/api_api.go | 2689 ----------- openapi/api_resource_api.go | 3959 ----------------- openapi/client.go | 657 --- openapi/configuration.go | 214 - openapi/model_assertion_result.go | 196 - openapi/model_assertion_results.go | 160 - .../model_assertion_results_results_inner.go | 160 - openapi/model_assertion_span_result.go | 232 - openapi/model_aws_x_ray.go | 268 -- openapi/model_azure_app_insights.go | 232 - openapi/model_base_client.go | 196 - openapi/model_configuration_resource.go | 161 - openapi/model_configuration_resource_list.go | 160 - openapi/model_configuration_resource_spec.go | 190 - openapi/model_connection_result.go | 232 - openapi/model_connection_test_step.go | 232 - openapi/model_data_store.go | 501 --- openapi/model_data_store_list.go | 160 - openapi/model_data_store_resource.go | 161 - openapi/model_demo.go | 161 - openapi/model_demo_list.go | 160 - openapi/model_demo_open_telemetry_store.go | 236 - openapi/model_demo_pokeshop.go | 199 - openapi/model_demo_spec.go | 298 -- openapi/model_elastic_search.go | 304 -- openapi/model_exported_test_information.go | 142 - openapi/model_get_test_suites_200_response.go | 160 - openapi/model_grpc_client_settings.go | 412 -- openapi/model_grpc_header.go | 160 - openapi/model_grpc_request.go | 340 -- openapi/model_grpc_response.go | 200 - openapi/model_http_auth.go | 232 - openapi/model_http_auth_api_key.go | 196 - openapi/model_http_auth_basic.go | 160 - openapi/model_http_auth_bearer.go | 124 - openapi/model_http_client_settings.go | 232 - openapi/model_http_header.go | 160 - openapi/model_http_request.go | 308 -- openapi/model_http_response.go | 232 - openapi/model_kafka_authentication.go | 160 - openapi/model_kafka_message_header.go | 160 - openapi/model_kafka_request.go | 344 -- openapi/model_kafka_response.go | 160 - openapi/model_linter_resource.go | 160 - openapi/model_linter_resource_list.go | 124 - openapi/model_linter_resource_plugin.go | 264 -- openapi/model_linter_resource_rule.go | 332 -- openapi/model_linter_resource_spec.go | 268 -- openapi/model_linter_result.go | 232 - openapi/model_linter_result_plugin.go | 268 -- openapi/model_linter_result_plugin_rule.go | 412 -- .../model_linter_result_plugin_rule_result.go | 232 - ..._linter_result_plugin_rule_result_error.go | 232 - openapi/model_list_demos_200_response.go | 160 - .../model_list_variable_sets_200_response.go | 160 - openapi/model_missing_variable.go | 160 - openapi/model_missing_variables_error.go | 124 - openapi/model_output_info.go | 196 - openapi/model_polling_info.go | 196 - openapi/model_polling_info_periodic.go | 160 - openapi/model_polling_profile.go | 161 - openapi/model_polling_profile_list.go | 160 - openapi/model_polling_profile_spec.go | 245 - .../model_polling_profile_spec_periodic.go | 162 - openapi/model_required_gates_result.go | 169 - openapi/model_resolve_context.go | 268 -- openapi/model_resolve_request_info.go | 160 - openapi/model_resolve_response_info.go | 124 - openapi/model_resource.go | 146 - openapi/model_run_information.go | 234 - openapi/model_selected_spans_result.go | 160 - openapi/model_selector.go | 160 - openapi/model_selector_filter.go | 169 - openapi/model_selector_pseudo_class.go | 151 - openapi/model_signal_fx.go | 160 - openapi/model_span.go | 379 -- openapi/model_span_selector.go | 209 - openapi/model_supported_clients.go | 110 - openapi/model_supported_connection_types.go | 110 - openapi/model_supported_data_stores.go | 136 - openapi/model_supported_gates.go | 112 - openapi/model_test_.go | 414 -- openapi/model_test_connection_response.go | 160 - openapi/model_test_output.go | 232 - openapi/model_test_resource.go | 161 - openapi/model_test_resource_list.go | 160 - openapi/model_test_run.go | 952 ---- openapi/model_test_run_event.go | 449 -- openapi/model_test_run_outputs_inner.go | 232 - openapi/model_test_spec.go | 232 - openapi/model_test_specs.go | 124 - openapi/model_test_suite.go | 380 -- openapi/model_test_suite_resource.go | 161 - openapi/model_test_suite_resource_list.go | 160 - openapi/model_test_suite_run.go | 481 -- openapi/model_test_summary.go | 158 - openapi/model_test_summary_last_run.go | 238 - openapi/model_tls.go | 232 - openapi/model_tls_setting.go | 268 -- openapi/model_trace.go | 197 - openapi/model_traceid_request.go | 124 - openapi/model_traceid_response.go | 124 - openapi/model_trigger.go | 268 -- openapi/model_trigger_result.go | 160 - .../model_trigger_result_trigger_result.go | 232 - openapi/model_variable.go | 160 - openapi/model_variable_set.go | 232 - openapi/model_variable_set_resource.go | 161 - openapi/model_variable_set_resource_list.go | 160 - openapi/model_variable_set_value.go | 160 - openapi/model_version.go | 268 -- openapi/response.go | 47 - openapi/utils.go | 347 -- 126 files changed, 625 insertions(+), 31444 deletions(-) rename examples/{test-from-id-queue-cloud.js => list-pokemons.js} (76%) delete mode 100644 examples/test-from-id-queue.js delete mode 100644 examples/test-from-id.js create mode 100644 modules/metadata/metadata.go delete mode 100644 openapi/api_api.go delete mode 100644 openapi/api_resource_api.go delete mode 100644 openapi/client.go delete mode 100644 openapi/configuration.go delete mode 100644 openapi/model_assertion_result.go delete mode 100644 openapi/model_assertion_results.go delete mode 100644 openapi/model_assertion_results_results_inner.go delete mode 100644 openapi/model_assertion_span_result.go delete mode 100644 openapi/model_aws_x_ray.go delete mode 100644 openapi/model_azure_app_insights.go delete mode 100644 openapi/model_base_client.go delete mode 100644 openapi/model_configuration_resource.go delete mode 100644 openapi/model_configuration_resource_list.go delete mode 100644 openapi/model_configuration_resource_spec.go delete mode 100644 openapi/model_connection_result.go delete mode 100644 openapi/model_connection_test_step.go delete mode 100644 openapi/model_data_store.go delete mode 100644 openapi/model_data_store_list.go delete mode 100644 openapi/model_data_store_resource.go delete mode 100644 openapi/model_demo.go delete mode 100644 openapi/model_demo_list.go delete mode 100644 openapi/model_demo_open_telemetry_store.go delete mode 100644 openapi/model_demo_pokeshop.go delete mode 100644 openapi/model_demo_spec.go delete mode 100644 openapi/model_elastic_search.go delete mode 100644 openapi/model_exported_test_information.go delete mode 100644 openapi/model_get_test_suites_200_response.go delete mode 100644 openapi/model_grpc_client_settings.go delete mode 100644 openapi/model_grpc_header.go delete mode 100644 openapi/model_grpc_request.go delete mode 100644 openapi/model_grpc_response.go delete mode 100644 openapi/model_http_auth.go delete mode 100644 openapi/model_http_auth_api_key.go delete mode 100644 openapi/model_http_auth_basic.go delete mode 100644 openapi/model_http_auth_bearer.go delete mode 100644 openapi/model_http_client_settings.go delete mode 100644 openapi/model_http_header.go delete mode 100644 openapi/model_http_request.go delete mode 100644 openapi/model_http_response.go delete mode 100644 openapi/model_kafka_authentication.go delete mode 100644 openapi/model_kafka_message_header.go delete mode 100644 openapi/model_kafka_request.go delete mode 100644 openapi/model_kafka_response.go delete mode 100644 openapi/model_linter_resource.go delete mode 100644 openapi/model_linter_resource_list.go delete mode 100644 openapi/model_linter_resource_plugin.go delete mode 100644 openapi/model_linter_resource_rule.go delete mode 100644 openapi/model_linter_resource_spec.go delete mode 100644 openapi/model_linter_result.go delete mode 100644 openapi/model_linter_result_plugin.go delete mode 100644 openapi/model_linter_result_plugin_rule.go delete mode 100644 openapi/model_linter_result_plugin_rule_result.go delete mode 100644 openapi/model_linter_result_plugin_rule_result_error.go delete mode 100644 openapi/model_list_demos_200_response.go delete mode 100644 openapi/model_list_variable_sets_200_response.go delete mode 100644 openapi/model_missing_variable.go delete mode 100644 openapi/model_missing_variables_error.go delete mode 100644 openapi/model_output_info.go delete mode 100644 openapi/model_polling_info.go delete mode 100644 openapi/model_polling_info_periodic.go delete mode 100644 openapi/model_polling_profile.go delete mode 100644 openapi/model_polling_profile_list.go delete mode 100644 openapi/model_polling_profile_spec.go delete mode 100644 openapi/model_polling_profile_spec_periodic.go delete mode 100644 openapi/model_required_gates_result.go delete mode 100644 openapi/model_resolve_context.go delete mode 100644 openapi/model_resolve_request_info.go delete mode 100644 openapi/model_resolve_response_info.go delete mode 100644 openapi/model_resource.go delete mode 100644 openapi/model_run_information.go delete mode 100644 openapi/model_selected_spans_result.go delete mode 100644 openapi/model_selector.go delete mode 100644 openapi/model_selector_filter.go delete mode 100644 openapi/model_selector_pseudo_class.go delete mode 100644 openapi/model_signal_fx.go delete mode 100644 openapi/model_span.go delete mode 100644 openapi/model_span_selector.go delete mode 100644 openapi/model_supported_clients.go delete mode 100644 openapi/model_supported_connection_types.go delete mode 100644 openapi/model_supported_data_stores.go delete mode 100644 openapi/model_supported_gates.go delete mode 100644 openapi/model_test_.go delete mode 100644 openapi/model_test_connection_response.go delete mode 100644 openapi/model_test_output.go delete mode 100644 openapi/model_test_resource.go delete mode 100644 openapi/model_test_resource_list.go delete mode 100644 openapi/model_test_run.go delete mode 100644 openapi/model_test_run_event.go delete mode 100644 openapi/model_test_run_outputs_inner.go delete mode 100644 openapi/model_test_spec.go delete mode 100644 openapi/model_test_specs.go delete mode 100644 openapi/model_test_suite.go delete mode 100644 openapi/model_test_suite_resource.go delete mode 100644 openapi/model_test_suite_resource_list.go delete mode 100644 openapi/model_test_suite_run.go delete mode 100644 openapi/model_test_summary.go delete mode 100644 openapi/model_test_summary_last_run.go delete mode 100644 openapi/model_tls.go delete mode 100644 openapi/model_tls_setting.go delete mode 100644 openapi/model_trace.go delete mode 100644 openapi/model_traceid_request.go delete mode 100644 openapi/model_traceid_response.go delete mode 100644 openapi/model_trigger.go delete mode 100644 openapi/model_trigger_result.go delete mode 100644 openapi/model_trigger_result_trigger_result.go delete mode 100644 openapi/model_variable.go delete mode 100644 openapi/model_variable_set.go delete mode 100644 openapi/model_variable_set_resource.go delete mode 100644 openapi/model_variable_set_resource_list.go delete mode 100644 openapi/model_variable_set_value.go delete mode 100644 openapi/model_version.go delete mode 100644 openapi/response.go delete mode 100644 openapi/utils.go diff --git a/README.md b/README.md index 5bb8ca3..fd3896b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # xk6-tracetest -This extension adds tracetest support to [k6](https://github.com/grafana/k6)! +This extension adds Tracetest support to [k6](https://github.com/grafana/k6)! That means that if you're testing an instrumented system, you can use this extension to trigger test runs. @@ -29,22 +29,36 @@ $ go install go.k6.io/xk6/cmd/xk6@latest $ xk6 build --with github.com/kubeshop/xk6-tracetest@latest ``` -## Available Variables +3. Run a script: + +```bash +$ ./k6 run examples/list-pokemons.js --env XK6_TRACETEST_API_TOKEN= -o xk6-tracetest + +``` +## Example + +To run a full example take a look at the fully flesh demo we have for you in the Tracetest main mono repo: [examples/tracetest-k6](https://github.com/kubeshop/tracetest/tree/main/examples/tracetest-k6) + +## Using the binary with Tracetest Core + +Moving forward the latest updates will be only available from the tracetest App, if you want to keep using it with the OpenSource version make sure to build it with the version supporting it. + +1. Build the binary: + +```bash +$ xk6 build --with github.com/kubeshop/xk6-tracetest@0v.1.7 # OSS supported version +``` + +### Available Variables If you want to configure the tracetest k6 binary you can do it by using any of the following environment variables - **XK6_TRACETEST_SERVER_URL:** Updates the tracetest server url for API interactions (can be overwritten by the script config) - **XK6_TRACETEST_SERVER_PATH:** Updates the tracetest server path for API interactions (can be overwritten by the script config) -- **XK6_TRACETEST_SERVER_PATH:** Updates the tracetest server token that will be used to authenticate with the server (can be overwritten by the script config) +- **XK6_TRACETEST_TOKEN:** Updates the tracetest server token that will be used to authenticate with the server (can be overwritten by the script config) You can also set a default tracetest endpoint when running the k6 binary by using the following option: -`./k6 run examples/test-from-id.js -o xk6-tracetest=` - -## Example - -To run a full example take a look at the fully flesh demo we have for you in the Tracetest main mono repo: [examples/tracetest-k6](https://github.com/kubeshop/tracetest/tree/main/examples/tracetest-k6) +`./k6 run examples/list-pokemons.js -o xk6-tracetest=` -## Running on https://app.tracetest.io -`./k6 run examples/test-from-id.js --env XK6_TRACETEST_API_TOKEN= -o xk6-tracetest=https://api.tracetest.io` diff --git a/examples/test-from-id-queue-cloud.js b/examples/list-pokemons.js similarity index 76% rename from examples/test-from-id-queue-cloud.js rename to examples/list-pokemons.js index 041532e..5a3356a 100644 --- a/examples/test-from-id-queue-cloud.js +++ b/examples/list-pokemons.js @@ -7,11 +7,7 @@ export const options = { }; const http = new Http(); -const testId = "c80sJ_4SR"; const tracetest = Tracetest(); -tracetest.updateFromConfig({ - api_token: "your-api-token", -}); export default function () { const url = "http://localhost:8081/pokemon?take=5"; @@ -20,12 +16,9 @@ export default function () { tracetest.runTest( response.trace_id, { - test_id: testId, - variable_name: "TRACE_ID", should_wait: true, }, { - id: "123", url, method: "GET", } diff --git a/examples/test-from-id-queue.js b/examples/test-from-id-queue.js deleted file mode 100644 index bfbfd43..0000000 --- a/examples/test-from-id-queue.js +++ /dev/null @@ -1,41 +0,0 @@ -import { Http, Tracetest } from "k6/x/tracetest"; -import { sleep } from "k6"; - -export const options = { - vus: 1, - duration: "5s", -}; - -const http = new Http(); -const testId = "J0d887oVR"; -const tracetest = Tracetest(); - -tracetest.updateFromConfig({ - server_url: "http://localhost:11633", -}); - -export default function () { - const url = "http://localhost:8081/pokemon?take=5"; - const response = http.get(url); - tracetest.runTest( - response.trace_id, - { - test_id: testId, - should_wait: true, - variable_name: "TRACE_ID", - }, - { - id: "123", - url, - method: "GET", - } - ); - - sleep(1); -} - -export function handleSummary() { - return { - stdout: tracetest.summary(), - }; -} diff --git a/examples/test-from-id.js b/examples/test-from-id.js deleted file mode 100644 index 0f4795c..0000000 --- a/examples/test-from-id.js +++ /dev/null @@ -1,61 +0,0 @@ -import { check } from "k6"; -import { textSummary } from "https://jslib.k6.io/k6-summary/0.0.2/index.js"; -import { Http, Tracetest } from "k6/x/tracetest"; -import { sleep } from "k6"; - -export const options = { - vus: 1, - duration: "5s", - thresholds: { - http_req_duration: ["p(95)<1"], // 95% of requests should be below 200ms - }, -}; -let pokemonId = 6; //charizard -const http = new Http(); -const testId = "kc_MgKoVR"; -const tracetest = Tracetest(); - -export default function () { - const url = "http://localhost:8081/pokemon/import"; - const payload = JSON.stringify({ - id: pokemonId, - }); - const params = { - headers: { - "Content-Type": "application/json", - }, - tracetest: { - testId, - }, - }; - - const response = http.post(url, payload, params); - - check(response, { - "is status 200": (r) => r.status === 200, - "body matches de id": (r) => JSON.parse(r.body).id === pokemonId, - }); - - pokemonId += 1; - sleep(1); -} - -// enable this to return a non-zero status code if a tracetest test fails -export function teardown() { - tracetest.validateResult(); -} - -export function handleSummary(data) { - // combine the default summary with the tracetest summary - const tracetestSummary = tracetest.summary(); - const defaultSummary = textSummary(data); - const summary = ` - ${defaultSummary} - ${tracetestSummary} - `; - - return { - stderr: summary, - "tracetest.json": tracetest.json(), - }; -} diff --git a/go.mod b/go.mod index bfa574a..f4a50ed 100644 --- a/go.mod +++ b/go.mod @@ -1,18 +1,22 @@ module github.com/kubeshop/xk6-tracetest -go 1.19 +go 1.21 + +toolchain go1.21.6 require ( + github.com/davecgh/go-spew v1.1.1 github.com/dop251/goja v0.0.0-20230531210528-d7324b2d74f7 github.com/golang-jwt/jwt v3.2.2+incompatible + github.com/kubeshop/tracetest v0.16.2-rc.1 github.com/sirupsen/logrus v1.9.0 go.k6.io/k6 v0.45.1 go.opentelemetry.io/contrib/propagators/aws v1.12.0 - go.opentelemetry.io/contrib/propagators/b3 v1.12.0 + go.opentelemetry.io/contrib/propagators/b3 v1.17.0 go.opentelemetry.io/contrib/propagators/jaeger v1.12.0 go.opentelemetry.io/contrib/propagators/ot v1.12.0 - go.opentelemetry.io/otel v1.11.2 - go.opentelemetry.io/otel/trace v1.11.2 + go.opentelemetry.io/otel v1.19.0 + go.opentelemetry.io/otel/trace v1.19.0 ) require ( @@ -23,12 +27,13 @@ require ( github.com/andybalholm/cascadia v1.3.1 // indirect github.com/dlclark/regexp2 v1.9.0 // indirect github.com/fatih/color v1.15.0 // indirect - github.com/go-logr/logr v1.2.3 // indirect + github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect + github.com/google/uuid v1.3.0 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/klauspost/compress v1.16.5 // indirect + github.com/klauspost/compress v1.17.3 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.18 // indirect @@ -37,17 +42,18 @@ require ( github.com/onsi/ginkgo v1.16.5 // indirect github.com/onsi/gomega v1.20.2 // indirect github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect - github.com/spf13/afero v1.1.2 // indirect + github.com/spf13/afero v1.9.3 // indirect + github.com/teris-io/shortid v0.0.0-20220617161101-71ec9f2aa569 // indirect github.com/tidwall/gjson v1.14.4 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect - go.opentelemetry.io/otel/sdk v1.11.2 // indirect - go.uber.org/atomic v1.7.0 // indirect - go.uber.org/multierr v1.8.0 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + go.opentelemetry.io/otel/metric v1.19.0 // indirect + go.opentelemetry.io/otel/sdk v1.19.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.17.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.3.0 // indirect gopkg.in/guregu/null.v3 v3.3.0 // indirect ) diff --git a/go.sum b/go.sum index c462a48..84e9d2e 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,45 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 h1:mFRzDkZVAjdal+s7s0MwaRv9igoPqLRdzOLzw/8Xvq8= github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= github.com/PuerkitoBio/goquery v1.8.1/go.mod h1:Q8ICL1kNUJ2sXGoAhPGUdYDJvgQgHzJsnnd3H7Ho5jQ= github.com/Soontao/goHttpDigestClient v0.0.0-20170320082612-6d28bb1415c5 h1:k+1+doEm31k0rRjCjLnGG3YRkuO9ljaEyS2ajZd6GK8= @@ -8,9 +48,17 @@ github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -24,14 +72,24 @@ github.com/dop251/goja v0.0.0-20230531210528-d7324b2d74f7 h1:cVGkvrdHgyBkYeB6kMC github.com/dop251/goja v0.0.0-20230531210528-d7324b2d74f7/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8aVqWbuLRMHItjPUyqdj+HWPvnQe8V8y1nDpIbM= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= -github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= @@ -40,33 +98,92 @@ github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompati github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20230207041349-798e818bf904 h1:4/hN5RUoecvl+RmJRE2YxKWtnnQls6rQjjW5oV7qg2U= github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= -github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.17.3 h1:qkRjuerhUU1EmXLYGkSH6EZL+vPSxIrYjLNAK4slzwA= +github.com/klauspost/compress v1.17.3/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kubeshop/tracetest v0.16.2-rc.1 h1:zUT5UiynqX259Y8nPMrx+uDYaCTUiJgJ8762GzlLoBQ= +github.com/kubeshop/tracetest v0.16.2-rc.1/go.mod h1:WQ4vRh+wWvcPf39e5vRClyiZXdCe5e0YU5D9zsSJBmk= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= @@ -75,9 +192,11 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/ github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mccutchen/go-httpbin v1.1.2-0.20190116014521-c5cb2f4802fa h1:lx8ZnNPwjkXSzOROz0cg69RlErRXs+L3eDkggASWKLo= +github.com/mccutchen/go-httpbin v1.1.2-0.20190116014521-c5cb2f4802fa/go.mod h1:fhpOYavp5g2K74XDl/ao2y4KvhqVtKlkg1e+0UaQv7I= github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd h1:AC3N94irbx2kWGA8f/2Ks7EQl2LxKIRQYuT9IJDwgiI= github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd/go.mod h1:9vRHVuLCjoFfE3GT06X0spdOAO+Zzo4AMjdIwUHBvAk= github.com/mstoykov/envconfig v1.4.1-0.20220114105314-765c6d8c76f1 h1:94EkGmhXrVUEal+uLwFUf4fMXPhZpM5tYxuIsxrCCbI= +github.com/mstoykov/envconfig v1.4.1-0.20220114105314-765c6d8c76f1/go.mod h1:vk/d9jpexY2Z9Bb0uB4Ndesss1Sr0Z9ZiGUrg5o9VGk= github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d h1:VhgPp6v9qf9Agr/56bj7Y/xa04UccTW04VP0Qed4vnQ= github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d/go.mod h1:YUTz3bUH2ZwIWBy3CJBeOBEugqcmXREj14T+iG/4k4U= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= @@ -91,20 +210,27 @@ github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7J github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.20.2 h1:8uQq0zMgLEfa0vRrrBgaJF2gyW9Da9BmfGV+OyUzfkY= github.com/onsi/gomega v1.20.2/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e h1:zWKUYT07mGmVBH+9UgnHXd/ekCK99C8EbDSAt5qsjXE= github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e/go.mod h1:Yow6lPLSAXx2ifx470yD/nUe22Dv5vBvxK/UK9UUTVs= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= +github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/teris-io/shortid v0.0.0-20220617161101-71ec9f2aa569 h1:xzABM9let0HLLqFypcxvLmlvEciCHL7+Lv+4vwZqecI= +github.com/teris-io/shortid v0.0.0-20220617161101-71ec9f2aa569/go.mod h1:2Ly+NIftZN4de9zRmENdYbvPQeaVIYKWpLFStLFEBgI= github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= @@ -112,62 +238,178 @@ github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JT github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.k6.io/k6 v0.45.1 h1:z+iVxE7Qze2Ka8tKvnjerOsoTuQb8e27Vqd1wcG2IFI= go.k6.io/k6 v0.45.1/go.mod h1:SBO/sqx6h/a0lJqEioMEpneb6zULogIyDmz+ufFqtIE= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opentelemetry.io/contrib/propagators/aws v1.12.0 h1:n3lNyZs2ytVEfFhcn2QO5Z80lgrMXyP1Ncx0C7rUU8A= go.opentelemetry.io/contrib/propagators/aws v1.12.0/go.mod h1:xZSOQIixr40Cq3NHn/YsvkDOzpVaR0j19WJRZnOKwbk= -go.opentelemetry.io/contrib/propagators/b3 v1.12.0 h1:OtfTF8bneN8qTeo/j92kcvc0iDDm4bm/c3RzaUJfiu0= -go.opentelemetry.io/contrib/propagators/b3 v1.12.0/go.mod h1:0JDB4elfPUWGsCH/qhaMkDzP1l8nB0ANVx8zXuAYEwg= +go.opentelemetry.io/contrib/propagators/b3 v1.17.0 h1:ImOVvHnku8jijXqkwCSyYKRDt2YrnGXD4BbhcpfbfJo= +go.opentelemetry.io/contrib/propagators/b3 v1.17.0/go.mod h1:IkfUfMpKWmynvvE0264trz0sf32NRTZL4nuAN9AbWRc= go.opentelemetry.io/contrib/propagators/jaeger v1.12.0 h1:fQBEhLiGQihBAAmiozZihHvO0t/+NFZMOLx80bmAi+s= go.opentelemetry.io/contrib/propagators/jaeger v1.12.0/go.mod h1:hryAK4MKIBKRaUh8n0/vHWuu4fzhR0XB1Q8B4wz3qhw= go.opentelemetry.io/contrib/propagators/ot v1.12.0 h1:6yNXAAQW08uIwgQKQvGC/0/5KkUCZmOcwSjj8zYg1ZU= go.opentelemetry.io/contrib/propagators/ot v1.12.0/go.mod h1:t2n1RTxGm14/AEMSELd0jJo3NBjeEHnDtCRYXKTl0Ak= -go.opentelemetry.io/otel v1.11.2 h1:YBZcQlsVekzFsFbjygXMOXSs6pialIZxcjfO/mBDmR0= -go.opentelemetry.io/otel v1.11.2/go.mod h1:7p4EUV+AqgdlNV9gL97IgUZiVR3yrFXYo53f9BM3tRI= -go.opentelemetry.io/otel/sdk v1.11.2 h1:GF4JoaEx7iihdMFu30sOyRx52HDHOkl9xQ8SMqNXUiU= -go.opentelemetry.io/otel/sdk v1.11.2/go.mod h1:wZ1WxImwpq+lVRo4vsmSOxdd+xwoUJ6rqyLc3SyX9aU= -go.opentelemetry.io/otel/trace v1.11.2 h1:Xf7hWSF2Glv0DE3MH7fBHvtpSBsjcBUe5MYAmZM/+y0= -go.opentelemetry.io/otel/trace v1.11.2/go.mod h1:4N+yC7QEz7TTsG9BSRLNAa63eg5E06ObSbKPmxQ/pKA= -go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= -go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs= +go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY= +go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE= +go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8= +go.opentelemetry.io/otel/sdk v1.19.0 h1:6USY6zH+L8uMH8L3t1enZPR3WFEmSTADlqldyHtJi3o= +go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A= +go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg= +go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -176,38 +418,176 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 h1:DdoeryqhaXp1LtT/emMP1BRJPHHKFi5akj/nbx/zNTA= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 h1:Z0hjGZePRE0ZBWotvtrwxFNrNE9CUAGtplaDK5NNI/g= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ= +google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -223,5 +603,15 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/models/job.go b/models/job.go index 796e426..29cd40c 100644 --- a/models/job.go +++ b/models/job.go @@ -3,7 +3,9 @@ package models import ( "fmt" - "github.com/kubeshop/xk6-tracetest/openapi" + "github.com/kubeshop/tracetest/cli/openapi" + "github.com/kubeshop/tracetest/server/pkg/id" + "github.com/kubeshop/xk6-tracetest/modules/metadata" ) type JobType string @@ -22,26 +24,31 @@ const ( ) type Job struct { + ID string TraceID string TestID string VariableName string + RunGroupId string JobType JobType Request Request Run *TracetestRun JobStatus JobStatus TracetestOptions TracetestOptions Error string + Metadata metadata.Metadata } func NewJob(traceId string, options TracetestOptions, request Request) Job { return Job{ - JobType: RunTestFromId, - Request: request, - JobStatus: Pending, - + JobType: RunTestFromId, + Request: request, + JobStatus: Pending, + ID: id.GenerateID().String(), TraceID: traceId, TestID: options.TestID, TracetestOptions: options, + RunGroupId: options.RunGroupId, + Metadata: metadata.GetMetadata(), } } @@ -66,7 +73,12 @@ func (job Job) Summary(baseUrl string) string { runSummary = job.Run.Summary(baseUrl) } - return fmt.Sprintf("Request=%s - %s, TraceID=%s, %s", job.Request.Method, job.Request.URL, job.TraceID, runSummary) + status := "FAILED" + if job.IsSuccessful() { + status = "SUCCESS" + } + + return fmt.Sprintf("%s Request=%s - %s, TraceID=%s, %s", status, job.Request.Method, job.Request.URL, job.TraceID, runSummary) } func (job Job) IsSuccessful() bool { diff --git a/models/tracetestOptions.go b/models/tracetestOptions.go index 163ceed..102e3ef 100644 --- a/models/tracetestOptions.go +++ b/models/tracetestOptions.go @@ -8,6 +8,7 @@ type TracetestOptions struct { TestID string ShouldWait bool VariableName string + RunGroupId string } func NewTracetestOptions(runTime *goja.Runtime, params *goja.Object) TracetestOptions { diff --git a/models/tracetestRun.go b/models/tracetestRun.go index 7ac25d6..3124dc4 100644 --- a/models/tracetestRun.go +++ b/models/tracetestRun.go @@ -3,7 +3,7 @@ package models import ( "fmt" - "github.com/kubeshop/xk6-tracetest/openapi" + "github.com/kubeshop/tracetest/cli/openapi" ) type Test struct { diff --git a/modules/metadata/metadata.go b/modules/metadata/metadata.go new file mode 100644 index 0000000..1689e91 --- /dev/null +++ b/modules/metadata/metadata.go @@ -0,0 +1,25 @@ +package metadata + +var ( + tracetestSource = "tracetest.source" + xK6TracetestVersion = "xk6.tracetest.version" +) + +type Metadata map[string]string + +func (m Metadata) Merge(other Metadata) Metadata { + for k, v := range other { + m[k] = v + } + + return m +} + +func GetMetadata() Metadata { + // TODO: add more metadata after getting the response from the k6 team + // https://github.com/grafana/k6/issues/1320#issuecomment-2032734378 + return Metadata{ + tracetestSource: "xk6-tracetest", + xK6TracetestVersion: "0.1.8", + } +} diff --git a/modules/tracetest/api.go b/modules/tracetest/api.go index fa7d7b8..7d4b806 100644 --- a/modules/tracetest/api.go +++ b/modules/tracetest/api.go @@ -11,8 +11,26 @@ import ( "time" "github.com/golang-jwt/jwt" + "github.com/kubeshop/tracetest/cli/openapi" "github.com/kubeshop/xk6-tracetest/models" - "github.com/kubeshop/xk6-tracetest/openapi" +) + +var ( + traceID = "TRACE_ID" + resourceType = "Test" + testName = "K6 Test" + testID = "k6-test" + testTrigger = "k6" + defaultTest = openapi.TestResource{ + Type: &resourceType, + Spec: &openapi.Test{ + Id: &testID, + Name: &testName, + Trigger: &openapi.Trigger{ + Type: &testTrigger, + }, + }, + } ) func NewAPIClient(options models.ApiOptions) (*openapi.APIClient, string) { @@ -135,11 +153,29 @@ func getTokenClaims(tokenString string) (jwt.MapClaims, error) { return claims, nil } -func (t *Tracetest) runTest(job models.Job) (*openapi.TestRun, error) { +func (t *Tracetest) upsertTest(ctx context.Context) (*openapi.TestResource, error) { + req := t.client.ResourceApiApi.UpsertTest(ctx) + req = req.TestResource(defaultTest) + + test, _, err := t.client.ResourceApiApi.UpsertTestExecute(req) + return test, err +} + +func (t *Tracetest) runTest(job *models.Job) (*openapi.TestRun, error) { + if job.TestID == "" { + _, err := t.upsertTest(context.Background()) + if err != nil { + return nil, fmt.Errorf("could not create test: %w", err) + } + + job.TestID = testID + } + request := t.client.ApiApi.RunTest(context.Background(), job.TestID) request = request.RunInformation(openapi.RunInformation{ + RunGroupId: &job.RunGroupId, Variables: []openapi.VariableSetValue{{ - Key: &job.TracetestOptions.VariableName, + Key: &traceID, Value: &job.TraceID, }}, Metadata: job.Request.Metadata, @@ -159,9 +195,9 @@ func (t *Tracetest) runTest(job models.Job) (*openapi.TestRun, error) { return run, nil } -func (t *Tracetest) waitForTestResult(testID string, testRunID int32) (openapi.TestRun, error) { +func (t *Tracetest) waitForRunGroup(runGroupId string) (openapi.RunGroup, error) { var ( - testRun openapi.TestRun + runGroup openapi.RunGroup lastError error wg sync.WaitGroup ) @@ -173,15 +209,15 @@ func (t *Tracetest) waitForTestResult(testID string, testRunID int32) (openapi.T for { select { case <-ticker.C: - readyTestRun, err := t.getIsTestReady(context.Background(), testID, testRunID) + readyGroup, err := t.getIsRunGroupReady(context.Background(), runGroupId) if err != nil { lastError = err wg.Done() return } - if readyTestRun != nil { - testRun = *readyTestRun + if readyGroup != nil { + runGroup = *readyGroup wg.Done() return } @@ -191,35 +227,39 @@ func (t *Tracetest) waitForTestResult(testID string, testRunID int32) (openapi.T wg.Wait() if lastError != nil { - return openapi.TestRun{}, lastError + return openapi.RunGroup{}, lastError } - return testRun, nil + return runGroup, nil } -func (t *Tracetest) getIsTestReady(ctx context.Context, testID string, testRunId int32) (*openapi.TestRun, error) { - req := t.client.ApiApi.GetTestRun(ctx, testID, testRunId) - run, _, err := t.client.ApiApi.GetTestRunExecute(req) +func (t *Tracetest) getIsRunGroupReady(ctx context.Context, runGroupId string) (*openapi.RunGroup, error) { + req := t.client.ApiApi.GetRunGroup(ctx, runGroupId) + runGroup, _, err := t.client.ApiApi.GetRunGroupExecute(req) if err != nil { - return &openapi.TestRun{}, fmt.Errorf("could not execute GetTestRun request: %w", err) + return &openapi.RunGroup{}, fmt.Errorf("could not execute GetTestRun request: %w", err) } - if isStateFailed(*run.State) || isStateFinished(*run.State) { - return run, nil + if isRunGroupDone(*runGroup.Status) { + return runGroup, nil } return nil, nil } -func (t *Tracetest) jobSummary() (successfulJobs, failedJobs []models.Job) { +func (t *Tracetest) jobSummary() (jobs []models.Job) { t.processedBuffer.Range(func(_, value interface{}) bool { if job, ok := value.(models.Job); ok { - if job.IsSuccessful() { - successfulJobs = append(successfulJobs, job) - } else { - failedJobs = append(failedJobs, job) + req := t.client.ApiApi.GetTestRun(context.Background(), job.TestID, job.Run.TestRun.GetId()) + run, _, err := t.client.ApiApi.GetTestRunExecute(req) + if err != nil { + t.logger.Errorf("could not get test run: %s", err) + return false } + + job.Run.TestRun = run + jobs = append(jobs, job) } return true @@ -242,56 +282,56 @@ func (t *Tracetest) getBaseUrl() string { return base } -func (t *Tracetest) stringSummary() string { - successfulJobs, failedJobs := t.jobSummary() - failedSummary := "[FAILED] \n" - successfulSummary := "[SUCCESSFUL] \n" - totalRuns := len(successfulJobs) + len(failedJobs) - failedRuns := len(failedJobs) - successfulRuns := len(successfulJobs) - +func (t *Tracetest) stringSummary(runGroup openapi.RunGroup) string { + jobs := t.jobSummary() + stringSummary := "" baseUrl := t.getBaseUrl() - for _, job := range failedJobs { - failedSummary += fmt.Sprintf("[%s] \n", job.Summary(baseUrl)) - } - - for _, job := range successfulJobs { - successfulSummary += fmt.Sprintf("[%s] \n", job.Summary(baseUrl)) + for _, job := range jobs { + stringSummary += fmt.Sprintf("[%s] \n", job.Summary(baseUrl)) } - totalResults := fmt.Sprintf("[TotalRuns=%d, SuccessfulRus=%d, FailedRuns=%d] \n", totalRuns, successfulRuns, failedRuns) + summary := runGroup.GetSummary() - if failedRuns == 0 { - failedSummary = "" - } - - if successfulRuns == 0 { - successfulSummary = "" - } + totalResults := fmt.Sprintf("[TotalRuns=%d, SuccessfulRus=%d, FailedRuns=%d] \n", summary.GetSucceed()+summary.GetFailed(), summary.GetSucceed(), summary.GetFailed()) + runGroupResult := fmt.Sprintf("[RunGroup=#%s, Status=%s] - %s/run/%s \n", runGroup.GetId(), runGroup.GetStatus(), baseUrl, runGroup.GetId()) - return totalResults + failedSummary + successfulSummary + return runGroupResult + totalResults + stringSummary } type JsonResult struct { TotalRuns int SuccessfulRuns int FailedRuns int + RunGroup openapi.RunGroup + RunGroupUrl string Failed []models.Job Successful []models.Job } -func (t *Tracetest) jsonSummary() JsonResult { +func (t *Tracetest) jsonSummary(runGroup openapi.RunGroup) JsonResult { + baseUrl := t.getBaseUrl() JsonResult := JsonResult{ TotalRuns: 0, SuccessfulRuns: 0, FailedRuns: 0, + RunGroup: runGroup, + RunGroupUrl: fmt.Sprintf("%s/run/%s", baseUrl, runGroup.GetId()), Failed: []models.Job{}, Successful: []models.Job{}, } t.processedBuffer.Range(func(_, value interface{}) bool { if job, ok := value.(models.Job); ok { + req := t.client.ApiApi.GetTestRun(context.Background(), job.TestID, job.Run.TestRun.GetId()) + run, _, err := t.client.ApiApi.GetTestRunExecute(req) + if err != nil { + t.logger.Errorf("could not get test run: %s", err) + return false + } + + job.Run.TestRun = run + JsonResult.TotalRuns += 1 if job.IsSuccessful() { JsonResult.Successful = append(JsonResult.Successful, job) @@ -308,14 +348,6 @@ func (t *Tracetest) jsonSummary() JsonResult { return JsonResult } -func isStateFinished(state string) bool { - return isStateFailed(state) || state == "FINISHED" -} - -func isStateFailed(state string) bool { - return state == "TRIGGER_FAILED" || - state == "TRACE_FAILED" || - state == "ASSERTION_FAILED" || - state == "ANALYZING_ERROR" || - state == "FAILED" // this one is for backwards compatibility +func isRunGroupDone(state string) bool { + return state == "failed" || state == "succeed" } diff --git a/modules/tracetest/queue.go b/modules/tracetest/queue.go index 038660e..6d5948e 100644 --- a/modules/tracetest/queue.go +++ b/modules/tracetest/queue.go @@ -32,14 +32,10 @@ func (t *Tracetest) parallelJobProcessor(jobs []models.Job) { go func(job models.Job) { defer waitGroup.Done() - run, err := t.runTest(job) + run, err := t.runTest(&job) job = job.HandleRunResponse(run, err) - if job.TracetestOptions.ShouldWait && run != nil { - run, err := t.waitForTestResult(job.TestID, *run.Id) - job = job.HandleRunResponse(&run, err) - } - t.processedBuffer.Store(job.Request.ID, job) + t.processedBuffer.Store(job.ID, job) }(job) } } diff --git a/modules/tracetest/tracetest.go b/modules/tracetest/tracetest.go index b51ecdd..15c0756 100644 --- a/modules/tracetest/tracetest.go +++ b/modules/tracetest/tracetest.go @@ -7,8 +7,9 @@ import ( "time" "github.com/dop251/goja" + "github.com/kubeshop/tracetest/cli/openapi" + "github.com/kubeshop/tracetest/server/pkg/id" "github.com/kubeshop/xk6-tracetest/models" - "github.com/kubeshop/xk6-tracetest/openapi" "github.com/sirupsen/logrus" "go.k6.io/k6/js/common" "go.k6.io/k6/js/modules" @@ -19,6 +20,7 @@ type Tracetest struct { Vu modules.VU bufferLock sync.Mutex buffer []models.Job + runGroupId string processedBuffer sync.Map periodicFlusher *output.PeriodicFlusher logger logrus.FieldLogger @@ -38,6 +40,7 @@ func New() *Tracetest { client: client, mutex: sync.Mutex{}, jwt: jwt, + runGroupId: id.GenerateID().String(), } duration := 1 * time.Second @@ -75,32 +78,34 @@ func (t *Tracetest) Constructor(call goja.ConstructorCall) *goja.Object { } func (t *Tracetest) RunTest(traceID string, options models.TracetestOptions, request models.Request) { + if options.RunGroupId == "" { + options.RunGroupId = t.runGroupId + } + t.queueJob(models.NewJob(traceID, options, request)) } func (t *Tracetest) Summary() string { - if len(t.buffer) != 0 { - t.processQueue() - } + runGroup, _ := t.wait() - return t.stringSummary() + return t.stringSummary(runGroup) } func (t *Tracetest) ValidateResult() { - if len(t.buffer) != 0 { - t.processQueue() - } + runGroup, _ := t.wait() - _, failedJobs := t.jobSummary() + summary := runGroup.GetSummary() - if len(failedJobs) > 0 { - panic(fmt.Sprintf("Tracetest: %d jobs failed", len(failedJobs))) + if summary.GetFailed() > 0 { + panic(fmt.Sprintf("Tracetest: %d jobs failed", summary.GetFailed())) } } func (t *Tracetest) Json() string { + runGroup, _ := t.wait() + rt := t.Vu.Runtime() - jsonString, err := json.Marshal(t.jsonSummary()) + jsonString, err := json.Marshal(t.jsonSummary(runGroup)) if err != nil { common.Throw(rt, err) @@ -108,3 +113,11 @@ func (t *Tracetest) Json() string { return string(jsonString) } + +func (t *Tracetest) wait() (openapi.RunGroup, error) { + if len(t.buffer) != 0 { + t.processQueue() + } + + return t.waitForRunGroup(t.runGroupId) +} diff --git a/openapi/api_api.go b/openapi/api_api.go deleted file mode 100644 index 00009e0..0000000 --- a/openapi/api_api.go +++ /dev/null @@ -1,2689 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" - "strings" -) - -// ApiApiService ApiApi service -type ApiApiService service - -type ApiDeleteTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiDeleteTestRunRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteTestRunExecute(r) -} - -/* -DeleteTestRun delete a test run - -delete a test run - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiDeleteTestRunRequest -*/ -func (a *ApiApiService) DeleteTestRun(ctx context.Context, testId string, runId int32) ApiDeleteTestRunRequest { - return ApiDeleteTestRunRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -func (a *ApiApiService) DeleteTestRunExecute(r ApiDeleteTestRunRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.DeleteTestRun") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteTestSuiteRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testSuiteId string - runId int32 -} - -func (r ApiDeleteTestSuiteRunRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteTestSuiteRunExecute(r) -} - -/* -DeleteTestSuiteRun Delete a specific run from a particular TestSuite - -Delete a specific run from a particular TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @param runId id of the run - @return ApiDeleteTestSuiteRunRequest -*/ -func (a *ApiApiService) DeleteTestSuiteRun(ctx context.Context, testSuiteId string, runId int32) ApiDeleteTestSuiteRunRequest { - return ApiDeleteTestSuiteRunRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - runId: runId, - } -} - -// Execute executes the request -func (a *ApiApiService) DeleteTestSuiteRunExecute(r ApiDeleteTestSuiteRunRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.DeleteTestSuiteRun") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}/run/{runId}" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDryRunAssertionRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 - testSpecs *TestSpecs -} - -func (r ApiDryRunAssertionRequest) TestSpecs(testSpecs TestSpecs) ApiDryRunAssertionRequest { - r.testSpecs = &testSpecs - return r -} - -func (r ApiDryRunAssertionRequest) Execute() (*AssertionResults, *http.Response, error) { - return r.ApiService.DryRunAssertionExecute(r) -} - -/* -DryRunAssertion run given assertions against the traces from the given run without persisting anything - -use this method to test a definition against an actual trace without creating a new version or persisting anything - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiDryRunAssertionRequest -*/ -func (a *ApiApiService) DryRunAssertion(ctx context.Context, testId string, runId int32) ApiDryRunAssertionRequest { - return ApiDryRunAssertionRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return AssertionResults -func (a *ApiApiService) DryRunAssertionExecute(r ApiDryRunAssertionRequest) (*AssertionResults, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssertionResults - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.DryRunAssertion") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/dry-run" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.testSpecs - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExportTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiExportTestRunRequest) Execute() (*ExportedTestInformation, *http.Response, error) { - return r.ApiService.ExportTestRunExecute(r) -} - -/* -ExportTestRun export test and test run information - -export test and test run information for debugging - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiExportTestRunRequest -*/ -func (a *ApiApiService) ExportTestRun(ctx context.Context, testId string, runId int32) ApiExportTestRunRequest { - return ApiExportTestRunRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return ExportedTestInformation -func (a *ApiApiService) ExportTestRunExecute(r ApiExportTestRunRequest) (*ExportedTestInformation, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportedTestInformation - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ExportTestRun") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/export" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExpressionResolveRequest struct { - ctx context.Context - ApiService *ApiApiService - resolveRequestInfo *ResolveRequestInfo -} - -func (r ApiExpressionResolveRequest) ResolveRequestInfo(resolveRequestInfo ResolveRequestInfo) ApiExpressionResolveRequest { - r.resolveRequestInfo = &resolveRequestInfo - return r -} - -func (r ApiExpressionResolveRequest) Execute() (*ResolveResponseInfo, *http.Response, error) { - return r.ApiService.ExpressionResolveExecute(r) -} - -/* -ExpressionResolve resolves an expression and returns the result string - -resolves an expression and returns the result string - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExpressionResolveRequest -*/ -func (a *ApiApiService) ExpressionResolve(ctx context.Context) ApiExpressionResolveRequest { - return ApiExpressionResolveRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ResolveResponseInfo -func (a *ApiApiService) ExpressionResolveExecute(r ApiExpressionResolveRequest) (*ResolveResponseInfo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResolveResponseInfo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ExpressionResolve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/expressions/resolve" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.resolveRequestInfo - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetResourcesRequest struct { - ctx context.Context - ApiService *ApiApiService - take *int32 - skip *int32 - query *string - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiGetResourcesRequest) Take(take int32) ApiGetResourcesRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiGetResourcesRequest) Skip(skip int32) ApiGetResourcesRequest { - r.skip = &skip - return r -} - -// query to search resources -func (r ApiGetResourcesRequest) Query(query string) ApiGetResourcesRequest { - r.query = &query - return r -} - -// indicates the sort field for the resources -func (r ApiGetResourcesRequest) SortBy(sortBy string) ApiGetResourcesRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiGetResourcesRequest) SortDirection(sortDirection string) ApiGetResourcesRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiGetResourcesRequest) Execute() ([]Resource, *http.Response, error) { - return r.ApiService.GetResourcesExecute(r) -} - -/* -GetResources Get resources - -get resources - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetResourcesRequest -*/ -func (a *ApiApiService) GetResources(ctx context.Context) ApiGetResourcesRequest { - return ApiGetResourcesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []Resource -func (a *ApiApiService) GetResourcesExecute(r ApiGetResourcesRequest) ([]Resource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Resource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetResources") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/resources" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetRunResultJUnitRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiGetRunResultJUnitRequest) Execute() (string, *http.Response, error) { - return r.ApiService.GetRunResultJUnitExecute(r) -} - -/* -GetRunResultJUnit get test run results in JUnit xml format - -get test run results in JUnit xml format - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiGetRunResultJUnitRequest -*/ -func (a *ApiApiService) GetRunResultJUnit(ctx context.Context, testId string, runId int32) ApiGetRunResultJUnitRequest { - return ApiGetRunResultJUnitRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return string -func (a *ApiApiService) GetRunResultJUnitExecute(r ApiGetRunResultJUnitRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetRunResultJUnit") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/junit.xml" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/xml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestResultSelectedSpansRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 - query *string -} - -// query to search resources -func (r ApiGetTestResultSelectedSpansRequest) Query(query string) ApiGetTestResultSelectedSpansRequest { - r.query = &query - return r -} - -func (r ApiGetTestResultSelectedSpansRequest) Execute() (*SelectedSpansResult, *http.Response, error) { - return r.ApiService.GetTestResultSelectedSpansExecute(r) -} - -/* -GetTestResultSelectedSpans retrieve spans that will be selected by selector - -get the spans ids that would be selected by a specific selector query - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiGetTestResultSelectedSpansRequest -*/ -func (a *ApiApiService) GetTestResultSelectedSpans(ctx context.Context, testId string, runId int32) ApiGetTestResultSelectedSpansRequest { - return ApiGetTestResultSelectedSpansRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return SelectedSpansResult -func (a *ApiApiService) GetTestResultSelectedSpansExecute(r ApiGetTestResultSelectedSpansRequest) (*SelectedSpansResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SelectedSpansResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestResultSelectedSpans") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/select" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiGetTestRunRequest) Execute() (*TestRun, *http.Response, error) { - return r.ApiService.GetTestRunExecute(r) -} - -/* -GetTestRun get test Run - -get a particular test Run - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiGetTestRunRequest -*/ -func (a *ApiApiService) GetTestRun(ctx context.Context, testId string, runId int32) ApiGetTestRunRequest { - return ApiGetTestRunRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return TestRun -func (a *ApiApiService) GetTestRunExecute(r ApiGetTestRunRequest) (*TestRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestRun") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestRunEventsRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiGetTestRunEventsRequest) Execute() ([]TestRunEvent, *http.Response, error) { - return r.ApiService.GetTestRunEventsExecute(r) -} - -/* -GetTestRunEvents get events from a test run - -get events from a test run - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiGetTestRunEventsRequest -*/ -func (a *ApiApiService) GetTestRunEvents(ctx context.Context, testId string, runId int32) ApiGetTestRunEventsRequest { - return ApiGetTestRunEventsRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return []TestRunEvent -func (a *ApiApiService) GetTestRunEventsExecute(r ApiGetTestRunEventsRequest) ([]TestRunEvent, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TestRunEvent - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestRunEvents") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestRunsRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - take *int32 - skip *int32 -} - -// indicates how many resources can be returned by each page -func (r ApiGetTestRunsRequest) Take(take int32) ApiGetTestRunsRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiGetTestRunsRequest) Skip(skip int32) ApiGetTestRunsRequest { - r.skip = &skip - return r -} - -func (r ApiGetTestRunsRequest) Execute() ([]TestRun, *http.Response, error) { - return r.ApiService.GetTestRunsExecute(r) -} - -/* -GetTestRuns get the runs for a test - -get the runs from a particular test - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @return ApiGetTestRunsRequest -*/ -func (a *ApiApiService) GetTestRuns(ctx context.Context, testId string) ApiGetTestRunsRequest { - return ApiGetTestRunsRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - } -} - -// Execute executes the request -// -// @return []TestRun -func (a *ApiApiService) GetTestRunsExecute(r ApiGetTestRunsRequest) ([]TestRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TestRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestRuns") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestSpecsRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string -} - -func (r ApiGetTestSpecsRequest) Execute() ([]TestSpecs, *http.Response, error) { - return r.ApiService.GetTestSpecsExecute(r) -} - -/* -GetTestSpecs Get definition for a test - -Gets definition for a test - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @return ApiGetTestSpecsRequest -*/ -func (a *ApiApiService) GetTestSpecs(ctx context.Context, testId string) ApiGetTestSpecsRequest { - return ApiGetTestSpecsRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - } -} - -// Execute executes the request -// -// @return []TestSpecs -func (a *ApiApiService) GetTestSpecsExecute(r ApiGetTestSpecsRequest) ([]TestSpecs, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TestSpecs - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestSpecs") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/definition" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestSuiteRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testSuiteId string - runId int32 -} - -func (r ApiGetTestSuiteRunRequest) Execute() (*TestSuiteRun, *http.Response, error) { - return r.ApiService.GetTestSuiteRunExecute(r) -} - -/* -GetTestSuiteRun Get a specific run from a particular TestSuite - -Get a specific run from a particular TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @param runId id of the run - @return ApiGetTestSuiteRunRequest -*/ -func (a *ApiApiService) GetTestSuiteRun(ctx context.Context, testSuiteId string, runId int32) ApiGetTestSuiteRunRequest { - return ApiGetTestSuiteRunRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - runId: runId, - } -} - -// Execute executes the request -// -// @return TestSuiteRun -func (a *ApiApiService) GetTestSuiteRunExecute(r ApiGetTestSuiteRunRequest) (*TestSuiteRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuiteRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestSuiteRun") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}/run/{runId}" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestSuiteRunsRequest struct { - ctx context.Context - ApiService *ApiApiService - testSuiteId string - take *int32 - skip *int32 -} - -// indicates how many resources can be returned by each page -func (r ApiGetTestSuiteRunsRequest) Take(take int32) ApiGetTestSuiteRunsRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiGetTestSuiteRunsRequest) Skip(skip int32) ApiGetTestSuiteRunsRequest { - r.skip = &skip - return r -} - -func (r ApiGetTestSuiteRunsRequest) Execute() ([]TestSuiteRun, *http.Response, error) { - return r.ApiService.GetTestSuiteRunsExecute(r) -} - -/* -GetTestSuiteRuns Get all runs from a particular TestSuite - -Get all runs from a particular TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @return ApiGetTestSuiteRunsRequest -*/ -func (a *ApiApiService) GetTestSuiteRuns(ctx context.Context, testSuiteId string) ApiGetTestSuiteRunsRequest { - return ApiGetTestSuiteRunsRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - } -} - -// Execute executes the request -// -// @return []TestSuiteRun -func (a *ApiApiService) GetTestSuiteRunsExecute(r ApiGetTestSuiteRunsRequest) ([]TestSuiteRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TestSuiteRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestSuiteRuns") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}/run" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestSuiteVersionRequest struct { - ctx context.Context - ApiService *ApiApiService - testSuiteId string - version int32 -} - -func (r ApiGetTestSuiteVersionRequest) Execute() (*TestSuite, *http.Response, error) { - return r.ApiService.GetTestSuiteVersionExecute(r) -} - -/* -GetTestSuiteVersion get a TestSuite specific version - -get a TestSuite specific version - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @param version version of the test - @return ApiGetTestSuiteVersionRequest -*/ -func (a *ApiApiService) GetTestSuiteVersion(ctx context.Context, testSuiteId string, version int32) ApiGetTestSuiteVersionRequest { - return ApiGetTestSuiteVersionRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - version: version, - } -} - -// Execute executes the request -// -// @return TestSuite -func (a *ApiApiService) GetTestSuiteVersionExecute(r ApiGetTestSuiteVersionRequest) (*TestSuite, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuite - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestSuiteVersion") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}/version/{version}" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterValueToString(r.version, "version")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestVersionRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - version int32 -} - -func (r ApiGetTestVersionRequest) Execute() (*Test, *http.Response, error) { - return r.ApiService.GetTestVersionExecute(r) -} - -/* -GetTestVersion get a test specific version - -get a test specific version - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param version version of the test - @return ApiGetTestVersionRequest -*/ -func (a *ApiApiService) GetTestVersion(ctx context.Context, testId string, version int32) ApiGetTestVersionRequest { - return ApiGetTestVersionRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - version: version, - } -} - -// Execute executes the request -// -// @return Test -func (a *ApiApiService) GetTestVersionExecute(r ApiGetTestVersionRequest) (*Test, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Test - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetTestVersion") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/version/{version}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterValueToString(r.version, "version")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetVersionRequest struct { - ctx context.Context - ApiService *ApiApiService - fileExtension string -} - -func (r ApiGetVersionRequest) Execute() (*Version, *http.Response, error) { - return r.ApiService.GetVersionExecute(r) -} - -/* -GetVersion Get the version of the API - -Get the version of the API - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fileExtension - @return ApiGetVersionRequest -*/ -func (a *ApiApiService) GetVersion(ctx context.Context, fileExtension string) ApiGetVersionRequest { - return ApiGetVersionRequest{ - ApiService: a, - ctx: ctx, - fileExtension: fileExtension, - } -} - -// Execute executes the request -// -// @return Version -func (a *ApiApiService) GetVersionExecute(r ApiGetVersionRequest) (*Version, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Version - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.GetVersion") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/version.{fileExtension}" - localVarPath = strings.Replace(localVarPath, "{"+"fileExtension"+"}", url.PathEscape(parameterValueToString(r.fileExtension, "fileExtension")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiImportTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - exportedTestInformation *ExportedTestInformation -} - -func (r ApiImportTestRunRequest) ExportedTestInformation(exportedTestInformation ExportedTestInformation) ApiImportTestRunRequest { - r.exportedTestInformation = &exportedTestInformation - return r -} - -func (r ApiImportTestRunRequest) Execute() (*ExportedTestInformation, *http.Response, error) { - return r.ApiService.ImportTestRunExecute(r) -} - -/* -ImportTestRun import test and test run information - -import test and test run information for debugging - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiImportTestRunRequest -*/ -func (a *ApiApiService) ImportTestRun(ctx context.Context) ApiImportTestRunRequest { - return ApiImportTestRunRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ExportedTestInformation -func (a *ApiApiService) ImportTestRunExecute(r ApiImportTestRunRequest) (*ExportedTestInformation, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportedTestInformation - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ImportTestRun") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/import" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.exportedTestInformation - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiRerunTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiRerunTestRunRequest) Execute() (*TestRun, *http.Response, error) { - return r.ApiService.RerunTestRunExecute(r) -} - -/* -RerunTestRun rerun a test run - -rerun a test run - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiRerunTestRunRequest -*/ -func (a *ApiApiService) RerunTestRun(ctx context.Context, testId string, runId int32) ApiRerunTestRunRequest { - return ApiRerunTestRunRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return TestRun -func (a *ApiApiService) RerunTestRunExecute(r ApiRerunTestRunRequest) (*TestRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RerunTestRun") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/rerun" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiRunTestRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runInformation *RunInformation -} - -func (r ApiRunTestRequest) RunInformation(runInformation RunInformation) ApiRunTestRequest { - r.runInformation = &runInformation - return r -} - -func (r ApiRunTestRequest) Execute() (*TestRun, *http.Response, error) { - return r.ApiService.RunTestExecute(r) -} - -/* -RunTest run test - -run a particular test - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @return ApiRunTestRequest -*/ -func (a *ApiApiService) RunTest(ctx context.Context, testId string) ApiRunTestRequest { - return ApiRunTestRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - } -} - -// Execute executes the request -// -// @return TestRun -func (a *ApiApiService) RunTestExecute(r ApiRunTestRequest) (*TestRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RunTest") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.runInformation - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v MissingVariablesError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiRunTestSuiteRequest struct { - ctx context.Context - ApiService *ApiApiService - testSuiteId string - runInformation *RunInformation -} - -func (r ApiRunTestSuiteRequest) RunInformation(runInformation RunInformation) ApiRunTestSuiteRequest { - r.runInformation = &runInformation - return r -} - -func (r ApiRunTestSuiteRequest) Execute() (*TestSuiteRun, *http.Response, error) { - return r.ApiService.RunTestSuiteExecute(r) -} - -/* -RunTestSuite run TestSuite - -run a particular TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @return ApiRunTestSuiteRequest -*/ -func (a *ApiApiService) RunTestSuite(ctx context.Context, testSuiteId string) ApiRunTestSuiteRequest { - return ApiRunTestSuiteRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - } -} - -// Execute executes the request -// -// @return TestSuiteRun -func (a *ApiApiService) RunTestSuiteExecute(r ApiRunTestSuiteRequest) (*TestSuiteRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuiteRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RunTestSuite") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}/run" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.runInformation - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiStopTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 -} - -func (r ApiStopTestRunRequest) Execute() (*http.Response, error) { - return r.ApiService.StopTestRunExecute(r) -} - -/* -StopTestRun stops the execution of a test run - -stops the execution of a test run - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiStopTestRunRequest -*/ -func (a *ApiApiService) StopTestRun(ctx context.Context, testId string, runId int32) ApiStopTestRunRequest { - return ApiStopTestRunRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -func (a *ApiApiService) StopTestRunExecute(r ApiStopTestRunRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.StopTestRun") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}/stop" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiTestConnectionRequest struct { - ctx context.Context - ApiService *ApiApiService - dataStore *DataStore -} - -func (r ApiTestConnectionRequest) DataStore(dataStore DataStore) ApiTestConnectionRequest { - r.dataStore = &dataStore - return r -} - -func (r ApiTestConnectionRequest) Execute() (*TestConnectionResponse, *http.Response, error) { - return r.ApiService.TestConnectionExecute(r) -} - -/* -TestConnection Tests the config data store/exporter connection - -Tests the config data store/exporter connection - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTestConnectionRequest -*/ -func (a *ApiApiService) TestConnection(ctx context.Context) ApiTestConnectionRequest { - return ApiTestConnectionRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return TestConnectionResponse -func (a *ApiApiService) TestConnectionExecute(r ApiTestConnectionRequest) (*TestConnectionResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestConnectionResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.TestConnection") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/config/connection" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"text/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.dataStore - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateTestRunRequest struct { - ctx context.Context - ApiService *ApiApiService - testId string - runId int32 - testRun *TestRun -} - -func (r ApiUpdateTestRunRequest) TestRun(testRun TestRun) ApiUpdateTestRunRequest { - r.testRun = &testRun - return r -} - -func (r ApiUpdateTestRunRequest) Execute() (*TestRun, *http.Response, error) { - return r.ApiService.UpdateTestRunExecute(r) -} - -/* -UpdateTestRun update a test run - -update a test run - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @param runId id of the run - @return ApiUpdateTestRunRequest -*/ -func (a *ApiApiService) UpdateTestRun(ctx context.Context, testId string, runId int32) ApiUpdateTestRunRequest { - return ApiUpdateTestRunRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - runId: runId, - } -} - -// Execute executes the request -// -// @return TestRun -func (a *ApiApiService) UpdateTestRunExecute(r ApiUpdateTestRunRequest) (*TestRun, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestRun - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateTestRun") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}/run/{runId}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"runId"+"}", url.PathEscape(parameterValueToString(r.runId, "runId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.testRun - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/openapi/api_resource_api.go b/openapi/api_resource_api.go deleted file mode 100644 index cb89fa0..0000000 --- a/openapi/api_resource_api.go +++ /dev/null @@ -1,3959 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" - "strings" -) - -// ResourceApiApiService ResourceApiApi service -type ResourceApiApiService service - -type ApiCreateDemoRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - demo *Demo -} - -func (r ApiCreateDemoRequest) Demo(demo Demo) ApiCreateDemoRequest { - r.demo = &demo - return r -} - -func (r ApiCreateDemoRequest) Execute() (*Demo, *http.Response, error) { - return r.ApiService.CreateDemoExecute(r) -} - -/* -CreateDemo Create a Demonstration setting - -Create a demonstration used on Tracetest as quick start examples. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateDemoRequest -*/ -func (a *ResourceApiApiService) CreateDemo(ctx context.Context) ApiCreateDemoRequest { - return ApiCreateDemoRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return Demo -func (a *ResourceApiApiService) CreateDemoExecute(r ApiCreateDemoRequest) (*Demo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Demo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.CreateDemo") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/demos" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.demo - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateLinterRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - linterResource *LinterResource -} - -func (r ApiCreateLinterRequest) LinterResource(linterResource LinterResource) ApiCreateLinterRequest { - r.linterResource = &linterResource - return r -} - -func (r ApiCreateLinterRequest) Execute() (*LinterResource, *http.Response, error) { - return r.ApiService.CreateLinterExecute(r) -} - -/* -CreateLinter Create an Linter - -Create an Linter that can be used by tests and Linters - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateLinterRequest -*/ -func (a *ResourceApiApiService) CreateLinter(ctx context.Context) ApiCreateLinterRequest { - return ApiCreateLinterRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return LinterResource -func (a *ResourceApiApiService) CreateLinterExecute(r ApiCreateLinterRequest) (*LinterResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LinterResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.CreateLinter") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/linters" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.linterResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateTestRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - test *Test -} - -func (r ApiCreateTestRequest) Test(test Test) ApiCreateTestRequest { - r.test = &test - return r -} - -func (r ApiCreateTestRequest) Execute() (*Test, *http.Response, error) { - return r.ApiService.CreateTestExecute(r) -} - -/* -CreateTest Create new test - -Create new test action - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateTestRequest -*/ -func (a *ResourceApiApiService) CreateTest(ctx context.Context) ApiCreateTestRequest { - return ApiCreateTestRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return Test -func (a *ResourceApiApiService) CreateTestExecute(r ApiCreateTestRequest) (*Test, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Test - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.CreateTest") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.test - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateTestSuiteRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testSuiteResource *TestSuiteResource -} - -func (r ApiCreateTestSuiteRequest) TestSuiteResource(testSuiteResource TestSuiteResource) ApiCreateTestSuiteRequest { - r.testSuiteResource = &testSuiteResource - return r -} - -func (r ApiCreateTestSuiteRequest) Execute() (*TestSuiteResource, *http.Response, error) { - return r.ApiService.CreateTestSuiteExecute(r) -} - -/* -CreateTestSuite Create new TestSuite - -Create new TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateTestSuiteRequest -*/ -func (a *ResourceApiApiService) CreateTestSuite(ctx context.Context) ApiCreateTestSuiteRequest { - return ApiCreateTestSuiteRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return TestSuiteResource -func (a *ResourceApiApiService) CreateTestSuiteExecute(r ApiCreateTestSuiteRequest) (*TestSuiteResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuiteResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.CreateTestSuite") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.testSuiteResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateVariableSetRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - variableSetResource *VariableSetResource -} - -func (r ApiCreateVariableSetRequest) VariableSetResource(variableSetResource VariableSetResource) ApiCreateVariableSetRequest { - r.variableSetResource = &variableSetResource - return r -} - -func (r ApiCreateVariableSetRequest) Execute() (*VariableSetResource, *http.Response, error) { - return r.ApiService.CreateVariableSetExecute(r) -} - -/* -CreateVariableSet Create a VariableSet - -Create a VariableSet that can be used by tests and test suites - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateVariableSetRequest -*/ -func (a *ResourceApiApiService) CreateVariableSet(ctx context.Context) ApiCreateVariableSetRequest { - return ApiCreateVariableSetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return VariableSetResource -func (a *ResourceApiApiService) CreateVariableSetExecute(r ApiCreateVariableSetRequest) (*VariableSetResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VariableSetResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.CreateVariableSet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/variableSets" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.variableSetResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteDataStoreRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - dataStoreId string -} - -func (r ApiDeleteDataStoreRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteDataStoreExecute(r) -} - -/* -DeleteDataStore Delete a Data Store - -Delete a Data Store - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dataStoreId ID of a datastore used on Tracetest to configure how to fetch traces in a test - @return ApiDeleteDataStoreRequest -*/ -func (a *ResourceApiApiService) DeleteDataStore(ctx context.Context, dataStoreId string) ApiDeleteDataStoreRequest { - return ApiDeleteDataStoreRequest{ - ApiService: a, - ctx: ctx, - dataStoreId: dataStoreId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) DeleteDataStoreExecute(r ApiDeleteDataStoreRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.DeleteDataStore") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/datastores/{dataStoreId}" - localVarPath = strings.Replace(localVarPath, "{"+"dataStoreId"+"}", url.PathEscape(parameterValueToString(r.dataStoreId, "dataStoreId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteDemoRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - demoId string -} - -func (r ApiDeleteDemoRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteDemoExecute(r) -} - -/* -DeleteDemo Delete a Demonstration setting - -Delete a demonstration used on Tracetest as quick start examples. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param demoId ID of a demonstration used on Tracetest as quick start examples - @return ApiDeleteDemoRequest -*/ -func (a *ResourceApiApiService) DeleteDemo(ctx context.Context, demoId string) ApiDeleteDemoRequest { - return ApiDeleteDemoRequest{ - ApiService: a, - ctx: ctx, - demoId: demoId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) DeleteDemoExecute(r ApiDeleteDemoRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.DeleteDemo") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/demos/{demoId}" - localVarPath = strings.Replace(localVarPath, "{"+"demoId"+"}", url.PathEscape(parameterValueToString(r.demoId, "demoId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteLinterRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - linterId string -} - -func (r ApiDeleteLinterRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteLinterExecute(r) -} - -/* -DeleteLinter Delete an Linter - -Delete an Linter from Tracetest - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param linterId ID of an Linter - @return ApiDeleteLinterRequest -*/ -func (a *ResourceApiApiService) DeleteLinter(ctx context.Context, linterId string) ApiDeleteLinterRequest { - return ApiDeleteLinterRequest{ - ApiService: a, - ctx: ctx, - linterId: linterId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) DeleteLinterExecute(r ApiDeleteLinterRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.DeleteLinter") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/linters/{LinterId}" - localVarPath = strings.Replace(localVarPath, "{"+"LinterId"+"}", url.PathEscape(parameterValueToString(r.linterId, "linterId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteTestRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testId string -} - -func (r ApiDeleteTestRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteTestExecute(r) -} - -/* -DeleteTest delete a test - -delete a test - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @return ApiDeleteTestRequest -*/ -func (a *ResourceApiApiService) DeleteTest(ctx context.Context, testId string) ApiDeleteTestRequest { - return ApiDeleteTestRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) DeleteTestExecute(r ApiDeleteTestRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.DeleteTest") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteTestSuiteRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testSuiteId string -} - -func (r ApiDeleteTestSuiteRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteTestSuiteExecute(r) -} - -/* -DeleteTestSuite delete a TestSuite - -delete a TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @return ApiDeleteTestSuiteRequest -*/ -func (a *ResourceApiApiService) DeleteTestSuite(ctx context.Context, testSuiteId string) ApiDeleteTestSuiteRequest { - return ApiDeleteTestSuiteRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) DeleteTestSuiteExecute(r ApiDeleteTestSuiteRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.DeleteTestSuite") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteVariableSetRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - variableSetId string -} - -func (r ApiDeleteVariableSetRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteVariableSetExecute(r) -} - -/* -DeleteVariableSet Delete a variable set - -Delete a variable set from Tracetest - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param variableSetId ID of a VariableSet used on Tracetest to inject values into tests and TestSuites - @return ApiDeleteVariableSetRequest -*/ -func (a *ResourceApiApiService) DeleteVariableSet(ctx context.Context, variableSetId string) ApiDeleteVariableSetRequest { - return ApiDeleteVariableSetRequest{ - ApiService: a, - ctx: ctx, - variableSetId: variableSetId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) DeleteVariableSetExecute(r ApiDeleteVariableSetRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.DeleteVariableSet") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/variableSets/{variableSetId}" - localVarPath = strings.Replace(localVarPath, "{"+"variableSetId"+"}", url.PathEscape(parameterValueToString(r.variableSetId, "variableSetId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiGetConfigurationRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - configId string -} - -func (r ApiGetConfigurationRequest) Execute() (*ConfigurationResource, *http.Response, error) { - return r.ApiService.GetConfigurationExecute(r) -} - -/* -GetConfiguration Get Tracetest configuration - -Get Tracetest configuration - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configId ID of the configuration resource used on Tracetest. It should be set as 'current' - @return ApiGetConfigurationRequest -*/ -func (a *ResourceApiApiService) GetConfiguration(ctx context.Context, configId string) ApiGetConfigurationRequest { - return ApiGetConfigurationRequest{ - ApiService: a, - ctx: ctx, - configId: configId, - } -} - -// Execute executes the request -// -// @return ConfigurationResource -func (a *ResourceApiApiService) GetConfigurationExecute(r ApiGetConfigurationRequest) (*ConfigurationResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigurationResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetConfiguration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/configs/{configId}" - localVarPath = strings.Replace(localVarPath, "{"+"configId"+"}", url.PathEscape(parameterValueToString(r.configId, "configId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetDataStoreRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - dataStoreId string -} - -func (r ApiGetDataStoreRequest) Execute() (*DataStoreResource, *http.Response, error) { - return r.ApiService.GetDataStoreExecute(r) -} - -/* -GetDataStore Get a Data Store - -Get a Data Store - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dataStoreId ID of a datastore used on Tracetest to configure how to fetch traces in a test - @return ApiGetDataStoreRequest -*/ -func (a *ResourceApiApiService) GetDataStore(ctx context.Context, dataStoreId string) ApiGetDataStoreRequest { - return ApiGetDataStoreRequest{ - ApiService: a, - ctx: ctx, - dataStoreId: dataStoreId, - } -} - -// Execute executes the request -// -// @return DataStoreResource -func (a *ResourceApiApiService) GetDataStoreExecute(r ApiGetDataStoreRequest) (*DataStoreResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataStoreResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetDataStore") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/datastores/{dataStoreId}" - localVarPath = strings.Replace(localVarPath, "{"+"dataStoreId"+"}", url.PathEscape(parameterValueToString(r.dataStoreId, "dataStoreId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetDemoRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - demoId string -} - -func (r ApiGetDemoRequest) Execute() (*Demo, *http.Response, error) { - return r.ApiService.GetDemoExecute(r) -} - -/* -GetDemo Get Demonstration setting - -Get a demonstration used on Tracetest as quick start examples. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param demoId ID of a demonstration used on Tracetest as quick start examples - @return ApiGetDemoRequest -*/ -func (a *ResourceApiApiService) GetDemo(ctx context.Context, demoId string) ApiGetDemoRequest { - return ApiGetDemoRequest{ - ApiService: a, - ctx: ctx, - demoId: demoId, - } -} - -// Execute executes the request -// -// @return Demo -func (a *ResourceApiApiService) GetDemoExecute(r ApiGetDemoRequest) (*Demo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Demo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetDemo") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/demos/{demoId}" - localVarPath = strings.Replace(localVarPath, "{"+"demoId"+"}", url.PathEscape(parameterValueToString(r.demoId, "demoId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetLinterRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - linterId string -} - -func (r ApiGetLinterRequest) Execute() (*LinterResource, *http.Response, error) { - return r.ApiService.GetLinterExecute(r) -} - -/* -GetLinter Get a specific Linter - -Get one Linter by its id - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param linterId ID of an Linter - @return ApiGetLinterRequest -*/ -func (a *ResourceApiApiService) GetLinter(ctx context.Context, linterId string) ApiGetLinterRequest { - return ApiGetLinterRequest{ - ApiService: a, - ctx: ctx, - linterId: linterId, - } -} - -// Execute executes the request -// -// @return LinterResource -func (a *ResourceApiApiService) GetLinterExecute(r ApiGetLinterRequest) (*LinterResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LinterResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetLinter") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/linters/{LinterId}" - localVarPath = strings.Replace(localVarPath, "{"+"LinterId"+"}", url.PathEscape(parameterValueToString(r.linterId, "linterId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetPollingProfileRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - pollingProfileId string -} - -func (r ApiGetPollingProfileRequest) Execute() (*PollingProfile, *http.Response, error) { - return r.ApiService.GetPollingProfileExecute(r) -} - -/* -GetPollingProfile Get Polling Profile - -Get a polling profile used on Tracetest to configure how to fetch traces in a test. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param pollingProfileId ID of a polling profile used on Tracetest to configure how to fetch traces in a test. It should be set as 'current' - @return ApiGetPollingProfileRequest -*/ -func (a *ResourceApiApiService) GetPollingProfile(ctx context.Context, pollingProfileId string) ApiGetPollingProfileRequest { - return ApiGetPollingProfileRequest{ - ApiService: a, - ctx: ctx, - pollingProfileId: pollingProfileId, - } -} - -// Execute executes the request -// -// @return PollingProfile -func (a *ResourceApiApiService) GetPollingProfileExecute(r ApiGetPollingProfileRequest) (*PollingProfile, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PollingProfile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetPollingProfile") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/pollingprofiles/{pollingProfileId}" - localVarPath = strings.Replace(localVarPath, "{"+"pollingProfileId"+"}", url.PathEscape(parameterValueToString(r.pollingProfileId, "pollingProfileId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestSuiteRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testSuiteId string -} - -func (r ApiGetTestSuiteRequest) Execute() (*TestSuiteResource, *http.Response, error) { - return r.ApiService.GetTestSuiteExecute(r) -} - -/* -GetTestSuite get TestSuite - -get TestSuite - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @return ApiGetTestSuiteRequest -*/ -func (a *ResourceApiApiService) GetTestSuite(ctx context.Context, testSuiteId string) ApiGetTestSuiteRequest { - return ApiGetTestSuiteRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - } -} - -// Execute executes the request -// -// @return TestSuiteResource -func (a *ResourceApiApiService) GetTestSuiteExecute(r ApiGetTestSuiteRequest) (*TestSuiteResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuiteResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetTestSuite") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestSuitesRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - query *string - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiGetTestSuitesRequest) Take(take int32) ApiGetTestSuitesRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiGetTestSuitesRequest) Skip(skip int32) ApiGetTestSuitesRequest { - r.skip = &skip - return r -} - -// query to search resources -func (r ApiGetTestSuitesRequest) Query(query string) ApiGetTestSuitesRequest { - r.query = &query - return r -} - -// indicates the sort field for the resources -func (r ApiGetTestSuitesRequest) SortBy(sortBy string) ApiGetTestSuitesRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiGetTestSuitesRequest) SortDirection(sortDirection string) ApiGetTestSuitesRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiGetTestSuitesRequest) Execute() (*TestSuiteResourceList, *http.Response, error) { - return r.ApiService.GetTestSuitesExecute(r) -} - -/* -GetTestSuites Get testsuites - -get testsuites - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetTestSuitesRequest -*/ -func (a *ResourceApiApiService) GetTestSuites(ctx context.Context) ApiGetTestSuitesRequest { - return ApiGetTestSuitesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return TestSuiteResourceList -func (a *ResourceApiApiService) GetTestSuitesExecute(r ApiGetTestSuitesRequest) (*TestSuiteResourceList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuiteResourceList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetTestSuites") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTestsRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - query *string - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiGetTestsRequest) Take(take int32) ApiGetTestsRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiGetTestsRequest) Skip(skip int32) ApiGetTestsRequest { - r.skip = &skip - return r -} - -// query to search resources -func (r ApiGetTestsRequest) Query(query string) ApiGetTestsRequest { - r.query = &query - return r -} - -// indicates the sort field for the resources -func (r ApiGetTestsRequest) SortBy(sortBy string) ApiGetTestsRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiGetTestsRequest) SortDirection(sortDirection string) ApiGetTestsRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiGetTestsRequest) Execute() (*TestResourceList, *http.Response, error) { - return r.ApiService.GetTestsExecute(r) -} - -/* -GetTests Get tests - -get tests - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetTestsRequest -*/ -func (a *ResourceApiApiService) GetTests(ctx context.Context) ApiGetTestsRequest { - return ApiGetTestsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return TestResourceList -func (a *ResourceApiApiService) GetTestsExecute(r ApiGetTestsRequest) (*TestResourceList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestResourceList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetTests") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetVariableSetRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - variableSetId string -} - -func (r ApiGetVariableSetRequest) Execute() (*VariableSetResource, *http.Response, error) { - return r.ApiService.GetVariableSetExecute(r) -} - -/* -GetVariableSet Get a specific VariableSet - -Get one VariableSet by its id - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param variableSetId ID of a VariableSet used on Tracetest to inject values into tests and TestSuites - @return ApiGetVariableSetRequest -*/ -func (a *ResourceApiApiService) GetVariableSet(ctx context.Context, variableSetId string) ApiGetVariableSetRequest { - return ApiGetVariableSetRequest{ - ApiService: a, - ctx: ctx, - variableSetId: variableSetId, - } -} - -// Execute executes the request -// -// @return VariableSetResource -func (a *ResourceApiApiService) GetVariableSetExecute(r ApiGetVariableSetRequest) (*VariableSetResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VariableSetResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.GetVariableSet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/variableSets/{variableSetId}" - localVarPath = strings.Replace(localVarPath, "{"+"variableSetId"+"}", url.PathEscape(parameterValueToString(r.variableSetId, "variableSetId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListConfigurationRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiListConfigurationRequest) Take(take int32) ApiListConfigurationRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiListConfigurationRequest) Skip(skip int32) ApiListConfigurationRequest { - r.skip = &skip - return r -} - -// indicates the sort field for the resources -func (r ApiListConfigurationRequest) SortBy(sortBy string) ApiListConfigurationRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiListConfigurationRequest) SortDirection(sortDirection string) ApiListConfigurationRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiListConfigurationRequest) Execute() (*ConfigurationResourceList, *http.Response, error) { - return r.ApiService.ListConfigurationExecute(r) -} - -/* -ListConfiguration List Tracetest configuration - -List Tracetest configuration - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListConfigurationRequest -*/ -func (a *ResourceApiApiService) ListConfiguration(ctx context.Context) ApiListConfigurationRequest { - return ApiListConfigurationRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ConfigurationResourceList -func (a *ResourceApiApiService) ListConfigurationExecute(r ApiListConfigurationRequest) (*ConfigurationResourceList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigurationResourceList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.ListConfiguration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/configs" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListDataStoreRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiListDataStoreRequest) Take(take int32) ApiListDataStoreRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiListDataStoreRequest) Skip(skip int32) ApiListDataStoreRequest { - r.skip = &skip - return r -} - -// indicates the sort field for the resources -func (r ApiListDataStoreRequest) SortBy(sortBy string) ApiListDataStoreRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiListDataStoreRequest) SortDirection(sortDirection string) ApiListDataStoreRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiListDataStoreRequest) Execute() (*DataStoreList, *http.Response, error) { - return r.ApiService.ListDataStoreExecute(r) -} - -/* -ListDataStore List Data Store - -List Data Store - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListDataStoreRequest -*/ -func (a *ResourceApiApiService) ListDataStore(ctx context.Context) ApiListDataStoreRequest { - return ApiListDataStoreRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DataStoreList -func (a *ResourceApiApiService) ListDataStoreExecute(r ApiListDataStoreRequest) (*DataStoreList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataStoreList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.ListDataStore") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/datastores" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListDemosRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiListDemosRequest) Take(take int32) ApiListDemosRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiListDemosRequest) Skip(skip int32) ApiListDemosRequest { - r.skip = &skip - return r -} - -// indicates the sort field for the resources -func (r ApiListDemosRequest) SortBy(sortBy string) ApiListDemosRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiListDemosRequest) SortDirection(sortDirection string) ApiListDemosRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiListDemosRequest) Execute() (*DemoList, *http.Response, error) { - return r.ApiService.ListDemosExecute(r) -} - -/* -ListDemos List Demonstrations - -List demonstrations used on Tracetest as quick start examples. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListDemosRequest -*/ -func (a *ResourceApiApiService) ListDemos(ctx context.Context) ApiListDemosRequest { - return ApiListDemosRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DemoList -func (a *ResourceApiApiService) ListDemosExecute(r ApiListDemosRequest) (*DemoList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DemoList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.ListDemos") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/demos" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListLintersRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiListLintersRequest) Take(take int32) ApiListLintersRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiListLintersRequest) Skip(skip int32) ApiListLintersRequest { - r.skip = &skip - return r -} - -// indicates the sort field for the resources -func (r ApiListLintersRequest) SortBy(sortBy string) ApiListLintersRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiListLintersRequest) SortDirection(sortDirection string) ApiListLintersRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiListLintersRequest) Execute() (*LinterResourceList, *http.Response, error) { - return r.ApiService.ListLintersExecute(r) -} - -/* -ListLinters List Linters - -List Linters available in Tracetest. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListLintersRequest -*/ -func (a *ResourceApiApiService) ListLinters(ctx context.Context) ApiListLintersRequest { - return ApiListLintersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return LinterResourceList -func (a *ResourceApiApiService) ListLintersExecute(r ApiListLintersRequest) (*LinterResourceList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LinterResourceList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.ListLinters") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/linters" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListPollingProfileRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiListPollingProfileRequest) Take(take int32) ApiListPollingProfileRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiListPollingProfileRequest) Skip(skip int32) ApiListPollingProfileRequest { - r.skip = &skip - return r -} - -// indicates the sort field for the resources -func (r ApiListPollingProfileRequest) SortBy(sortBy string) ApiListPollingProfileRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiListPollingProfileRequest) SortDirection(sortDirection string) ApiListPollingProfileRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiListPollingProfileRequest) Execute() (*PollingProfileList, *http.Response, error) { - return r.ApiService.ListPollingProfileExecute(r) -} - -/* -ListPollingProfile List Polling Profile Configuration - -List Polling Profile configuration - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPollingProfileRequest -*/ -func (a *ResourceApiApiService) ListPollingProfile(ctx context.Context) ApiListPollingProfileRequest { - return ApiListPollingProfileRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PollingProfileList -func (a *ResourceApiApiService) ListPollingProfileExecute(r ApiListPollingProfileRequest) (*PollingProfileList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PollingProfileList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.ListPollingProfile") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/pollingprofiles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListVariableSetsRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - take *int32 - skip *int32 - sortBy *string - sortDirection *string -} - -// indicates how many resources can be returned by each page -func (r ApiListVariableSetsRequest) Take(take int32) ApiListVariableSetsRequest { - r.take = &take - return r -} - -// indicates how many resources will be skipped when paginating -func (r ApiListVariableSetsRequest) Skip(skip int32) ApiListVariableSetsRequest { - r.skip = &skip - return r -} - -// indicates the sort field for the resources -func (r ApiListVariableSetsRequest) SortBy(sortBy string) ApiListVariableSetsRequest { - r.sortBy = &sortBy - return r -} - -// indicates the sort direction for the resources -func (r ApiListVariableSetsRequest) SortDirection(sortDirection string) ApiListVariableSetsRequest { - r.sortDirection = &sortDirection - return r -} - -func (r ApiListVariableSetsRequest) Execute() (*VariableSetResourceList, *http.Response, error) { - return r.ApiService.ListVariableSetsExecute(r) -} - -/* -ListVariableSets List VariableSets - -List VariableSets available in Tracetest. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListVariableSetsRequest -*/ -func (a *ResourceApiApiService) ListVariableSets(ctx context.Context) ApiListVariableSetsRequest { - return ApiListVariableSetsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return VariableSetResourceList -func (a *ResourceApiApiService) ListVariableSetsExecute(r ApiListVariableSetsRequest) (*VariableSetResourceList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VariableSetResourceList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.ListVariableSets") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/variableSets" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.take != nil { - parameterAddToQuery(localVarQueryParams, "take", r.take, "") - } - if r.skip != nil { - parameterAddToQuery(localVarQueryParams, "skip", r.skip, "") - } - if r.sortBy != nil { - parameterAddToQuery(localVarQueryParams, "sortBy", r.sortBy, "") - } - if r.sortDirection != nil { - parameterAddToQuery(localVarQueryParams, "sortDirection", r.sortDirection, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiTestsTestIdGetRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testId string -} - -func (r ApiTestsTestIdGetRequest) Execute() (*TestResource, *http.Response, error) { - return r.ApiService.TestsTestIdGetExecute(r) -} - -/* -TestsTestIdGet get test - -get test - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @return ApiTestsTestIdGetRequest -*/ -func (a *ResourceApiApiService) TestsTestIdGet(ctx context.Context, testId string) ApiTestsTestIdGetRequest { - return ApiTestsTestIdGetRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - } -} - -// Execute executes the request -// -// @return TestResource -func (a *ResourceApiApiService) TestsTestIdGetExecute(r ApiTestsTestIdGetRequest) (*TestResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.TestsTestIdGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateConfigurationRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - configId string - configurationResource *ConfigurationResource -} - -func (r ApiUpdateConfigurationRequest) ConfigurationResource(configurationResource ConfigurationResource) ApiUpdateConfigurationRequest { - r.configurationResource = &configurationResource - return r -} - -func (r ApiUpdateConfigurationRequest) Execute() (*ConfigurationResource, *http.Response, error) { - return r.ApiService.UpdateConfigurationExecute(r) -} - -/* -UpdateConfiguration Update Tracetest configuration - -Update Tracetest configuration - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configId ID of the configuration resource used on Tracetest. It should be set as 'current' - @return ApiUpdateConfigurationRequest -*/ -func (a *ResourceApiApiService) UpdateConfiguration(ctx context.Context, configId string) ApiUpdateConfigurationRequest { - return ApiUpdateConfigurationRequest{ - ApiService: a, - ctx: ctx, - configId: configId, - } -} - -// Execute executes the request -// -// @return ConfigurationResource -func (a *ResourceApiApiService) UpdateConfigurationExecute(r ApiUpdateConfigurationRequest) (*ConfigurationResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigurationResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateConfiguration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/configs/{configId}" - localVarPath = strings.Replace(localVarPath, "{"+"configId"+"}", url.PathEscape(parameterValueToString(r.configId, "configId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.configurationResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateDataStoreRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - dataStoreId string - dataStore *DataStore -} - -func (r ApiUpdateDataStoreRequest) DataStore(dataStore DataStore) ApiUpdateDataStoreRequest { - r.dataStore = &dataStore - return r -} - -func (r ApiUpdateDataStoreRequest) Execute() (*http.Response, error) { - return r.ApiService.UpdateDataStoreExecute(r) -} - -/* -UpdateDataStore Update a Data Store - -Update a Data Store - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dataStoreId ID of a datastore used on Tracetest to configure how to fetch traces in a test - @return ApiUpdateDataStoreRequest -*/ -func (a *ResourceApiApiService) UpdateDataStore(ctx context.Context, dataStoreId string) ApiUpdateDataStoreRequest { - return ApiUpdateDataStoreRequest{ - ApiService: a, - ctx: ctx, - dataStoreId: dataStoreId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) UpdateDataStoreExecute(r ApiUpdateDataStoreRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateDataStore") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/datastores/{dataStoreId}" - localVarPath = strings.Replace(localVarPath, "{"+"dataStoreId"+"}", url.PathEscape(parameterValueToString(r.dataStoreId, "dataStoreId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.dataStore - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiUpdateDemoRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - demoId string - demo *Demo -} - -func (r ApiUpdateDemoRequest) Demo(demo Demo) ApiUpdateDemoRequest { - r.demo = &demo - return r -} - -func (r ApiUpdateDemoRequest) Execute() (*Demo, *http.Response, error) { - return r.ApiService.UpdateDemoExecute(r) -} - -/* -UpdateDemo Update a Demonstration setting - -Update a demonstration used on Tracetest as quick start examples. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param demoId ID of a demonstration used on Tracetest as quick start examples - @return ApiUpdateDemoRequest -*/ -func (a *ResourceApiApiService) UpdateDemo(ctx context.Context, demoId string) ApiUpdateDemoRequest { - return ApiUpdateDemoRequest{ - ApiService: a, - ctx: ctx, - demoId: demoId, - } -} - -// Execute executes the request -// -// @return Demo -func (a *ResourceApiApiService) UpdateDemoExecute(r ApiUpdateDemoRequest) (*Demo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Demo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateDemo") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/demos/{demoId}" - localVarPath = strings.Replace(localVarPath, "{"+"demoId"+"}", url.PathEscape(parameterValueToString(r.demoId, "demoId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.demo - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateLinterRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - linterId string - linterResource *LinterResource -} - -func (r ApiUpdateLinterRequest) LinterResource(linterResource LinterResource) ApiUpdateLinterRequest { - r.linterResource = &linterResource - return r -} - -func (r ApiUpdateLinterRequest) Execute() (*LinterResource, *http.Response, error) { - return r.ApiService.UpdateLinterExecute(r) -} - -/* -UpdateLinter Update a Linter - -Update a Linter used on Tracetest - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param linterId ID of an Linter - @return ApiUpdateLinterRequest -*/ -func (a *ResourceApiApiService) UpdateLinter(ctx context.Context, linterId string) ApiUpdateLinterRequest { - return ApiUpdateLinterRequest{ - ApiService: a, - ctx: ctx, - linterId: linterId, - } -} - -// Execute executes the request -// -// @return LinterResource -func (a *ResourceApiApiService) UpdateLinterExecute(r ApiUpdateLinterRequest) (*LinterResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LinterResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateLinter") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/linters/{LinterId}" - localVarPath = strings.Replace(localVarPath, "{"+"LinterId"+"}", url.PathEscape(parameterValueToString(r.linterId, "linterId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.linterResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdatePollingProfileRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - pollingProfileId string - pollingProfile *PollingProfile -} - -func (r ApiUpdatePollingProfileRequest) PollingProfile(pollingProfile PollingProfile) ApiUpdatePollingProfileRequest { - r.pollingProfile = &pollingProfile - return r -} - -func (r ApiUpdatePollingProfileRequest) Execute() (*PollingProfile, *http.Response, error) { - return r.ApiService.UpdatePollingProfileExecute(r) -} - -/* -UpdatePollingProfile Update a Polling Profile - -Update a polling profile used on Tracetest to configure how to fetch traces in a test. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param pollingProfileId ID of a polling profile used on Tracetest to configure how to fetch traces in a test. It should be set as 'current' - @return ApiUpdatePollingProfileRequest -*/ -func (a *ResourceApiApiService) UpdatePollingProfile(ctx context.Context, pollingProfileId string) ApiUpdatePollingProfileRequest { - return ApiUpdatePollingProfileRequest{ - ApiService: a, - ctx: ctx, - pollingProfileId: pollingProfileId, - } -} - -// Execute executes the request -// -// @return PollingProfile -func (a *ResourceApiApiService) UpdatePollingProfileExecute(r ApiUpdatePollingProfileRequest) (*PollingProfile, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PollingProfile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdatePollingProfile") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/pollingprofiles/{pollingProfileId}" - localVarPath = strings.Replace(localVarPath, "{"+"pollingProfileId"+"}", url.PathEscape(parameterValueToString(r.pollingProfileId, "pollingProfileId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.pollingProfile - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateTestRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testId string - test *Test -} - -func (r ApiUpdateTestRequest) Test(test Test) ApiUpdateTestRequest { - r.test = &test - return r -} - -func (r ApiUpdateTestRequest) Execute() (*http.Response, error) { - return r.ApiService.UpdateTestExecute(r) -} - -/* -UpdateTest update test - -update test action - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testId id of the test - @return ApiUpdateTestRequest -*/ -func (a *ResourceApiApiService) UpdateTest(ctx context.Context, testId string) ApiUpdateTestRequest { - return ApiUpdateTestRequest{ - ApiService: a, - ctx: ctx, - testId: testId, - } -} - -// Execute executes the request -func (a *ResourceApiApiService) UpdateTestExecute(r ApiUpdateTestRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateTest") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tests/{testId}" - localVarPath = strings.Replace(localVarPath, "{"+"testId"+"}", url.PathEscape(parameterValueToString(r.testId, "testId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.test - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiUpdateTestSuiteRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - testSuiteId string - testSuiteResource *TestSuiteResource -} - -func (r ApiUpdateTestSuiteRequest) TestSuiteResource(testSuiteResource TestSuiteResource) ApiUpdateTestSuiteRequest { - r.testSuiteResource = &testSuiteResource - return r -} - -func (r ApiUpdateTestSuiteRequest) Execute() (*TestSuiteResource, *http.Response, error) { - return r.ApiService.UpdateTestSuiteExecute(r) -} - -/* -UpdateTestSuite update TestSuite - -update TestSuite action - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param testSuiteId id of the TestSuite - @return ApiUpdateTestSuiteRequest -*/ -func (a *ResourceApiApiService) UpdateTestSuite(ctx context.Context, testSuiteId string) ApiUpdateTestSuiteRequest { - return ApiUpdateTestSuiteRequest{ - ApiService: a, - ctx: ctx, - testSuiteId: testSuiteId, - } -} - -// Execute executes the request -// -// @return TestSuiteResource -func (a *ResourceApiApiService) UpdateTestSuiteExecute(r ApiUpdateTestSuiteRequest) (*TestSuiteResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TestSuiteResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateTestSuite") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/testsuites/{testSuiteId}" - localVarPath = strings.Replace(localVarPath, "{"+"testSuiteId"+"}", url.PathEscape(parameterValueToString(r.testSuiteId, "testSuiteId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.testSuiteResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateVariableSetRequest struct { - ctx context.Context - ApiService *ResourceApiApiService - variableSetId string - variableSetResource *VariableSetResource -} - -func (r ApiUpdateVariableSetRequest) VariableSetResource(variableSetResource VariableSetResource) ApiUpdateVariableSetRequest { - r.variableSetResource = &variableSetResource - return r -} - -func (r ApiUpdateVariableSetRequest) Execute() (*VariableSetResource, *http.Response, error) { - return r.ApiService.UpdateVariableSetExecute(r) -} - -/* -UpdateVariableSet Update a VariableSet - -Update a VariableSet used on Tracetest - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param variableSetId ID of a VariableSet used on Tracetest to inject values into tests and TestSuites - @return ApiUpdateVariableSetRequest -*/ -func (a *ResourceApiApiService) UpdateVariableSet(ctx context.Context, variableSetId string) ApiUpdateVariableSetRequest { - return ApiUpdateVariableSetRequest{ - ApiService: a, - ctx: ctx, - variableSetId: variableSetId, - } -} - -// Execute executes the request -// -// @return VariableSetResource -func (a *ResourceApiApiService) UpdateVariableSetExecute(r ApiUpdateVariableSetRequest) (*VariableSetResource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VariableSetResource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceApiApiService.UpdateVariableSet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/variableSets/{variableSetId}" - localVarPath = strings.Replace(localVarPath, "{"+"variableSetId"+"}", url.PathEscape(parameterValueToString(r.variableSetId, "variableSetId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/yaml"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.variableSetResource - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/openapi/client.go b/openapi/client.go deleted file mode 100644 index f9a3836..0000000 --- a/openapi/client.go +++ /dev/null @@ -1,657 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "io/ioutil" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" -) - -var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") -) - -// APIClient manages communication with the TraceTest API v0.2.1 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - ApiApi *ApiApiService - - ResourceApiApi *ResourceApiApiService -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.ApiApi = (*ApiApiService)(&c.common) - c.ResourceApiApi = (*ResourceApiApiService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -func parameterValueToString(obj interface{}, key string) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - return fmt.Sprintf("%v", obj) - } - var param, ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap, err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToQuery adds the provided object to the url query supporting deep object syntax -func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t, ok := obj.(MappedNullable); ok { - dataMap, err := t.ToMap() - if err != nil { - return - } - parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i := 0; i < lenIndValue; i++ { - var arrayValue = indValue.Index(i) - parameterAddToQuery(queryParams, keyPrefix, arrayValue.Interface(), collectionType) - } - return - - case reflect.Map: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - iter := indValue.MapRange() - for iter.Next() { - k, v := iter.Key(), iter.Value() - parameterAddToQuery(queryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) - } - return - - case reflect.Interface: - fallthrough - case reflect.Ptr: - parameterAddToQuery(queryParams, keyPrefix, v.Elem().Interface(), collectionType) - return - - case reflect.Int, reflect.Int8, reflect.Int16, - reflect.Int32, reflect.Int64: - value = strconv.FormatInt(v.Int(), 10) - case reflect.Uint, reflect.Uint8, reflect.Uint16, - reflect.Uint32, reflect.Uint64, reflect.Uintptr: - value = strconv.FormatUint(v.Uint(), 10) - case reflect.Float32, reflect.Float64: - value = strconv.FormatFloat(v.Float(), 'g', -1, 32) - case reflect.Bool: - value = strconv.FormatBool(v.Bool()) - case reflect.String: - value = v.String() - default: - value = v.Type().String() + " value" - } - } - - switch valuesMap := queryParams.(type) { - case url.Values: - if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { - valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) - } else { - valuesMap.Add(keyPrefix, value) - } - break - case map[string]string: - valuesMap[keyPrefix] = value - break - } -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -func (c *APIClient) GetConfig() *Configuration { - return c.cfg -} - -type formFile struct { - fileBytes []byte - fileName string - formFileName string -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFiles []formFile) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = ioutil.TempFile("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = ioutil.TempFile("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if xmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - err = file.Close() - if err != nil { - return err - } - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} - -// format error message using title and detail when model implements rfc7807 -func formatErrorMessage(status string, v interface{}) string { - str := "" - metaValue := reflect.ValueOf(v).Elem() - - field := metaValue.FieldByName("Title") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s", field.Interface()) - } - - field = metaValue.FieldByName("Detail") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s (%s)", str, field.Interface()) - } - - // status title (detail) - return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) -} diff --git a/openapi/configuration.go b/openapi/configuration.go deleted file mode 100644 index ba498aa..0000000 --- a/openapi/configuration.go +++ /dev/null @@ -1,214 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "/api", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{}, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} diff --git a/openapi/model_assertion_result.go b/openapi/model_assertion_result.go deleted file mode 100644 index 9b1eddd..0000000 --- a/openapi/model_assertion_result.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AssertionResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssertionResult{} - -// AssertionResult struct for AssertionResult -type AssertionResult struct { - Assertion *string `json:"assertion,omitempty"` - AllPassed *bool `json:"allPassed,omitempty"` - SpanResults []AssertionSpanResult `json:"spanResults,omitempty"` -} - -// NewAssertionResult instantiates a new AssertionResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAssertionResult() *AssertionResult { - this := AssertionResult{} - return &this -} - -// NewAssertionResultWithDefaults instantiates a new AssertionResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAssertionResultWithDefaults() *AssertionResult { - this := AssertionResult{} - return &this -} - -// GetAssertion returns the Assertion field value if set, zero value otherwise. -func (o *AssertionResult) GetAssertion() string { - if o == nil || isNil(o.Assertion) { - var ret string - return ret - } - return *o.Assertion -} - -// GetAssertionOk returns a tuple with the Assertion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResult) GetAssertionOk() (*string, bool) { - if o == nil || isNil(o.Assertion) { - return nil, false - } - return o.Assertion, true -} - -// HasAssertion returns a boolean if a field has been set. -func (o *AssertionResult) HasAssertion() bool { - if o != nil && !isNil(o.Assertion) { - return true - } - - return false -} - -// SetAssertion gets a reference to the given string and assigns it to the Assertion field. -func (o *AssertionResult) SetAssertion(v string) { - o.Assertion = &v -} - -// GetAllPassed returns the AllPassed field value if set, zero value otherwise. -func (o *AssertionResult) GetAllPassed() bool { - if o == nil || isNil(o.AllPassed) { - var ret bool - return ret - } - return *o.AllPassed -} - -// GetAllPassedOk returns a tuple with the AllPassed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResult) GetAllPassedOk() (*bool, bool) { - if o == nil || isNil(o.AllPassed) { - return nil, false - } - return o.AllPassed, true -} - -// HasAllPassed returns a boolean if a field has been set. -func (o *AssertionResult) HasAllPassed() bool { - if o != nil && !isNil(o.AllPassed) { - return true - } - - return false -} - -// SetAllPassed gets a reference to the given bool and assigns it to the AllPassed field. -func (o *AssertionResult) SetAllPassed(v bool) { - o.AllPassed = &v -} - -// GetSpanResults returns the SpanResults field value if set, zero value otherwise. -func (o *AssertionResult) GetSpanResults() []AssertionSpanResult { - if o == nil || isNil(o.SpanResults) { - var ret []AssertionSpanResult - return ret - } - return o.SpanResults -} - -// GetSpanResultsOk returns a tuple with the SpanResults field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResult) GetSpanResultsOk() ([]AssertionSpanResult, bool) { - if o == nil || isNil(o.SpanResults) { - return nil, false - } - return o.SpanResults, true -} - -// HasSpanResults returns a boolean if a field has been set. -func (o *AssertionResult) HasSpanResults() bool { - if o != nil && !isNil(o.SpanResults) { - return true - } - - return false -} - -// SetSpanResults gets a reference to the given []AssertionSpanResult and assigns it to the SpanResults field. -func (o *AssertionResult) SetSpanResults(v []AssertionSpanResult) { - o.SpanResults = v -} - -func (o AssertionResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AssertionResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Assertion) { - toSerialize["assertion"] = o.Assertion - } - if !isNil(o.AllPassed) { - toSerialize["allPassed"] = o.AllPassed - } - if !isNil(o.SpanResults) { - toSerialize["spanResults"] = o.SpanResults - } - return toSerialize, nil -} - -type NullableAssertionResult struct { - value *AssertionResult - isSet bool -} - -func (v NullableAssertionResult) Get() *AssertionResult { - return v.value -} - -func (v *NullableAssertionResult) Set(val *AssertionResult) { - v.value = val - v.isSet = true -} - -func (v NullableAssertionResult) IsSet() bool { - return v.isSet -} - -func (v *NullableAssertionResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAssertionResult(val *AssertionResult) *NullableAssertionResult { - return &NullableAssertionResult{value: val, isSet: true} -} - -func (v NullableAssertionResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAssertionResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_assertion_results.go b/openapi/model_assertion_results.go deleted file mode 100644 index 5057e67..0000000 --- a/openapi/model_assertion_results.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AssertionResults type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssertionResults{} - -// AssertionResults struct for AssertionResults -type AssertionResults struct { - AllPassed *bool `json:"allPassed,omitempty"` - Results []AssertionResultsResultsInner `json:"results,omitempty"` -} - -// NewAssertionResults instantiates a new AssertionResults object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAssertionResults() *AssertionResults { - this := AssertionResults{} - return &this -} - -// NewAssertionResultsWithDefaults instantiates a new AssertionResults object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAssertionResultsWithDefaults() *AssertionResults { - this := AssertionResults{} - return &this -} - -// GetAllPassed returns the AllPassed field value if set, zero value otherwise. -func (o *AssertionResults) GetAllPassed() bool { - if o == nil || isNil(o.AllPassed) { - var ret bool - return ret - } - return *o.AllPassed -} - -// GetAllPassedOk returns a tuple with the AllPassed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResults) GetAllPassedOk() (*bool, bool) { - if o == nil || isNil(o.AllPassed) { - return nil, false - } - return o.AllPassed, true -} - -// HasAllPassed returns a boolean if a field has been set. -func (o *AssertionResults) HasAllPassed() bool { - if o != nil && !isNil(o.AllPassed) { - return true - } - - return false -} - -// SetAllPassed gets a reference to the given bool and assigns it to the AllPassed field. -func (o *AssertionResults) SetAllPassed(v bool) { - o.AllPassed = &v -} - -// GetResults returns the Results field value if set, zero value otherwise. -func (o *AssertionResults) GetResults() []AssertionResultsResultsInner { - if o == nil || isNil(o.Results) { - var ret []AssertionResultsResultsInner - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResults) GetResultsOk() ([]AssertionResultsResultsInner, bool) { - if o == nil || isNil(o.Results) { - return nil, false - } - return o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *AssertionResults) HasResults() bool { - if o != nil && !isNil(o.Results) { - return true - } - - return false -} - -// SetResults gets a reference to the given []AssertionResultsResultsInner and assigns it to the Results field. -func (o *AssertionResults) SetResults(v []AssertionResultsResultsInner) { - o.Results = v -} - -func (o AssertionResults) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AssertionResults) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AllPassed) { - toSerialize["allPassed"] = o.AllPassed - } - if !isNil(o.Results) { - toSerialize["results"] = o.Results - } - return toSerialize, nil -} - -type NullableAssertionResults struct { - value *AssertionResults - isSet bool -} - -func (v NullableAssertionResults) Get() *AssertionResults { - return v.value -} - -func (v *NullableAssertionResults) Set(val *AssertionResults) { - v.value = val - v.isSet = true -} - -func (v NullableAssertionResults) IsSet() bool { - return v.isSet -} - -func (v *NullableAssertionResults) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAssertionResults(val *AssertionResults) *NullableAssertionResults { - return &NullableAssertionResults{value: val, isSet: true} -} - -func (v NullableAssertionResults) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAssertionResults) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_assertion_results_results_inner.go b/openapi/model_assertion_results_results_inner.go deleted file mode 100644 index 8681ca2..0000000 --- a/openapi/model_assertion_results_results_inner.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AssertionResultsResultsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssertionResultsResultsInner{} - -// AssertionResultsResultsInner struct for AssertionResultsResultsInner -type AssertionResultsResultsInner struct { - Selector *Selector `json:"selector,omitempty"` - Results []AssertionResult `json:"results,omitempty"` -} - -// NewAssertionResultsResultsInner instantiates a new AssertionResultsResultsInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAssertionResultsResultsInner() *AssertionResultsResultsInner { - this := AssertionResultsResultsInner{} - return &this -} - -// NewAssertionResultsResultsInnerWithDefaults instantiates a new AssertionResultsResultsInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAssertionResultsResultsInnerWithDefaults() *AssertionResultsResultsInner { - this := AssertionResultsResultsInner{} - return &this -} - -// GetSelector returns the Selector field value if set, zero value otherwise. -func (o *AssertionResultsResultsInner) GetSelector() Selector { - if o == nil || isNil(o.Selector) { - var ret Selector - return ret - } - return *o.Selector -} - -// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResultsResultsInner) GetSelectorOk() (*Selector, bool) { - if o == nil || isNil(o.Selector) { - return nil, false - } - return o.Selector, true -} - -// HasSelector returns a boolean if a field has been set. -func (o *AssertionResultsResultsInner) HasSelector() bool { - if o != nil && !isNil(o.Selector) { - return true - } - - return false -} - -// SetSelector gets a reference to the given Selector and assigns it to the Selector field. -func (o *AssertionResultsResultsInner) SetSelector(v Selector) { - o.Selector = &v -} - -// GetResults returns the Results field value if set, zero value otherwise. -func (o *AssertionResultsResultsInner) GetResults() []AssertionResult { - if o == nil || isNil(o.Results) { - var ret []AssertionResult - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionResultsResultsInner) GetResultsOk() ([]AssertionResult, bool) { - if o == nil || isNil(o.Results) { - return nil, false - } - return o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *AssertionResultsResultsInner) HasResults() bool { - if o != nil && !isNil(o.Results) { - return true - } - - return false -} - -// SetResults gets a reference to the given []AssertionResult and assigns it to the Results field. -func (o *AssertionResultsResultsInner) SetResults(v []AssertionResult) { - o.Results = v -} - -func (o AssertionResultsResultsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AssertionResultsResultsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Selector) { - toSerialize["selector"] = o.Selector - } - if !isNil(o.Results) { - toSerialize["results"] = o.Results - } - return toSerialize, nil -} - -type NullableAssertionResultsResultsInner struct { - value *AssertionResultsResultsInner - isSet bool -} - -func (v NullableAssertionResultsResultsInner) Get() *AssertionResultsResultsInner { - return v.value -} - -func (v *NullableAssertionResultsResultsInner) Set(val *AssertionResultsResultsInner) { - v.value = val - v.isSet = true -} - -func (v NullableAssertionResultsResultsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableAssertionResultsResultsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAssertionResultsResultsInner(val *AssertionResultsResultsInner) *NullableAssertionResultsResultsInner { - return &NullableAssertionResultsResultsInner{value: val, isSet: true} -} - -func (v NullableAssertionResultsResultsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAssertionResultsResultsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_assertion_span_result.go b/openapi/model_assertion_span_result.go deleted file mode 100644 index 2085c43..0000000 --- a/openapi/model_assertion_span_result.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AssertionSpanResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssertionSpanResult{} - -// AssertionSpanResult struct for AssertionSpanResult -type AssertionSpanResult struct { - SpanId *string `json:"spanId,omitempty"` - ObservedValue *string `json:"observedValue,omitempty"` - Passed *bool `json:"passed,omitempty"` - Error *string `json:"error,omitempty"` -} - -// NewAssertionSpanResult instantiates a new AssertionSpanResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAssertionSpanResult() *AssertionSpanResult { - this := AssertionSpanResult{} - return &this -} - -// NewAssertionSpanResultWithDefaults instantiates a new AssertionSpanResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAssertionSpanResultWithDefaults() *AssertionSpanResult { - this := AssertionSpanResult{} - return &this -} - -// GetSpanId returns the SpanId field value if set, zero value otherwise. -func (o *AssertionSpanResult) GetSpanId() string { - if o == nil || isNil(o.SpanId) { - var ret string - return ret - } - return *o.SpanId -} - -// GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionSpanResult) GetSpanIdOk() (*string, bool) { - if o == nil || isNil(o.SpanId) { - return nil, false - } - return o.SpanId, true -} - -// HasSpanId returns a boolean if a field has been set. -func (o *AssertionSpanResult) HasSpanId() bool { - if o != nil && !isNil(o.SpanId) { - return true - } - - return false -} - -// SetSpanId gets a reference to the given string and assigns it to the SpanId field. -func (o *AssertionSpanResult) SetSpanId(v string) { - o.SpanId = &v -} - -// GetObservedValue returns the ObservedValue field value if set, zero value otherwise. -func (o *AssertionSpanResult) GetObservedValue() string { - if o == nil || isNil(o.ObservedValue) { - var ret string - return ret - } - return *o.ObservedValue -} - -// GetObservedValueOk returns a tuple with the ObservedValue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionSpanResult) GetObservedValueOk() (*string, bool) { - if o == nil || isNil(o.ObservedValue) { - return nil, false - } - return o.ObservedValue, true -} - -// HasObservedValue returns a boolean if a field has been set. -func (o *AssertionSpanResult) HasObservedValue() bool { - if o != nil && !isNil(o.ObservedValue) { - return true - } - - return false -} - -// SetObservedValue gets a reference to the given string and assigns it to the ObservedValue field. -func (o *AssertionSpanResult) SetObservedValue(v string) { - o.ObservedValue = &v -} - -// GetPassed returns the Passed field value if set, zero value otherwise. -func (o *AssertionSpanResult) GetPassed() bool { - if o == nil || isNil(o.Passed) { - var ret bool - return ret - } - return *o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionSpanResult) GetPassedOk() (*bool, bool) { - if o == nil || isNil(o.Passed) { - return nil, false - } - return o.Passed, true -} - -// HasPassed returns a boolean if a field has been set. -func (o *AssertionSpanResult) HasPassed() bool { - if o != nil && !isNil(o.Passed) { - return true - } - - return false -} - -// SetPassed gets a reference to the given bool and assigns it to the Passed field. -func (o *AssertionSpanResult) SetPassed(v bool) { - o.Passed = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *AssertionSpanResult) GetError() string { - if o == nil || isNil(o.Error) { - var ret string - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AssertionSpanResult) GetErrorOk() (*string, bool) { - if o == nil || isNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *AssertionSpanResult) HasError() bool { - if o != nil && !isNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given string and assigns it to the Error field. -func (o *AssertionSpanResult) SetError(v string) { - o.Error = &v -} - -func (o AssertionSpanResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AssertionSpanResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.SpanId) { - toSerialize["spanId"] = o.SpanId - } - if !isNil(o.ObservedValue) { - toSerialize["observedValue"] = o.ObservedValue - } - if !isNil(o.Passed) { - toSerialize["passed"] = o.Passed - } - if !isNil(o.Error) { - toSerialize["error"] = o.Error - } - return toSerialize, nil -} - -type NullableAssertionSpanResult struct { - value *AssertionSpanResult - isSet bool -} - -func (v NullableAssertionSpanResult) Get() *AssertionSpanResult { - return v.value -} - -func (v *NullableAssertionSpanResult) Set(val *AssertionSpanResult) { - v.value = val - v.isSet = true -} - -func (v NullableAssertionSpanResult) IsSet() bool { - return v.isSet -} - -func (v *NullableAssertionSpanResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAssertionSpanResult(val *AssertionSpanResult) *NullableAssertionSpanResult { - return &NullableAssertionSpanResult{value: val, isSet: true} -} - -func (v NullableAssertionSpanResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAssertionSpanResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_aws_x_ray.go b/openapi/model_aws_x_ray.go deleted file mode 100644 index 54dbd45..0000000 --- a/openapi/model_aws_x_ray.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AwsXRay type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AwsXRay{} - -// AwsXRay struct for AwsXRay -type AwsXRay struct { - Region *string `json:"region,omitempty"` - AccessKeyId *string `json:"accessKeyId,omitempty"` - SecretAccessKey *string `json:"secretAccessKey,omitempty"` - SessionToken *string `json:"sessionToken,omitempty"` - UseDefaultAuth *bool `json:"useDefaultAuth,omitempty"` -} - -// NewAwsXRay instantiates a new AwsXRay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAwsXRay() *AwsXRay { - this := AwsXRay{} - return &this -} - -// NewAwsXRayWithDefaults instantiates a new AwsXRay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAwsXRayWithDefaults() *AwsXRay { - this := AwsXRay{} - return &this -} - -// GetRegion returns the Region field value if set, zero value otherwise. -func (o *AwsXRay) GetRegion() string { - if o == nil || isNil(o.Region) { - var ret string - return ret - } - return *o.Region -} - -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AwsXRay) GetRegionOk() (*string, bool) { - if o == nil || isNil(o.Region) { - return nil, false - } - return o.Region, true -} - -// HasRegion returns a boolean if a field has been set. -func (o *AwsXRay) HasRegion() bool { - if o != nil && !isNil(o.Region) { - return true - } - - return false -} - -// SetRegion gets a reference to the given string and assigns it to the Region field. -func (o *AwsXRay) SetRegion(v string) { - o.Region = &v -} - -// GetAccessKeyId returns the AccessKeyId field value if set, zero value otherwise. -func (o *AwsXRay) GetAccessKeyId() string { - if o == nil || isNil(o.AccessKeyId) { - var ret string - return ret - } - return *o.AccessKeyId -} - -// GetAccessKeyIdOk returns a tuple with the AccessKeyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AwsXRay) GetAccessKeyIdOk() (*string, bool) { - if o == nil || isNil(o.AccessKeyId) { - return nil, false - } - return o.AccessKeyId, true -} - -// HasAccessKeyId returns a boolean if a field has been set. -func (o *AwsXRay) HasAccessKeyId() bool { - if o != nil && !isNil(o.AccessKeyId) { - return true - } - - return false -} - -// SetAccessKeyId gets a reference to the given string and assigns it to the AccessKeyId field. -func (o *AwsXRay) SetAccessKeyId(v string) { - o.AccessKeyId = &v -} - -// GetSecretAccessKey returns the SecretAccessKey field value if set, zero value otherwise. -func (o *AwsXRay) GetSecretAccessKey() string { - if o == nil || isNil(o.SecretAccessKey) { - var ret string - return ret - } - return *o.SecretAccessKey -} - -// GetSecretAccessKeyOk returns a tuple with the SecretAccessKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AwsXRay) GetSecretAccessKeyOk() (*string, bool) { - if o == nil || isNil(o.SecretAccessKey) { - return nil, false - } - return o.SecretAccessKey, true -} - -// HasSecretAccessKey returns a boolean if a field has been set. -func (o *AwsXRay) HasSecretAccessKey() bool { - if o != nil && !isNil(o.SecretAccessKey) { - return true - } - - return false -} - -// SetSecretAccessKey gets a reference to the given string and assigns it to the SecretAccessKey field. -func (o *AwsXRay) SetSecretAccessKey(v string) { - o.SecretAccessKey = &v -} - -// GetSessionToken returns the SessionToken field value if set, zero value otherwise. -func (o *AwsXRay) GetSessionToken() string { - if o == nil || isNil(o.SessionToken) { - var ret string - return ret - } - return *o.SessionToken -} - -// GetSessionTokenOk returns a tuple with the SessionToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AwsXRay) GetSessionTokenOk() (*string, bool) { - if o == nil || isNil(o.SessionToken) { - return nil, false - } - return o.SessionToken, true -} - -// HasSessionToken returns a boolean if a field has been set. -func (o *AwsXRay) HasSessionToken() bool { - if o != nil && !isNil(o.SessionToken) { - return true - } - - return false -} - -// SetSessionToken gets a reference to the given string and assigns it to the SessionToken field. -func (o *AwsXRay) SetSessionToken(v string) { - o.SessionToken = &v -} - -// GetUseDefaultAuth returns the UseDefaultAuth field value if set, zero value otherwise. -func (o *AwsXRay) GetUseDefaultAuth() bool { - if o == nil || isNil(o.UseDefaultAuth) { - var ret bool - return ret - } - return *o.UseDefaultAuth -} - -// GetUseDefaultAuthOk returns a tuple with the UseDefaultAuth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AwsXRay) GetUseDefaultAuthOk() (*bool, bool) { - if o == nil || isNil(o.UseDefaultAuth) { - return nil, false - } - return o.UseDefaultAuth, true -} - -// HasUseDefaultAuth returns a boolean if a field has been set. -func (o *AwsXRay) HasUseDefaultAuth() bool { - if o != nil && !isNil(o.UseDefaultAuth) { - return true - } - - return false -} - -// SetUseDefaultAuth gets a reference to the given bool and assigns it to the UseDefaultAuth field. -func (o *AwsXRay) SetUseDefaultAuth(v bool) { - o.UseDefaultAuth = &v -} - -func (o AwsXRay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AwsXRay) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Region) { - toSerialize["region"] = o.Region - } - if !isNil(o.AccessKeyId) { - toSerialize["accessKeyId"] = o.AccessKeyId - } - if !isNil(o.SecretAccessKey) { - toSerialize["secretAccessKey"] = o.SecretAccessKey - } - if !isNil(o.SessionToken) { - toSerialize["sessionToken"] = o.SessionToken - } - if !isNil(o.UseDefaultAuth) { - toSerialize["useDefaultAuth"] = o.UseDefaultAuth - } - return toSerialize, nil -} - -type NullableAwsXRay struct { - value *AwsXRay - isSet bool -} - -func (v NullableAwsXRay) Get() *AwsXRay { - return v.value -} - -func (v *NullableAwsXRay) Set(val *AwsXRay) { - v.value = val - v.isSet = true -} - -func (v NullableAwsXRay) IsSet() bool { - return v.isSet -} - -func (v *NullableAwsXRay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAwsXRay(val *AwsXRay) *NullableAwsXRay { - return &NullableAwsXRay{value: val, isSet: true} -} - -func (v NullableAwsXRay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAwsXRay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_azure_app_insights.go b/openapi/model_azure_app_insights.go deleted file mode 100644 index c9351fb..0000000 --- a/openapi/model_azure_app_insights.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AzureAppInsights type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AzureAppInsights{} - -// AzureAppInsights struct for AzureAppInsights -type AzureAppInsights struct { - UseAzureActiveDirectoryAuth *bool `json:"useAzureActiveDirectoryAuth,omitempty"` - AccessToken *string `json:"accessToken,omitempty"` - ConnectionType *SupportedConnectionTypes `json:"connectionType,omitempty"` - ResourceArmId *string `json:"resourceArmId,omitempty"` -} - -// NewAzureAppInsights instantiates a new AzureAppInsights object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAzureAppInsights() *AzureAppInsights { - this := AzureAppInsights{} - return &this -} - -// NewAzureAppInsightsWithDefaults instantiates a new AzureAppInsights object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAzureAppInsightsWithDefaults() *AzureAppInsights { - this := AzureAppInsights{} - return &this -} - -// GetUseAzureActiveDirectoryAuth returns the UseAzureActiveDirectoryAuth field value if set, zero value otherwise. -func (o *AzureAppInsights) GetUseAzureActiveDirectoryAuth() bool { - if o == nil || isNil(o.UseAzureActiveDirectoryAuth) { - var ret bool - return ret - } - return *o.UseAzureActiveDirectoryAuth -} - -// GetUseAzureActiveDirectoryAuthOk returns a tuple with the UseAzureActiveDirectoryAuth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AzureAppInsights) GetUseAzureActiveDirectoryAuthOk() (*bool, bool) { - if o == nil || isNil(o.UseAzureActiveDirectoryAuth) { - return nil, false - } - return o.UseAzureActiveDirectoryAuth, true -} - -// HasUseAzureActiveDirectoryAuth returns a boolean if a field has been set. -func (o *AzureAppInsights) HasUseAzureActiveDirectoryAuth() bool { - if o != nil && !isNil(o.UseAzureActiveDirectoryAuth) { - return true - } - - return false -} - -// SetUseAzureActiveDirectoryAuth gets a reference to the given bool and assigns it to the UseAzureActiveDirectoryAuth field. -func (o *AzureAppInsights) SetUseAzureActiveDirectoryAuth(v bool) { - o.UseAzureActiveDirectoryAuth = &v -} - -// GetAccessToken returns the AccessToken field value if set, zero value otherwise. -func (o *AzureAppInsights) GetAccessToken() string { - if o == nil || isNil(o.AccessToken) { - var ret string - return ret - } - return *o.AccessToken -} - -// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AzureAppInsights) GetAccessTokenOk() (*string, bool) { - if o == nil || isNil(o.AccessToken) { - return nil, false - } - return o.AccessToken, true -} - -// HasAccessToken returns a boolean if a field has been set. -func (o *AzureAppInsights) HasAccessToken() bool { - if o != nil && !isNil(o.AccessToken) { - return true - } - - return false -} - -// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. -func (o *AzureAppInsights) SetAccessToken(v string) { - o.AccessToken = &v -} - -// GetConnectionType returns the ConnectionType field value if set, zero value otherwise. -func (o *AzureAppInsights) GetConnectionType() SupportedConnectionTypes { - if o == nil || isNil(o.ConnectionType) { - var ret SupportedConnectionTypes - return ret - } - return *o.ConnectionType -} - -// GetConnectionTypeOk returns a tuple with the ConnectionType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AzureAppInsights) GetConnectionTypeOk() (*SupportedConnectionTypes, bool) { - if o == nil || isNil(o.ConnectionType) { - return nil, false - } - return o.ConnectionType, true -} - -// HasConnectionType returns a boolean if a field has been set. -func (o *AzureAppInsights) HasConnectionType() bool { - if o != nil && !isNil(o.ConnectionType) { - return true - } - - return false -} - -// SetConnectionType gets a reference to the given SupportedConnectionTypes and assigns it to the ConnectionType field. -func (o *AzureAppInsights) SetConnectionType(v SupportedConnectionTypes) { - o.ConnectionType = &v -} - -// GetResourceArmId returns the ResourceArmId field value if set, zero value otherwise. -func (o *AzureAppInsights) GetResourceArmId() string { - if o == nil || isNil(o.ResourceArmId) { - var ret string - return ret - } - return *o.ResourceArmId -} - -// GetResourceArmIdOk returns a tuple with the ResourceArmId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AzureAppInsights) GetResourceArmIdOk() (*string, bool) { - if o == nil || isNil(o.ResourceArmId) { - return nil, false - } - return o.ResourceArmId, true -} - -// HasResourceArmId returns a boolean if a field has been set. -func (o *AzureAppInsights) HasResourceArmId() bool { - if o != nil && !isNil(o.ResourceArmId) { - return true - } - - return false -} - -// SetResourceArmId gets a reference to the given string and assigns it to the ResourceArmId field. -func (o *AzureAppInsights) SetResourceArmId(v string) { - o.ResourceArmId = &v -} - -func (o AzureAppInsights) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AzureAppInsights) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.UseAzureActiveDirectoryAuth) { - toSerialize["useAzureActiveDirectoryAuth"] = o.UseAzureActiveDirectoryAuth - } - if !isNil(o.AccessToken) { - toSerialize["accessToken"] = o.AccessToken - } - if !isNil(o.ConnectionType) { - toSerialize["connectionType"] = o.ConnectionType - } - if !isNil(o.ResourceArmId) { - toSerialize["resourceArmId"] = o.ResourceArmId - } - return toSerialize, nil -} - -type NullableAzureAppInsights struct { - value *AzureAppInsights - isSet bool -} - -func (v NullableAzureAppInsights) Get() *AzureAppInsights { - return v.value -} - -func (v *NullableAzureAppInsights) Set(val *AzureAppInsights) { - v.value = val - v.isSet = true -} - -func (v NullableAzureAppInsights) IsSet() bool { - return v.isSet -} - -func (v *NullableAzureAppInsights) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAzureAppInsights(val *AzureAppInsights) *NullableAzureAppInsights { - return &NullableAzureAppInsights{value: val, isSet: true} -} - -func (v NullableAzureAppInsights) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAzureAppInsights) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_base_client.go b/openapi/model_base_client.go deleted file mode 100644 index 164ae9f..0000000 --- a/openapi/model_base_client.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the BaseClient type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BaseClient{} - -// BaseClient struct for BaseClient -type BaseClient struct { - Type *SupportedClients `json:"type,omitempty"` - Http *HTTPClientSettings `json:"http,omitempty"` - Grpc *GRPCClientSettings `json:"grpc,omitempty"` -} - -// NewBaseClient instantiates a new BaseClient object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBaseClient() *BaseClient { - this := BaseClient{} - return &this -} - -// NewBaseClientWithDefaults instantiates a new BaseClient object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBaseClientWithDefaults() *BaseClient { - this := BaseClient{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *BaseClient) GetType() SupportedClients { - if o == nil || isNil(o.Type) { - var ret SupportedClients - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseClient) GetTypeOk() (*SupportedClients, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *BaseClient) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given SupportedClients and assigns it to the Type field. -func (o *BaseClient) SetType(v SupportedClients) { - o.Type = &v -} - -// GetHttp returns the Http field value if set, zero value otherwise. -func (o *BaseClient) GetHttp() HTTPClientSettings { - if o == nil || isNil(o.Http) { - var ret HTTPClientSettings - return ret - } - return *o.Http -} - -// GetHttpOk returns a tuple with the Http field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseClient) GetHttpOk() (*HTTPClientSettings, bool) { - if o == nil || isNil(o.Http) { - return nil, false - } - return o.Http, true -} - -// HasHttp returns a boolean if a field has been set. -func (o *BaseClient) HasHttp() bool { - if o != nil && !isNil(o.Http) { - return true - } - - return false -} - -// SetHttp gets a reference to the given HTTPClientSettings and assigns it to the Http field. -func (o *BaseClient) SetHttp(v HTTPClientSettings) { - o.Http = &v -} - -// GetGrpc returns the Grpc field value if set, zero value otherwise. -func (o *BaseClient) GetGrpc() GRPCClientSettings { - if o == nil || isNil(o.Grpc) { - var ret GRPCClientSettings - return ret - } - return *o.Grpc -} - -// GetGrpcOk returns a tuple with the Grpc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseClient) GetGrpcOk() (*GRPCClientSettings, bool) { - if o == nil || isNil(o.Grpc) { - return nil, false - } - return o.Grpc, true -} - -// HasGrpc returns a boolean if a field has been set. -func (o *BaseClient) HasGrpc() bool { - if o != nil && !isNil(o.Grpc) { - return true - } - - return false -} - -// SetGrpc gets a reference to the given GRPCClientSettings and assigns it to the Grpc field. -func (o *BaseClient) SetGrpc(v GRPCClientSettings) { - o.Grpc = &v -} - -func (o BaseClient) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BaseClient) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Http) { - toSerialize["http"] = o.Http - } - if !isNil(o.Grpc) { - toSerialize["grpc"] = o.Grpc - } - return toSerialize, nil -} - -type NullableBaseClient struct { - value *BaseClient - isSet bool -} - -func (v NullableBaseClient) Get() *BaseClient { - return v.value -} - -func (v *NullableBaseClient) Set(val *BaseClient) { - v.value = val - v.isSet = true -} - -func (v NullableBaseClient) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseClient) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseClient(val *BaseClient) *NullableBaseClient { - return &NullableBaseClient{value: val, isSet: true} -} - -func (v NullableBaseClient) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBaseClient) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_configuration_resource.go b/openapi/model_configuration_resource.go deleted file mode 100644 index ce2286c..0000000 --- a/openapi/model_configuration_resource.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ConfigurationResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ConfigurationResource{} - -// ConfigurationResource Represents a configuration structured into the Resources format. -type ConfigurationResource struct { - // Represents the type of this resource. It should always be set as 'Config'. - Type *string `json:"type,omitempty"` - Spec *ConfigurationResourceSpec `json:"spec,omitempty"` -} - -// NewConfigurationResource instantiates a new ConfigurationResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewConfigurationResource() *ConfigurationResource { - this := ConfigurationResource{} - return &this -} - -// NewConfigurationResourceWithDefaults instantiates a new ConfigurationResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewConfigurationResourceWithDefaults() *ConfigurationResource { - this := ConfigurationResource{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *ConfigurationResource) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigurationResource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *ConfigurationResource) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *ConfigurationResource) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *ConfigurationResource) GetSpec() ConfigurationResourceSpec { - if o == nil || isNil(o.Spec) { - var ret ConfigurationResourceSpec - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigurationResource) GetSpecOk() (*ConfigurationResourceSpec, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *ConfigurationResource) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given ConfigurationResourceSpec and assigns it to the Spec field. -func (o *ConfigurationResource) SetSpec(v ConfigurationResourceSpec) { - o.Spec = &v -} - -func (o ConfigurationResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ConfigurationResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableConfigurationResource struct { - value *ConfigurationResource - isSet bool -} - -func (v NullableConfigurationResource) Get() *ConfigurationResource { - return v.value -} - -func (v *NullableConfigurationResource) Set(val *ConfigurationResource) { - v.value = val - v.isSet = true -} - -func (v NullableConfigurationResource) IsSet() bool { - return v.isSet -} - -func (v *NullableConfigurationResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConfigurationResource(val *ConfigurationResource) *NullableConfigurationResource { - return &NullableConfigurationResource{value: val, isSet: true} -} - -func (v NullableConfigurationResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableConfigurationResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_configuration_resource_list.go b/openapi/model_configuration_resource_list.go deleted file mode 100644 index cdda5cc..0000000 --- a/openapi/model_configuration_resource_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ConfigurationResourceList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ConfigurationResourceList{} - -// ConfigurationResourceList struct for ConfigurationResourceList -type ConfigurationResourceList struct { - Count *int32 `json:"count,omitempty"` - Items []ConfigurationResource `json:"items,omitempty"` -} - -// NewConfigurationResourceList instantiates a new ConfigurationResourceList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewConfigurationResourceList() *ConfigurationResourceList { - this := ConfigurationResourceList{} - return &this -} - -// NewConfigurationResourceListWithDefaults instantiates a new ConfigurationResourceList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewConfigurationResourceListWithDefaults() *ConfigurationResourceList { - this := ConfigurationResourceList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *ConfigurationResourceList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigurationResourceList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *ConfigurationResourceList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ConfigurationResourceList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *ConfigurationResourceList) GetItems() []ConfigurationResource { - if o == nil || isNil(o.Items) { - var ret []ConfigurationResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigurationResourceList) GetItemsOk() ([]ConfigurationResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *ConfigurationResourceList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []ConfigurationResource and assigns it to the Items field. -func (o *ConfigurationResourceList) SetItems(v []ConfigurationResource) { - o.Items = v -} - -func (o ConfigurationResourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ConfigurationResourceList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableConfigurationResourceList struct { - value *ConfigurationResourceList - isSet bool -} - -func (v NullableConfigurationResourceList) Get() *ConfigurationResourceList { - return v.value -} - -func (v *NullableConfigurationResourceList) Set(val *ConfigurationResourceList) { - v.value = val - v.isSet = true -} - -func (v NullableConfigurationResourceList) IsSet() bool { - return v.isSet -} - -func (v *NullableConfigurationResourceList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConfigurationResourceList(val *ConfigurationResourceList) *NullableConfigurationResourceList { - return &NullableConfigurationResourceList{value: val, isSet: true} -} - -func (v NullableConfigurationResourceList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableConfigurationResourceList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_configuration_resource_spec.go b/openapi/model_configuration_resource_spec.go deleted file mode 100644 index c2decc2..0000000 --- a/openapi/model_configuration_resource_spec.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ConfigurationResourceSpec type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ConfigurationResourceSpec{} - -// ConfigurationResourceSpec Represents the set of configuration common options for Tracetest. -type ConfigurationResourceSpec struct { - // ID of the configuration resource. It should always be set as 'current'. - Id *string `json:"id,omitempty"` - // Name given for this configuration set. It should always be set as 'Config'. - Name *string `json:"name,omitempty"` - // Flag telling if a user allow Tracetest to send analytics about its usage. - AnalyticsEnabled bool `json:"analyticsEnabled"` -} - -// NewConfigurationResourceSpec instantiates a new ConfigurationResourceSpec object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewConfigurationResourceSpec(analyticsEnabled bool) *ConfigurationResourceSpec { - this := ConfigurationResourceSpec{} - this.AnalyticsEnabled = analyticsEnabled - return &this -} - -// NewConfigurationResourceSpecWithDefaults instantiates a new ConfigurationResourceSpec object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewConfigurationResourceSpecWithDefaults() *ConfigurationResourceSpec { - this := ConfigurationResourceSpec{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ConfigurationResourceSpec) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigurationResourceSpec) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ConfigurationResourceSpec) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ConfigurationResourceSpec) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ConfigurationResourceSpec) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigurationResourceSpec) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ConfigurationResourceSpec) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ConfigurationResourceSpec) SetName(v string) { - o.Name = &v -} - -// GetAnalyticsEnabled returns the AnalyticsEnabled field value -func (o *ConfigurationResourceSpec) GetAnalyticsEnabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.AnalyticsEnabled -} - -// GetAnalyticsEnabledOk returns a tuple with the AnalyticsEnabled field value -// and a boolean to check if the value has been set. -func (o *ConfigurationResourceSpec) GetAnalyticsEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AnalyticsEnabled, true -} - -// SetAnalyticsEnabled sets field value -func (o *ConfigurationResourceSpec) SetAnalyticsEnabled(v bool) { - o.AnalyticsEnabled = v -} - -func (o ConfigurationResourceSpec) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ConfigurationResourceSpec) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["analyticsEnabled"] = o.AnalyticsEnabled - return toSerialize, nil -} - -type NullableConfigurationResourceSpec struct { - value *ConfigurationResourceSpec - isSet bool -} - -func (v NullableConfigurationResourceSpec) Get() *ConfigurationResourceSpec { - return v.value -} - -func (v *NullableConfigurationResourceSpec) Set(val *ConfigurationResourceSpec) { - v.value = val - v.isSet = true -} - -func (v NullableConfigurationResourceSpec) IsSet() bool { - return v.isSet -} - -func (v *NullableConfigurationResourceSpec) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConfigurationResourceSpec(val *ConfigurationResourceSpec) *NullableConfigurationResourceSpec { - return &NullableConfigurationResourceSpec{value: val, isSet: true} -} - -func (v NullableConfigurationResourceSpec) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableConfigurationResourceSpec) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_connection_result.go b/openapi/model_connection_result.go deleted file mode 100644 index a1ba1c7..0000000 --- a/openapi/model_connection_result.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ConnectionResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ConnectionResult{} - -// ConnectionResult struct for ConnectionResult -type ConnectionResult struct { - PortCheck *ConnectionTestStep `json:"portCheck,omitempty"` - Connectivity *ConnectionTestStep `json:"connectivity,omitempty"` - Authentication *ConnectionTestStep `json:"authentication,omitempty"` - FetchTraces *ConnectionTestStep `json:"fetchTraces,omitempty"` -} - -// NewConnectionResult instantiates a new ConnectionResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewConnectionResult() *ConnectionResult { - this := ConnectionResult{} - return &this -} - -// NewConnectionResultWithDefaults instantiates a new ConnectionResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewConnectionResultWithDefaults() *ConnectionResult { - this := ConnectionResult{} - return &this -} - -// GetPortCheck returns the PortCheck field value if set, zero value otherwise. -func (o *ConnectionResult) GetPortCheck() ConnectionTestStep { - if o == nil || isNil(o.PortCheck) { - var ret ConnectionTestStep - return ret - } - return *o.PortCheck -} - -// GetPortCheckOk returns a tuple with the PortCheck field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionResult) GetPortCheckOk() (*ConnectionTestStep, bool) { - if o == nil || isNil(o.PortCheck) { - return nil, false - } - return o.PortCheck, true -} - -// HasPortCheck returns a boolean if a field has been set. -func (o *ConnectionResult) HasPortCheck() bool { - if o != nil && !isNil(o.PortCheck) { - return true - } - - return false -} - -// SetPortCheck gets a reference to the given ConnectionTestStep and assigns it to the PortCheck field. -func (o *ConnectionResult) SetPortCheck(v ConnectionTestStep) { - o.PortCheck = &v -} - -// GetConnectivity returns the Connectivity field value if set, zero value otherwise. -func (o *ConnectionResult) GetConnectivity() ConnectionTestStep { - if o == nil || isNil(o.Connectivity) { - var ret ConnectionTestStep - return ret - } - return *o.Connectivity -} - -// GetConnectivityOk returns a tuple with the Connectivity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionResult) GetConnectivityOk() (*ConnectionTestStep, bool) { - if o == nil || isNil(o.Connectivity) { - return nil, false - } - return o.Connectivity, true -} - -// HasConnectivity returns a boolean if a field has been set. -func (o *ConnectionResult) HasConnectivity() bool { - if o != nil && !isNil(o.Connectivity) { - return true - } - - return false -} - -// SetConnectivity gets a reference to the given ConnectionTestStep and assigns it to the Connectivity field. -func (o *ConnectionResult) SetConnectivity(v ConnectionTestStep) { - o.Connectivity = &v -} - -// GetAuthentication returns the Authentication field value if set, zero value otherwise. -func (o *ConnectionResult) GetAuthentication() ConnectionTestStep { - if o == nil || isNil(o.Authentication) { - var ret ConnectionTestStep - return ret - } - return *o.Authentication -} - -// GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionResult) GetAuthenticationOk() (*ConnectionTestStep, bool) { - if o == nil || isNil(o.Authentication) { - return nil, false - } - return o.Authentication, true -} - -// HasAuthentication returns a boolean if a field has been set. -func (o *ConnectionResult) HasAuthentication() bool { - if o != nil && !isNil(o.Authentication) { - return true - } - - return false -} - -// SetAuthentication gets a reference to the given ConnectionTestStep and assigns it to the Authentication field. -func (o *ConnectionResult) SetAuthentication(v ConnectionTestStep) { - o.Authentication = &v -} - -// GetFetchTraces returns the FetchTraces field value if set, zero value otherwise. -func (o *ConnectionResult) GetFetchTraces() ConnectionTestStep { - if o == nil || isNil(o.FetchTraces) { - var ret ConnectionTestStep - return ret - } - return *o.FetchTraces -} - -// GetFetchTracesOk returns a tuple with the FetchTraces field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionResult) GetFetchTracesOk() (*ConnectionTestStep, bool) { - if o == nil || isNil(o.FetchTraces) { - return nil, false - } - return o.FetchTraces, true -} - -// HasFetchTraces returns a boolean if a field has been set. -func (o *ConnectionResult) HasFetchTraces() bool { - if o != nil && !isNil(o.FetchTraces) { - return true - } - - return false -} - -// SetFetchTraces gets a reference to the given ConnectionTestStep and assigns it to the FetchTraces field. -func (o *ConnectionResult) SetFetchTraces(v ConnectionTestStep) { - o.FetchTraces = &v -} - -func (o ConnectionResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ConnectionResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PortCheck) { - toSerialize["portCheck"] = o.PortCheck - } - if !isNil(o.Connectivity) { - toSerialize["connectivity"] = o.Connectivity - } - if !isNil(o.Authentication) { - toSerialize["authentication"] = o.Authentication - } - if !isNil(o.FetchTraces) { - toSerialize["fetchTraces"] = o.FetchTraces - } - return toSerialize, nil -} - -type NullableConnectionResult struct { - value *ConnectionResult - isSet bool -} - -func (v NullableConnectionResult) Get() *ConnectionResult { - return v.value -} - -func (v *NullableConnectionResult) Set(val *ConnectionResult) { - v.value = val - v.isSet = true -} - -func (v NullableConnectionResult) IsSet() bool { - return v.isSet -} - -func (v *NullableConnectionResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConnectionResult(val *ConnectionResult) *NullableConnectionResult { - return &NullableConnectionResult{value: val, isSet: true} -} - -func (v NullableConnectionResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableConnectionResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_connection_test_step.go b/openapi/model_connection_test_step.go deleted file mode 100644 index 7d32754..0000000 --- a/openapi/model_connection_test_step.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ConnectionTestStep type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ConnectionTestStep{} - -// ConnectionTestStep struct for ConnectionTestStep -type ConnectionTestStep struct { - Passed *bool `json:"passed,omitempty"` - Status *string `json:"status,omitempty"` - Message *string `json:"message,omitempty"` - Error *string `json:"error,omitempty"` -} - -// NewConnectionTestStep instantiates a new ConnectionTestStep object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewConnectionTestStep() *ConnectionTestStep { - this := ConnectionTestStep{} - return &this -} - -// NewConnectionTestStepWithDefaults instantiates a new ConnectionTestStep object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewConnectionTestStepWithDefaults() *ConnectionTestStep { - this := ConnectionTestStep{} - return &this -} - -// GetPassed returns the Passed field value if set, zero value otherwise. -func (o *ConnectionTestStep) GetPassed() bool { - if o == nil || isNil(o.Passed) { - var ret bool - return ret - } - return *o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionTestStep) GetPassedOk() (*bool, bool) { - if o == nil || isNil(o.Passed) { - return nil, false - } - return o.Passed, true -} - -// HasPassed returns a boolean if a field has been set. -func (o *ConnectionTestStep) HasPassed() bool { - if o != nil && !isNil(o.Passed) { - return true - } - - return false -} - -// SetPassed gets a reference to the given bool and assigns it to the Passed field. -func (o *ConnectionTestStep) SetPassed(v bool) { - o.Passed = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *ConnectionTestStep) GetStatus() string { - if o == nil || isNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionTestStep) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *ConnectionTestStep) HasStatus() bool { - if o != nil && !isNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *ConnectionTestStep) SetStatus(v string) { - o.Status = &v -} - -// GetMessage returns the Message field value if set, zero value otherwise. -func (o *ConnectionTestStep) GetMessage() string { - if o == nil || isNil(o.Message) { - var ret string - return ret - } - return *o.Message -} - -// GetMessageOk returns a tuple with the Message field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionTestStep) GetMessageOk() (*string, bool) { - if o == nil || isNil(o.Message) { - return nil, false - } - return o.Message, true -} - -// HasMessage returns a boolean if a field has been set. -func (o *ConnectionTestStep) HasMessage() bool { - if o != nil && !isNil(o.Message) { - return true - } - - return false -} - -// SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *ConnectionTestStep) SetMessage(v string) { - o.Message = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *ConnectionTestStep) GetError() string { - if o == nil || isNil(o.Error) { - var ret string - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConnectionTestStep) GetErrorOk() (*string, bool) { - if o == nil || isNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *ConnectionTestStep) HasError() bool { - if o != nil && !isNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given string and assigns it to the Error field. -func (o *ConnectionTestStep) SetError(v string) { - o.Error = &v -} - -func (o ConnectionTestStep) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ConnectionTestStep) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Passed) { - toSerialize["passed"] = o.Passed - } - if !isNil(o.Status) { - toSerialize["status"] = o.Status - } - if !isNil(o.Message) { - toSerialize["message"] = o.Message - } - if !isNil(o.Error) { - toSerialize["error"] = o.Error - } - return toSerialize, nil -} - -type NullableConnectionTestStep struct { - value *ConnectionTestStep - isSet bool -} - -func (v NullableConnectionTestStep) Get() *ConnectionTestStep { - return v.value -} - -func (v *NullableConnectionTestStep) Set(val *ConnectionTestStep) { - v.value = val - v.isSet = true -} - -func (v NullableConnectionTestStep) IsSet() bool { - return v.isSet -} - -func (v *NullableConnectionTestStep) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConnectionTestStep(val *ConnectionTestStep) *NullableConnectionTestStep { - return &NullableConnectionTestStep{value: val, isSet: true} -} - -func (v NullableConnectionTestStep) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableConnectionTestStep) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_data_store.go b/openapi/model_data_store.go deleted file mode 100644 index 483b32c..0000000 --- a/openapi/model_data_store.go +++ /dev/null @@ -1,501 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the DataStore type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DataStore{} - -// DataStore struct for DataStore -type DataStore struct { - Id *string `json:"id,omitempty"` - Name string `json:"name"` - Type SupportedDataStores `json:"type"` - Default *bool `json:"default,omitempty"` - Jaeger *GRPCClientSettings `json:"jaeger,omitempty"` - Tempo *BaseClient `json:"tempo,omitempty"` - Opensearch *ElasticSearch `json:"opensearch,omitempty"` - Elasticapm *ElasticSearch `json:"elasticapm,omitempty"` - Signalfx *SignalFX `json:"signalfx,omitempty"` - Awsxray *AwsXRay `json:"awsxray,omitempty"` - Azureappinsights *AzureAppInsights `json:"azureappinsights,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` -} - -// NewDataStore instantiates a new DataStore object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDataStore(name string, type_ SupportedDataStores) *DataStore { - this := DataStore{} - this.Name = name - this.Type = type_ - return &this -} - -// NewDataStoreWithDefaults instantiates a new DataStore object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDataStoreWithDefaults() *DataStore { - this := DataStore{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DataStore) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DataStore) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DataStore) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value -func (o *DataStore) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *DataStore) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *DataStore) SetName(v string) { - o.Name = v -} - -// GetType returns the Type field value -func (o *DataStore) GetType() SupportedDataStores { - if o == nil { - var ret SupportedDataStores - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *DataStore) GetTypeOk() (*SupportedDataStores, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *DataStore) SetType(v SupportedDataStores) { - o.Type = v -} - -// GetDefault returns the Default field value if set, zero value otherwise. -func (o *DataStore) GetDefault() bool { - if o == nil || isNil(o.Default) { - var ret bool - return ret - } - return *o.Default -} - -// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetDefaultOk() (*bool, bool) { - if o == nil || isNil(o.Default) { - return nil, false - } - return o.Default, true -} - -// HasDefault returns a boolean if a field has been set. -func (o *DataStore) HasDefault() bool { - if o != nil && !isNil(o.Default) { - return true - } - - return false -} - -// SetDefault gets a reference to the given bool and assigns it to the Default field. -func (o *DataStore) SetDefault(v bool) { - o.Default = &v -} - -// GetJaeger returns the Jaeger field value if set, zero value otherwise. -func (o *DataStore) GetJaeger() GRPCClientSettings { - if o == nil || isNil(o.Jaeger) { - var ret GRPCClientSettings - return ret - } - return *o.Jaeger -} - -// GetJaegerOk returns a tuple with the Jaeger field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetJaegerOk() (*GRPCClientSettings, bool) { - if o == nil || isNil(o.Jaeger) { - return nil, false - } - return o.Jaeger, true -} - -// HasJaeger returns a boolean if a field has been set. -func (o *DataStore) HasJaeger() bool { - if o != nil && !isNil(o.Jaeger) { - return true - } - - return false -} - -// SetJaeger gets a reference to the given GRPCClientSettings and assigns it to the Jaeger field. -func (o *DataStore) SetJaeger(v GRPCClientSettings) { - o.Jaeger = &v -} - -// GetTempo returns the Tempo field value if set, zero value otherwise. -func (o *DataStore) GetTempo() BaseClient { - if o == nil || isNil(o.Tempo) { - var ret BaseClient - return ret - } - return *o.Tempo -} - -// GetTempoOk returns a tuple with the Tempo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetTempoOk() (*BaseClient, bool) { - if o == nil || isNil(o.Tempo) { - return nil, false - } - return o.Tempo, true -} - -// HasTempo returns a boolean if a field has been set. -func (o *DataStore) HasTempo() bool { - if o != nil && !isNil(o.Tempo) { - return true - } - - return false -} - -// SetTempo gets a reference to the given BaseClient and assigns it to the Tempo field. -func (o *DataStore) SetTempo(v BaseClient) { - o.Tempo = &v -} - -// GetOpensearch returns the Opensearch field value if set, zero value otherwise. -func (o *DataStore) GetOpensearch() ElasticSearch { - if o == nil || isNil(o.Opensearch) { - var ret ElasticSearch - return ret - } - return *o.Opensearch -} - -// GetOpensearchOk returns a tuple with the Opensearch field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetOpensearchOk() (*ElasticSearch, bool) { - if o == nil || isNil(o.Opensearch) { - return nil, false - } - return o.Opensearch, true -} - -// HasOpensearch returns a boolean if a field has been set. -func (o *DataStore) HasOpensearch() bool { - if o != nil && !isNil(o.Opensearch) { - return true - } - - return false -} - -// SetOpensearch gets a reference to the given ElasticSearch and assigns it to the Opensearch field. -func (o *DataStore) SetOpensearch(v ElasticSearch) { - o.Opensearch = &v -} - -// GetElasticapm returns the Elasticapm field value if set, zero value otherwise. -func (o *DataStore) GetElasticapm() ElasticSearch { - if o == nil || isNil(o.Elasticapm) { - var ret ElasticSearch - return ret - } - return *o.Elasticapm -} - -// GetElasticapmOk returns a tuple with the Elasticapm field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetElasticapmOk() (*ElasticSearch, bool) { - if o == nil || isNil(o.Elasticapm) { - return nil, false - } - return o.Elasticapm, true -} - -// HasElasticapm returns a boolean if a field has been set. -func (o *DataStore) HasElasticapm() bool { - if o != nil && !isNil(o.Elasticapm) { - return true - } - - return false -} - -// SetElasticapm gets a reference to the given ElasticSearch and assigns it to the Elasticapm field. -func (o *DataStore) SetElasticapm(v ElasticSearch) { - o.Elasticapm = &v -} - -// GetSignalfx returns the Signalfx field value if set, zero value otherwise. -func (o *DataStore) GetSignalfx() SignalFX { - if o == nil || isNil(o.Signalfx) { - var ret SignalFX - return ret - } - return *o.Signalfx -} - -// GetSignalfxOk returns a tuple with the Signalfx field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetSignalfxOk() (*SignalFX, bool) { - if o == nil || isNil(o.Signalfx) { - return nil, false - } - return o.Signalfx, true -} - -// HasSignalfx returns a boolean if a field has been set. -func (o *DataStore) HasSignalfx() bool { - if o != nil && !isNil(o.Signalfx) { - return true - } - - return false -} - -// SetSignalfx gets a reference to the given SignalFX and assigns it to the Signalfx field. -func (o *DataStore) SetSignalfx(v SignalFX) { - o.Signalfx = &v -} - -// GetAwsxray returns the Awsxray field value if set, zero value otherwise. -func (o *DataStore) GetAwsxray() AwsXRay { - if o == nil || isNil(o.Awsxray) { - var ret AwsXRay - return ret - } - return *o.Awsxray -} - -// GetAwsxrayOk returns a tuple with the Awsxray field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetAwsxrayOk() (*AwsXRay, bool) { - if o == nil || isNil(o.Awsxray) { - return nil, false - } - return o.Awsxray, true -} - -// HasAwsxray returns a boolean if a field has been set. -func (o *DataStore) HasAwsxray() bool { - if o != nil && !isNil(o.Awsxray) { - return true - } - - return false -} - -// SetAwsxray gets a reference to the given AwsXRay and assigns it to the Awsxray field. -func (o *DataStore) SetAwsxray(v AwsXRay) { - o.Awsxray = &v -} - -// GetAzureappinsights returns the Azureappinsights field value if set, zero value otherwise. -func (o *DataStore) GetAzureappinsights() AzureAppInsights { - if o == nil || isNil(o.Azureappinsights) { - var ret AzureAppInsights - return ret - } - return *o.Azureappinsights -} - -// GetAzureappinsightsOk returns a tuple with the Azureappinsights field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetAzureappinsightsOk() (*AzureAppInsights, bool) { - if o == nil || isNil(o.Azureappinsights) { - return nil, false - } - return o.Azureappinsights, true -} - -// HasAzureappinsights returns a boolean if a field has been set. -func (o *DataStore) HasAzureappinsights() bool { - if o != nil && !isNil(o.Azureappinsights) { - return true - } - - return false -} - -// SetAzureappinsights gets a reference to the given AzureAppInsights and assigns it to the Azureappinsights field. -func (o *DataStore) SetAzureappinsights(v AzureAppInsights) { - o.Azureappinsights = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DataStore) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStore) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DataStore) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *DataStore) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -func (o DataStore) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DataStore) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - // skip: id is readOnly - toSerialize["name"] = o.Name - toSerialize["type"] = o.Type - if !isNil(o.Default) { - toSerialize["default"] = o.Default - } - if !isNil(o.Jaeger) { - toSerialize["jaeger"] = o.Jaeger - } - if !isNil(o.Tempo) { - toSerialize["tempo"] = o.Tempo - } - if !isNil(o.Opensearch) { - toSerialize["opensearch"] = o.Opensearch - } - if !isNil(o.Elasticapm) { - toSerialize["elasticapm"] = o.Elasticapm - } - if !isNil(o.Signalfx) { - toSerialize["signalfx"] = o.Signalfx - } - if !isNil(o.Awsxray) { - toSerialize["awsxray"] = o.Awsxray - } - if !isNil(o.Azureappinsights) { - toSerialize["azureappinsights"] = o.Azureappinsights - } - if !isNil(o.CreatedAt) { - toSerialize["createdAt"] = o.CreatedAt - } - return toSerialize, nil -} - -type NullableDataStore struct { - value *DataStore - isSet bool -} - -func (v NullableDataStore) Get() *DataStore { - return v.value -} - -func (v *NullableDataStore) Set(val *DataStore) { - v.value = val - v.isSet = true -} - -func (v NullableDataStore) IsSet() bool { - return v.isSet -} - -func (v *NullableDataStore) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDataStore(val *DataStore) *NullableDataStore { - return &NullableDataStore{value: val, isSet: true} -} - -func (v NullableDataStore) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDataStore) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_data_store_list.go b/openapi/model_data_store_list.go deleted file mode 100644 index 141ccc6..0000000 --- a/openapi/model_data_store_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the DataStoreList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DataStoreList{} - -// DataStoreList struct for DataStoreList -type DataStoreList struct { - Count *int32 `json:"count,omitempty"` - Items []DataStoreResource `json:"items,omitempty"` -} - -// NewDataStoreList instantiates a new DataStoreList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDataStoreList() *DataStoreList { - this := DataStoreList{} - return &this -} - -// NewDataStoreListWithDefaults instantiates a new DataStoreList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDataStoreListWithDefaults() *DataStoreList { - this := DataStoreList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *DataStoreList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStoreList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *DataStoreList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *DataStoreList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *DataStoreList) GetItems() []DataStoreResource { - if o == nil || isNil(o.Items) { - var ret []DataStoreResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStoreList) GetItemsOk() ([]DataStoreResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *DataStoreList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []DataStoreResource and assigns it to the Items field. -func (o *DataStoreList) SetItems(v []DataStoreResource) { - o.Items = v -} - -func (o DataStoreList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DataStoreList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableDataStoreList struct { - value *DataStoreList - isSet bool -} - -func (v NullableDataStoreList) Get() *DataStoreList { - return v.value -} - -func (v *NullableDataStoreList) Set(val *DataStoreList) { - v.value = val - v.isSet = true -} - -func (v NullableDataStoreList) IsSet() bool { - return v.isSet -} - -func (v *NullableDataStoreList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDataStoreList(val *DataStoreList) *NullableDataStoreList { - return &NullableDataStoreList{value: val, isSet: true} -} - -func (v NullableDataStoreList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDataStoreList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_data_store_resource.go b/openapi/model_data_store_resource.go deleted file mode 100644 index 4e217d5..0000000 --- a/openapi/model_data_store_resource.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the DataStoreResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DataStoreResource{} - -// DataStoreResource Represents a data store structured into the Resources format. -type DataStoreResource struct { - // Represents the type of this resource. It should always be set as 'DataStore'. - Type *string `json:"type,omitempty"` - Spec *DataStore `json:"spec,omitempty"` -} - -// NewDataStoreResource instantiates a new DataStoreResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDataStoreResource() *DataStoreResource { - this := DataStoreResource{} - return &this -} - -// NewDataStoreResourceWithDefaults instantiates a new DataStoreResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDataStoreResourceWithDefaults() *DataStoreResource { - this := DataStoreResource{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *DataStoreResource) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStoreResource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *DataStoreResource) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *DataStoreResource) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *DataStoreResource) GetSpec() DataStore { - if o == nil || isNil(o.Spec) { - var ret DataStore - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataStoreResource) GetSpecOk() (*DataStore, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *DataStoreResource) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given DataStore and assigns it to the Spec field. -func (o *DataStoreResource) SetSpec(v DataStore) { - o.Spec = &v -} - -func (o DataStoreResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DataStoreResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableDataStoreResource struct { - value *DataStoreResource - isSet bool -} - -func (v NullableDataStoreResource) Get() *DataStoreResource { - return v.value -} - -func (v *NullableDataStoreResource) Set(val *DataStoreResource) { - v.value = val - v.isSet = true -} - -func (v NullableDataStoreResource) IsSet() bool { - return v.isSet -} - -func (v *NullableDataStoreResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDataStoreResource(val *DataStoreResource) *NullableDataStoreResource { - return &NullableDataStoreResource{value: val, isSet: true} -} - -func (v NullableDataStoreResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDataStoreResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_demo.go b/openapi/model_demo.go deleted file mode 100644 index 4e6e7c9..0000000 --- a/openapi/model_demo.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Demo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Demo{} - -// Demo Represents a demonstration API structured into the Resources format. -type Demo struct { - // Represents the type of this resource. It should always be set as 'Demo'. - Type *string `json:"type,omitempty"` - Spec *DemoSpec `json:"spec,omitempty"` -} - -// NewDemo instantiates a new Demo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDemo() *Demo { - this := Demo{} - return &this -} - -// NewDemoWithDefaults instantiates a new Demo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDemoWithDefaults() *Demo { - this := Demo{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *Demo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Demo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *Demo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *Demo) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *Demo) GetSpec() DemoSpec { - if o == nil || isNil(o.Spec) { - var ret DemoSpec - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Demo) GetSpecOk() (*DemoSpec, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *Demo) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given DemoSpec and assigns it to the Spec field. -func (o *Demo) SetSpec(v DemoSpec) { - o.Spec = &v -} - -func (o Demo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Demo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableDemo struct { - value *Demo - isSet bool -} - -func (v NullableDemo) Get() *Demo { - return v.value -} - -func (v *NullableDemo) Set(val *Demo) { - v.value = val - v.isSet = true -} - -func (v NullableDemo) IsSet() bool { - return v.isSet -} - -func (v *NullableDemo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDemo(val *Demo) *NullableDemo { - return &NullableDemo{value: val, isSet: true} -} - -func (v NullableDemo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDemo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_demo_list.go b/openapi/model_demo_list.go deleted file mode 100644 index 8599c14..0000000 --- a/openapi/model_demo_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the DemoList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DemoList{} - -// DemoList struct for DemoList -type DemoList struct { - Count *int32 `json:"count,omitempty"` - Items []Demo `json:"items,omitempty"` -} - -// NewDemoList instantiates a new DemoList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDemoList() *DemoList { - this := DemoList{} - return &this -} - -// NewDemoListWithDefaults instantiates a new DemoList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDemoListWithDefaults() *DemoList { - this := DemoList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *DemoList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *DemoList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *DemoList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *DemoList) GetItems() []Demo { - if o == nil || isNil(o.Items) { - var ret []Demo - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoList) GetItemsOk() ([]Demo, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *DemoList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []Demo and assigns it to the Items field. -func (o *DemoList) SetItems(v []Demo) { - o.Items = v -} - -func (o DemoList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DemoList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableDemoList struct { - value *DemoList - isSet bool -} - -func (v NullableDemoList) Get() *DemoList { - return v.value -} - -func (v *NullableDemoList) Set(val *DemoList) { - v.value = val - v.isSet = true -} - -func (v NullableDemoList) IsSet() bool { - return v.isSet -} - -func (v *NullableDemoList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDemoList(val *DemoList) *NullableDemoList { - return &NullableDemoList{value: val, isSet: true} -} - -func (v NullableDemoList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDemoList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_demo_open_telemetry_store.go b/openapi/model_demo_open_telemetry_store.go deleted file mode 100644 index 4eba30c..0000000 --- a/openapi/model_demo_open_telemetry_store.go +++ /dev/null @@ -1,236 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the DemoOpenTelemetryStore type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DemoOpenTelemetryStore{} - -// DemoOpenTelemetryStore Represents the settings of the Open Telemetry Store demonstration. -type DemoOpenTelemetryStore struct { - // Address of the root URL for the Frontend microservice on Open Telemetry Store. - FrontendEndpoint *string `json:"frontendEndpoint,omitempty"` - // Address of the root URL for the Product Catalog microservice on Open Telemetry Store. - ProductCatalogEndpoint *string `json:"productCatalogEndpoint,omitempty"` - // Address of the root URL for the Cart microservice on Open Telemetry Store. - CartEndpoint *string `json:"cartEndpoint,omitempty"` - // Address of the root URL for the Checkout microservice on Open Telemetry Store. - CheckoutEndpoint *string `json:"checkoutEndpoint,omitempty"` -} - -// NewDemoOpenTelemetryStore instantiates a new DemoOpenTelemetryStore object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDemoOpenTelemetryStore() *DemoOpenTelemetryStore { - this := DemoOpenTelemetryStore{} - return &this -} - -// NewDemoOpenTelemetryStoreWithDefaults instantiates a new DemoOpenTelemetryStore object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDemoOpenTelemetryStoreWithDefaults() *DemoOpenTelemetryStore { - this := DemoOpenTelemetryStore{} - return &this -} - -// GetFrontendEndpoint returns the FrontendEndpoint field value if set, zero value otherwise. -func (o *DemoOpenTelemetryStore) GetFrontendEndpoint() string { - if o == nil || isNil(o.FrontendEndpoint) { - var ret string - return ret - } - return *o.FrontendEndpoint -} - -// GetFrontendEndpointOk returns a tuple with the FrontendEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoOpenTelemetryStore) GetFrontendEndpointOk() (*string, bool) { - if o == nil || isNil(o.FrontendEndpoint) { - return nil, false - } - return o.FrontendEndpoint, true -} - -// HasFrontendEndpoint returns a boolean if a field has been set. -func (o *DemoOpenTelemetryStore) HasFrontendEndpoint() bool { - if o != nil && !isNil(o.FrontendEndpoint) { - return true - } - - return false -} - -// SetFrontendEndpoint gets a reference to the given string and assigns it to the FrontendEndpoint field. -func (o *DemoOpenTelemetryStore) SetFrontendEndpoint(v string) { - o.FrontendEndpoint = &v -} - -// GetProductCatalogEndpoint returns the ProductCatalogEndpoint field value if set, zero value otherwise. -func (o *DemoOpenTelemetryStore) GetProductCatalogEndpoint() string { - if o == nil || isNil(o.ProductCatalogEndpoint) { - var ret string - return ret - } - return *o.ProductCatalogEndpoint -} - -// GetProductCatalogEndpointOk returns a tuple with the ProductCatalogEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoOpenTelemetryStore) GetProductCatalogEndpointOk() (*string, bool) { - if o == nil || isNil(o.ProductCatalogEndpoint) { - return nil, false - } - return o.ProductCatalogEndpoint, true -} - -// HasProductCatalogEndpoint returns a boolean if a field has been set. -func (o *DemoOpenTelemetryStore) HasProductCatalogEndpoint() bool { - if o != nil && !isNil(o.ProductCatalogEndpoint) { - return true - } - - return false -} - -// SetProductCatalogEndpoint gets a reference to the given string and assigns it to the ProductCatalogEndpoint field. -func (o *DemoOpenTelemetryStore) SetProductCatalogEndpoint(v string) { - o.ProductCatalogEndpoint = &v -} - -// GetCartEndpoint returns the CartEndpoint field value if set, zero value otherwise. -func (o *DemoOpenTelemetryStore) GetCartEndpoint() string { - if o == nil || isNil(o.CartEndpoint) { - var ret string - return ret - } - return *o.CartEndpoint -} - -// GetCartEndpointOk returns a tuple with the CartEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoOpenTelemetryStore) GetCartEndpointOk() (*string, bool) { - if o == nil || isNil(o.CartEndpoint) { - return nil, false - } - return o.CartEndpoint, true -} - -// HasCartEndpoint returns a boolean if a field has been set. -func (o *DemoOpenTelemetryStore) HasCartEndpoint() bool { - if o != nil && !isNil(o.CartEndpoint) { - return true - } - - return false -} - -// SetCartEndpoint gets a reference to the given string and assigns it to the CartEndpoint field. -func (o *DemoOpenTelemetryStore) SetCartEndpoint(v string) { - o.CartEndpoint = &v -} - -// GetCheckoutEndpoint returns the CheckoutEndpoint field value if set, zero value otherwise. -func (o *DemoOpenTelemetryStore) GetCheckoutEndpoint() string { - if o == nil || isNil(o.CheckoutEndpoint) { - var ret string - return ret - } - return *o.CheckoutEndpoint -} - -// GetCheckoutEndpointOk returns a tuple with the CheckoutEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoOpenTelemetryStore) GetCheckoutEndpointOk() (*string, bool) { - if o == nil || isNil(o.CheckoutEndpoint) { - return nil, false - } - return o.CheckoutEndpoint, true -} - -// HasCheckoutEndpoint returns a boolean if a field has been set. -func (o *DemoOpenTelemetryStore) HasCheckoutEndpoint() bool { - if o != nil && !isNil(o.CheckoutEndpoint) { - return true - } - - return false -} - -// SetCheckoutEndpoint gets a reference to the given string and assigns it to the CheckoutEndpoint field. -func (o *DemoOpenTelemetryStore) SetCheckoutEndpoint(v string) { - o.CheckoutEndpoint = &v -} - -func (o DemoOpenTelemetryStore) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DemoOpenTelemetryStore) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.FrontendEndpoint) { - toSerialize["frontendEndpoint"] = o.FrontendEndpoint - } - if !isNil(o.ProductCatalogEndpoint) { - toSerialize["productCatalogEndpoint"] = o.ProductCatalogEndpoint - } - if !isNil(o.CartEndpoint) { - toSerialize["cartEndpoint"] = o.CartEndpoint - } - if !isNil(o.CheckoutEndpoint) { - toSerialize["checkoutEndpoint"] = o.CheckoutEndpoint - } - return toSerialize, nil -} - -type NullableDemoOpenTelemetryStore struct { - value *DemoOpenTelemetryStore - isSet bool -} - -func (v NullableDemoOpenTelemetryStore) Get() *DemoOpenTelemetryStore { - return v.value -} - -func (v *NullableDemoOpenTelemetryStore) Set(val *DemoOpenTelemetryStore) { - v.value = val - v.isSet = true -} - -func (v NullableDemoOpenTelemetryStore) IsSet() bool { - return v.isSet -} - -func (v *NullableDemoOpenTelemetryStore) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDemoOpenTelemetryStore(val *DemoOpenTelemetryStore) *NullableDemoOpenTelemetryStore { - return &NullableDemoOpenTelemetryStore{value: val, isSet: true} -} - -func (v NullableDemoOpenTelemetryStore) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDemoOpenTelemetryStore) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_demo_pokeshop.go b/openapi/model_demo_pokeshop.go deleted file mode 100644 index db6bb3f..0000000 --- a/openapi/model_demo_pokeshop.go +++ /dev/null @@ -1,199 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the DemoPokeshop type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DemoPokeshop{} - -// DemoPokeshop Represents the settings of the Pokeshop API demonstration. -type DemoPokeshop struct { - // HTTP endpoint for Pokeshop API - HttpEndpoint *string `json:"httpEndpoint,omitempty"` - // gRPC endpoint for Pokeshop API - GrpcEndpoint *string `json:"grpcEndpoint,omitempty"` - // kafka broker for Pokeshop API - KafkaBroker *string `json:"kafkaBroker,omitempty"` -} - -// NewDemoPokeshop instantiates a new DemoPokeshop object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDemoPokeshop() *DemoPokeshop { - this := DemoPokeshop{} - return &this -} - -// NewDemoPokeshopWithDefaults instantiates a new DemoPokeshop object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDemoPokeshopWithDefaults() *DemoPokeshop { - this := DemoPokeshop{} - return &this -} - -// GetHttpEndpoint returns the HttpEndpoint field value if set, zero value otherwise. -func (o *DemoPokeshop) GetHttpEndpoint() string { - if o == nil || isNil(o.HttpEndpoint) { - var ret string - return ret - } - return *o.HttpEndpoint -} - -// GetHttpEndpointOk returns a tuple with the HttpEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoPokeshop) GetHttpEndpointOk() (*string, bool) { - if o == nil || isNil(o.HttpEndpoint) { - return nil, false - } - return o.HttpEndpoint, true -} - -// HasHttpEndpoint returns a boolean if a field has been set. -func (o *DemoPokeshop) HasHttpEndpoint() bool { - if o != nil && !isNil(o.HttpEndpoint) { - return true - } - - return false -} - -// SetHttpEndpoint gets a reference to the given string and assigns it to the HttpEndpoint field. -func (o *DemoPokeshop) SetHttpEndpoint(v string) { - o.HttpEndpoint = &v -} - -// GetGrpcEndpoint returns the GrpcEndpoint field value if set, zero value otherwise. -func (o *DemoPokeshop) GetGrpcEndpoint() string { - if o == nil || isNil(o.GrpcEndpoint) { - var ret string - return ret - } - return *o.GrpcEndpoint -} - -// GetGrpcEndpointOk returns a tuple with the GrpcEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoPokeshop) GetGrpcEndpointOk() (*string, bool) { - if o == nil || isNil(o.GrpcEndpoint) { - return nil, false - } - return o.GrpcEndpoint, true -} - -// HasGrpcEndpoint returns a boolean if a field has been set. -func (o *DemoPokeshop) HasGrpcEndpoint() bool { - if o != nil && !isNil(o.GrpcEndpoint) { - return true - } - - return false -} - -// SetGrpcEndpoint gets a reference to the given string and assigns it to the GrpcEndpoint field. -func (o *DemoPokeshop) SetGrpcEndpoint(v string) { - o.GrpcEndpoint = &v -} - -// GetKafkaBroker returns the KafkaBroker field value if set, zero value otherwise. -func (o *DemoPokeshop) GetKafkaBroker() string { - if o == nil || isNil(o.KafkaBroker) { - var ret string - return ret - } - return *o.KafkaBroker -} - -// GetKafkaBrokerOk returns a tuple with the KafkaBroker field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoPokeshop) GetKafkaBrokerOk() (*string, bool) { - if o == nil || isNil(o.KafkaBroker) { - return nil, false - } - return o.KafkaBroker, true -} - -// HasKafkaBroker returns a boolean if a field has been set. -func (o *DemoPokeshop) HasKafkaBroker() bool { - if o != nil && !isNil(o.KafkaBroker) { - return true - } - - return false -} - -// SetKafkaBroker gets a reference to the given string and assigns it to the KafkaBroker field. -func (o *DemoPokeshop) SetKafkaBroker(v string) { - o.KafkaBroker = &v -} - -func (o DemoPokeshop) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DemoPokeshop) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.HttpEndpoint) { - toSerialize["httpEndpoint"] = o.HttpEndpoint - } - if !isNil(o.GrpcEndpoint) { - toSerialize["grpcEndpoint"] = o.GrpcEndpoint - } - if !isNil(o.KafkaBroker) { - toSerialize["kafkaBroker"] = o.KafkaBroker - } - return toSerialize, nil -} - -type NullableDemoPokeshop struct { - value *DemoPokeshop - isSet bool -} - -func (v NullableDemoPokeshop) Get() *DemoPokeshop { - return v.value -} - -func (v *NullableDemoPokeshop) Set(val *DemoPokeshop) { - v.value = val - v.isSet = true -} - -func (v NullableDemoPokeshop) IsSet() bool { - return v.isSet -} - -func (v *NullableDemoPokeshop) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDemoPokeshop(val *DemoPokeshop) *NullableDemoPokeshop { - return &NullableDemoPokeshop{value: val, isSet: true} -} - -func (v NullableDemoPokeshop) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDemoPokeshop) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_demo_spec.go b/openapi/model_demo_spec.go deleted file mode 100644 index 9e404b3..0000000 --- a/openapi/model_demo_spec.go +++ /dev/null @@ -1,298 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the DemoSpec type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DemoSpec{} - -// DemoSpec Represents the attributes of a Demonstration API. -type DemoSpec struct { - Id *string `json:"id,omitempty"` - // String defining that this demo is a Open Telemetry Store demo. - Type *string `json:"type,omitempty"` - // Name of the demo - Name *string `json:"name,omitempty"` - // Flag telling if this API is enabled on Tracetest. - Enabled bool `json:"enabled"` - Pokeshop *DemoPokeshop `json:"pokeshop,omitempty"` - OpentelemetryStore *DemoOpenTelemetryStore `json:"opentelemetryStore,omitempty"` -} - -// NewDemoSpec instantiates a new DemoSpec object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDemoSpec(enabled bool) *DemoSpec { - this := DemoSpec{} - this.Enabled = enabled - return &this -} - -// NewDemoSpecWithDefaults instantiates a new DemoSpec object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDemoSpecWithDefaults() *DemoSpec { - this := DemoSpec{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DemoSpec) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoSpec) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DemoSpec) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DemoSpec) SetId(v string) { - o.Id = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *DemoSpec) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoSpec) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *DemoSpec) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *DemoSpec) SetType(v string) { - o.Type = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DemoSpec) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoSpec) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DemoSpec) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DemoSpec) SetName(v string) { - o.Name = &v -} - -// GetEnabled returns the Enabled field value -func (o *DemoSpec) GetEnabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -func (o *DemoSpec) GetEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Enabled, true -} - -// SetEnabled sets field value -func (o *DemoSpec) SetEnabled(v bool) { - o.Enabled = v -} - -// GetPokeshop returns the Pokeshop field value if set, zero value otherwise. -func (o *DemoSpec) GetPokeshop() DemoPokeshop { - if o == nil || isNil(o.Pokeshop) { - var ret DemoPokeshop - return ret - } - return *o.Pokeshop -} - -// GetPokeshopOk returns a tuple with the Pokeshop field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoSpec) GetPokeshopOk() (*DemoPokeshop, bool) { - if o == nil || isNil(o.Pokeshop) { - return nil, false - } - return o.Pokeshop, true -} - -// HasPokeshop returns a boolean if a field has been set. -func (o *DemoSpec) HasPokeshop() bool { - if o != nil && !isNil(o.Pokeshop) { - return true - } - - return false -} - -// SetPokeshop gets a reference to the given DemoPokeshop and assigns it to the Pokeshop field. -func (o *DemoSpec) SetPokeshop(v DemoPokeshop) { - o.Pokeshop = &v -} - -// GetOpentelemetryStore returns the OpentelemetryStore field value if set, zero value otherwise. -func (o *DemoSpec) GetOpentelemetryStore() DemoOpenTelemetryStore { - if o == nil || isNil(o.OpentelemetryStore) { - var ret DemoOpenTelemetryStore - return ret - } - return *o.OpentelemetryStore -} - -// GetOpentelemetryStoreOk returns a tuple with the OpentelemetryStore field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DemoSpec) GetOpentelemetryStoreOk() (*DemoOpenTelemetryStore, bool) { - if o == nil || isNil(o.OpentelemetryStore) { - return nil, false - } - return o.OpentelemetryStore, true -} - -// HasOpentelemetryStore returns a boolean if a field has been set. -func (o *DemoSpec) HasOpentelemetryStore() bool { - if o != nil && !isNil(o.OpentelemetryStore) { - return true - } - - return false -} - -// SetOpentelemetryStore gets a reference to the given DemoOpenTelemetryStore and assigns it to the OpentelemetryStore field. -func (o *DemoSpec) SetOpentelemetryStore(v DemoOpenTelemetryStore) { - o.OpentelemetryStore = &v -} - -func (o DemoSpec) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DemoSpec) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["enabled"] = o.Enabled - if !isNil(o.Pokeshop) { - toSerialize["pokeshop"] = o.Pokeshop - } - if !isNil(o.OpentelemetryStore) { - toSerialize["opentelemetryStore"] = o.OpentelemetryStore - } - return toSerialize, nil -} - -type NullableDemoSpec struct { - value *DemoSpec - isSet bool -} - -func (v NullableDemoSpec) Get() *DemoSpec { - return v.value -} - -func (v *NullableDemoSpec) Set(val *DemoSpec) { - v.value = val - v.isSet = true -} - -func (v NullableDemoSpec) IsSet() bool { - return v.isSet -} - -func (v *NullableDemoSpec) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDemoSpec(val *DemoSpec) *NullableDemoSpec { - return &NullableDemoSpec{value: val, isSet: true} -} - -func (v NullableDemoSpec) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDemoSpec) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_elastic_search.go b/openapi/model_elastic_search.go deleted file mode 100644 index fe384fe..0000000 --- a/openapi/model_elastic_search.go +++ /dev/null @@ -1,304 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ElasticSearch type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ElasticSearch{} - -// ElasticSearch struct for ElasticSearch -type ElasticSearch struct { - Addresses []string `json:"addresses,omitempty"` - Username *string `json:"username,omitempty"` - Password *string `json:"password,omitempty"` - Index *string `json:"index,omitempty"` - Certificate *string `json:"certificate,omitempty"` - InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` -} - -// NewElasticSearch instantiates a new ElasticSearch object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewElasticSearch() *ElasticSearch { - this := ElasticSearch{} - return &this -} - -// NewElasticSearchWithDefaults instantiates a new ElasticSearch object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewElasticSearchWithDefaults() *ElasticSearch { - this := ElasticSearch{} - return &this -} - -// GetAddresses returns the Addresses field value if set, zero value otherwise. -func (o *ElasticSearch) GetAddresses() []string { - if o == nil || isNil(o.Addresses) { - var ret []string - return ret - } - return o.Addresses -} - -// GetAddressesOk returns a tuple with the Addresses field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ElasticSearch) GetAddressesOk() ([]string, bool) { - if o == nil || isNil(o.Addresses) { - return nil, false - } - return o.Addresses, true -} - -// HasAddresses returns a boolean if a field has been set. -func (o *ElasticSearch) HasAddresses() bool { - if o != nil && !isNil(o.Addresses) { - return true - } - - return false -} - -// SetAddresses gets a reference to the given []string and assigns it to the Addresses field. -func (o *ElasticSearch) SetAddresses(v []string) { - o.Addresses = v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *ElasticSearch) GetUsername() string { - if o == nil || isNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ElasticSearch) GetUsernameOk() (*string, bool) { - if o == nil || isNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *ElasticSearch) HasUsername() bool { - if o != nil && !isNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *ElasticSearch) SetUsername(v string) { - o.Username = &v -} - -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *ElasticSearch) GetPassword() string { - if o == nil || isNil(o.Password) { - var ret string - return ret - } - return *o.Password -} - -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ElasticSearch) GetPasswordOk() (*string, bool) { - if o == nil || isNil(o.Password) { - return nil, false - } - return o.Password, true -} - -// HasPassword returns a boolean if a field has been set. -func (o *ElasticSearch) HasPassword() bool { - if o != nil && !isNil(o.Password) { - return true - } - - return false -} - -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *ElasticSearch) SetPassword(v string) { - o.Password = &v -} - -// GetIndex returns the Index field value if set, zero value otherwise. -func (o *ElasticSearch) GetIndex() string { - if o == nil || isNil(o.Index) { - var ret string - return ret - } - return *o.Index -} - -// GetIndexOk returns a tuple with the Index field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ElasticSearch) GetIndexOk() (*string, bool) { - if o == nil || isNil(o.Index) { - return nil, false - } - return o.Index, true -} - -// HasIndex returns a boolean if a field has been set. -func (o *ElasticSearch) HasIndex() bool { - if o != nil && !isNil(o.Index) { - return true - } - - return false -} - -// SetIndex gets a reference to the given string and assigns it to the Index field. -func (o *ElasticSearch) SetIndex(v string) { - o.Index = &v -} - -// GetCertificate returns the Certificate field value if set, zero value otherwise. -func (o *ElasticSearch) GetCertificate() string { - if o == nil || isNil(o.Certificate) { - var ret string - return ret - } - return *o.Certificate -} - -// GetCertificateOk returns a tuple with the Certificate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ElasticSearch) GetCertificateOk() (*string, bool) { - if o == nil || isNil(o.Certificate) { - return nil, false - } - return o.Certificate, true -} - -// HasCertificate returns a boolean if a field has been set. -func (o *ElasticSearch) HasCertificate() bool { - if o != nil && !isNil(o.Certificate) { - return true - } - - return false -} - -// SetCertificate gets a reference to the given string and assigns it to the Certificate field. -func (o *ElasticSearch) SetCertificate(v string) { - o.Certificate = &v -} - -// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. -func (o *ElasticSearch) GetInsecureSkipVerify() bool { - if o == nil || isNil(o.InsecureSkipVerify) { - var ret bool - return ret - } - return *o.InsecureSkipVerify -} - -// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ElasticSearch) GetInsecureSkipVerifyOk() (*bool, bool) { - if o == nil || isNil(o.InsecureSkipVerify) { - return nil, false - } - return o.InsecureSkipVerify, true -} - -// HasInsecureSkipVerify returns a boolean if a field has been set. -func (o *ElasticSearch) HasInsecureSkipVerify() bool { - if o != nil && !isNil(o.InsecureSkipVerify) { - return true - } - - return false -} - -// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. -func (o *ElasticSearch) SetInsecureSkipVerify(v bool) { - o.InsecureSkipVerify = &v -} - -func (o ElasticSearch) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ElasticSearch) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Addresses) { - toSerialize["addresses"] = o.Addresses - } - if !isNil(o.Username) { - toSerialize["username"] = o.Username - } - if !isNil(o.Password) { - toSerialize["password"] = o.Password - } - if !isNil(o.Index) { - toSerialize["index"] = o.Index - } - if !isNil(o.Certificate) { - toSerialize["certificate"] = o.Certificate - } - if !isNil(o.InsecureSkipVerify) { - toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify - } - return toSerialize, nil -} - -type NullableElasticSearch struct { - value *ElasticSearch - isSet bool -} - -func (v NullableElasticSearch) Get() *ElasticSearch { - return v.value -} - -func (v *NullableElasticSearch) Set(val *ElasticSearch) { - v.value = val - v.isSet = true -} - -func (v NullableElasticSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableElasticSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableElasticSearch(val *ElasticSearch) *NullableElasticSearch { - return &NullableElasticSearch{value: val, isSet: true} -} - -func (v NullableElasticSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableElasticSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_exported_test_information.go b/openapi/model_exported_test_information.go deleted file mode 100644 index 2e491e9..0000000 --- a/openapi/model_exported_test_information.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ExportedTestInformation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExportedTestInformation{} - -// ExportedTestInformation struct for ExportedTestInformation -type ExportedTestInformation struct { - Test Test `json:"test"` - Run TestRun `json:"run"` -} - -// NewExportedTestInformation instantiates a new ExportedTestInformation object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExportedTestInformation(test Test, run TestRun) *ExportedTestInformation { - this := ExportedTestInformation{} - this.Test = test - this.Run = run - return &this -} - -// NewExportedTestInformationWithDefaults instantiates a new ExportedTestInformation object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExportedTestInformationWithDefaults() *ExportedTestInformation { - this := ExportedTestInformation{} - return &this -} - -// GetTest returns the Test field value -func (o *ExportedTestInformation) GetTest() Test { - if o == nil { - var ret Test - return ret - } - - return o.Test -} - -// GetTestOk returns a tuple with the Test field value -// and a boolean to check if the value has been set. -func (o *ExportedTestInformation) GetTestOk() (*Test, bool) { - if o == nil { - return nil, false - } - return &o.Test, true -} - -// SetTest sets field value -func (o *ExportedTestInformation) SetTest(v Test) { - o.Test = v -} - -// GetRun returns the Run field value -func (o *ExportedTestInformation) GetRun() TestRun { - if o == nil { - var ret TestRun - return ret - } - - return o.Run -} - -// GetRunOk returns a tuple with the Run field value -// and a boolean to check if the value has been set. -func (o *ExportedTestInformation) GetRunOk() (*TestRun, bool) { - if o == nil { - return nil, false - } - return &o.Run, true -} - -// SetRun sets field value -func (o *ExportedTestInformation) SetRun(v TestRun) { - o.Run = v -} - -func (o ExportedTestInformation) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExportedTestInformation) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["test"] = o.Test - toSerialize["run"] = o.Run - return toSerialize, nil -} - -type NullableExportedTestInformation struct { - value *ExportedTestInformation - isSet bool -} - -func (v NullableExportedTestInformation) Get() *ExportedTestInformation { - return v.value -} - -func (v *NullableExportedTestInformation) Set(val *ExportedTestInformation) { - v.value = val - v.isSet = true -} - -func (v NullableExportedTestInformation) IsSet() bool { - return v.isSet -} - -func (v *NullableExportedTestInformation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExportedTestInformation(val *ExportedTestInformation) *NullableExportedTestInformation { - return &NullableExportedTestInformation{value: val, isSet: true} -} - -func (v NullableExportedTestInformation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExportedTestInformation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_get_test_suites_200_response.go b/openapi/model_get_test_suites_200_response.go deleted file mode 100644 index f8296f0..0000000 --- a/openapi/model_get_test_suites_200_response.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the GetTestSuites200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetTestSuites200Response{} - -// GetTestSuites200Response struct for GetTestSuites200Response -type GetTestSuites200Response struct { - Count *int32 `json:"count,omitempty"` - Items []TestSuiteResource `json:"items,omitempty"` -} - -// NewGetTestSuites200Response instantiates a new GetTestSuites200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetTestSuites200Response() *GetTestSuites200Response { - this := GetTestSuites200Response{} - return &this -} - -// NewGetTestSuites200ResponseWithDefaults instantiates a new GetTestSuites200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetTestSuites200ResponseWithDefaults() *GetTestSuites200Response { - this := GetTestSuites200Response{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *GetTestSuites200Response) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetTestSuites200Response) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *GetTestSuites200Response) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *GetTestSuites200Response) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *GetTestSuites200Response) GetItems() []TestSuiteResource { - if o == nil || isNil(o.Items) { - var ret []TestSuiteResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetTestSuites200Response) GetItemsOk() ([]TestSuiteResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *GetTestSuites200Response) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []TestSuiteResource and assigns it to the Items field. -func (o *GetTestSuites200Response) SetItems(v []TestSuiteResource) { - o.Items = v -} - -func (o GetTestSuites200Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetTestSuites200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableGetTestSuites200Response struct { - value *GetTestSuites200Response - isSet bool -} - -func (v NullableGetTestSuites200Response) Get() *GetTestSuites200Response { - return v.value -} - -func (v *NullableGetTestSuites200Response) Set(val *GetTestSuites200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTestSuites200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTestSuites200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTestSuites200Response(val *GetTestSuites200Response) *NullableGetTestSuites200Response { - return &NullableGetTestSuites200Response{value: val, isSet: true} -} - -func (v NullableGetTestSuites200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTestSuites200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_grpc_client_settings.go b/openapi/model_grpc_client_settings.go deleted file mode 100644 index 141f49f..0000000 --- a/openapi/model_grpc_client_settings.go +++ /dev/null @@ -1,412 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the GRPCClientSettings type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GRPCClientSettings{} - -// GRPCClientSettings struct for GRPCClientSettings -type GRPCClientSettings struct { - Endpoint *string `json:"endpoint,omitempty"` - ReadBufferSize *float32 `json:"readBufferSize,omitempty"` - WriteBufferSize *float32 `json:"writeBufferSize,omitempty"` - WaitForReady *bool `json:"waitForReady,omitempty"` - Headers *map[string]string `json:"headers,omitempty"` - BalancerName *string `json:"balancerName,omitempty"` - Compression *string `json:"compression,omitempty"` - Tls *TLS `json:"tls,omitempty"` - Auth *HTTPAuth `json:"auth,omitempty"` -} - -// NewGRPCClientSettings instantiates a new GRPCClientSettings object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGRPCClientSettings() *GRPCClientSettings { - this := GRPCClientSettings{} - return &this -} - -// NewGRPCClientSettingsWithDefaults instantiates a new GRPCClientSettings object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGRPCClientSettingsWithDefaults() *GRPCClientSettings { - this := GRPCClientSettings{} - return &this -} - -// GetEndpoint returns the Endpoint field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetEndpoint() string { - if o == nil || isNil(o.Endpoint) { - var ret string - return ret - } - return *o.Endpoint -} - -// GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetEndpointOk() (*string, bool) { - if o == nil || isNil(o.Endpoint) { - return nil, false - } - return o.Endpoint, true -} - -// HasEndpoint returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasEndpoint() bool { - if o != nil && !isNil(o.Endpoint) { - return true - } - - return false -} - -// SetEndpoint gets a reference to the given string and assigns it to the Endpoint field. -func (o *GRPCClientSettings) SetEndpoint(v string) { - o.Endpoint = &v -} - -// GetReadBufferSize returns the ReadBufferSize field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetReadBufferSize() float32 { - if o == nil || isNil(o.ReadBufferSize) { - var ret float32 - return ret - } - return *o.ReadBufferSize -} - -// GetReadBufferSizeOk returns a tuple with the ReadBufferSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetReadBufferSizeOk() (*float32, bool) { - if o == nil || isNil(o.ReadBufferSize) { - return nil, false - } - return o.ReadBufferSize, true -} - -// HasReadBufferSize returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasReadBufferSize() bool { - if o != nil && !isNil(o.ReadBufferSize) { - return true - } - - return false -} - -// SetReadBufferSize gets a reference to the given float32 and assigns it to the ReadBufferSize field. -func (o *GRPCClientSettings) SetReadBufferSize(v float32) { - o.ReadBufferSize = &v -} - -// GetWriteBufferSize returns the WriteBufferSize field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetWriteBufferSize() float32 { - if o == nil || isNil(o.WriteBufferSize) { - var ret float32 - return ret - } - return *o.WriteBufferSize -} - -// GetWriteBufferSizeOk returns a tuple with the WriteBufferSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetWriteBufferSizeOk() (*float32, bool) { - if o == nil || isNil(o.WriteBufferSize) { - return nil, false - } - return o.WriteBufferSize, true -} - -// HasWriteBufferSize returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasWriteBufferSize() bool { - if o != nil && !isNil(o.WriteBufferSize) { - return true - } - - return false -} - -// SetWriteBufferSize gets a reference to the given float32 and assigns it to the WriteBufferSize field. -func (o *GRPCClientSettings) SetWriteBufferSize(v float32) { - o.WriteBufferSize = &v -} - -// GetWaitForReady returns the WaitForReady field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetWaitForReady() bool { - if o == nil || isNil(o.WaitForReady) { - var ret bool - return ret - } - return *o.WaitForReady -} - -// GetWaitForReadyOk returns a tuple with the WaitForReady field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetWaitForReadyOk() (*bool, bool) { - if o == nil || isNil(o.WaitForReady) { - return nil, false - } - return o.WaitForReady, true -} - -// HasWaitForReady returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasWaitForReady() bool { - if o != nil && !isNil(o.WaitForReady) { - return true - } - - return false -} - -// SetWaitForReady gets a reference to the given bool and assigns it to the WaitForReady field. -func (o *GRPCClientSettings) SetWaitForReady(v bool) { - o.WaitForReady = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetHeaders() map[string]string { - if o == nil || isNil(o.Headers) { - var ret map[string]string - return ret - } - return *o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetHeadersOk() (*map[string]string, bool) { - if o == nil || isNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasHeaders() bool { - if o != nil && !isNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *GRPCClientSettings) SetHeaders(v map[string]string) { - o.Headers = &v -} - -// GetBalancerName returns the BalancerName field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetBalancerName() string { - if o == nil || isNil(o.BalancerName) { - var ret string - return ret - } - return *o.BalancerName -} - -// GetBalancerNameOk returns a tuple with the BalancerName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetBalancerNameOk() (*string, bool) { - if o == nil || isNil(o.BalancerName) { - return nil, false - } - return o.BalancerName, true -} - -// HasBalancerName returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasBalancerName() bool { - if o != nil && !isNil(o.BalancerName) { - return true - } - - return false -} - -// SetBalancerName gets a reference to the given string and assigns it to the BalancerName field. -func (o *GRPCClientSettings) SetBalancerName(v string) { - o.BalancerName = &v -} - -// GetCompression returns the Compression field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetCompression() string { - if o == nil || isNil(o.Compression) { - var ret string - return ret - } - return *o.Compression -} - -// GetCompressionOk returns a tuple with the Compression field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetCompressionOk() (*string, bool) { - if o == nil || isNil(o.Compression) { - return nil, false - } - return o.Compression, true -} - -// HasCompression returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasCompression() bool { - if o != nil && !isNil(o.Compression) { - return true - } - - return false -} - -// SetCompression gets a reference to the given string and assigns it to the Compression field. -func (o *GRPCClientSettings) SetCompression(v string) { - o.Compression = &v -} - -// GetTls returns the Tls field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetTls() TLS { - if o == nil || isNil(o.Tls) { - var ret TLS - return ret - } - return *o.Tls -} - -// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetTlsOk() (*TLS, bool) { - if o == nil || isNil(o.Tls) { - return nil, false - } - return o.Tls, true -} - -// HasTls returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasTls() bool { - if o != nil && !isNil(o.Tls) { - return true - } - - return false -} - -// SetTls gets a reference to the given TLS and assigns it to the Tls field. -func (o *GRPCClientSettings) SetTls(v TLS) { - o.Tls = &v -} - -// GetAuth returns the Auth field value if set, zero value otherwise. -func (o *GRPCClientSettings) GetAuth() HTTPAuth { - if o == nil || isNil(o.Auth) { - var ret HTTPAuth - return ret - } - return *o.Auth -} - -// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCClientSettings) GetAuthOk() (*HTTPAuth, bool) { - if o == nil || isNil(o.Auth) { - return nil, false - } - return o.Auth, true -} - -// HasAuth returns a boolean if a field has been set. -func (o *GRPCClientSettings) HasAuth() bool { - if o != nil && !isNil(o.Auth) { - return true - } - - return false -} - -// SetAuth gets a reference to the given HTTPAuth and assigns it to the Auth field. -func (o *GRPCClientSettings) SetAuth(v HTTPAuth) { - o.Auth = &v -} - -func (o GRPCClientSettings) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GRPCClientSettings) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Endpoint) { - toSerialize["endpoint"] = o.Endpoint - } - if !isNil(o.ReadBufferSize) { - toSerialize["readBufferSize"] = o.ReadBufferSize - } - if !isNil(o.WriteBufferSize) { - toSerialize["writeBufferSize"] = o.WriteBufferSize - } - if !isNil(o.WaitForReady) { - toSerialize["waitForReady"] = o.WaitForReady - } - if !isNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !isNil(o.BalancerName) { - toSerialize["balancerName"] = o.BalancerName - } - if !isNil(o.Compression) { - toSerialize["compression"] = o.Compression - } - if !isNil(o.Tls) { - toSerialize["tls"] = o.Tls - } - if !isNil(o.Auth) { - toSerialize["auth"] = o.Auth - } - return toSerialize, nil -} - -type NullableGRPCClientSettings struct { - value *GRPCClientSettings - isSet bool -} - -func (v NullableGRPCClientSettings) Get() *GRPCClientSettings { - return v.value -} - -func (v *NullableGRPCClientSettings) Set(val *GRPCClientSettings) { - v.value = val - v.isSet = true -} - -func (v NullableGRPCClientSettings) IsSet() bool { - return v.isSet -} - -func (v *NullableGRPCClientSettings) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGRPCClientSettings(val *GRPCClientSettings) *NullableGRPCClientSettings { - return &NullableGRPCClientSettings{value: val, isSet: true} -} - -func (v NullableGRPCClientSettings) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGRPCClientSettings) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_grpc_header.go b/openapi/model_grpc_header.go deleted file mode 100644 index 19d672e..0000000 --- a/openapi/model_grpc_header.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the GRPCHeader type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GRPCHeader{} - -// GRPCHeader struct for GRPCHeader -type GRPCHeader struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewGRPCHeader instantiates a new GRPCHeader object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGRPCHeader() *GRPCHeader { - this := GRPCHeader{} - return &this -} - -// NewGRPCHeaderWithDefaults instantiates a new GRPCHeader object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGRPCHeaderWithDefaults() *GRPCHeader { - this := GRPCHeader{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *GRPCHeader) GetKey() string { - if o == nil || isNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCHeader) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *GRPCHeader) HasKey() bool { - if o != nil && !isNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *GRPCHeader) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *GRPCHeader) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCHeader) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *GRPCHeader) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *GRPCHeader) SetValue(v string) { - o.Value = &v -} - -func (o GRPCHeader) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GRPCHeader) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Key) { - toSerialize["key"] = o.Key - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableGRPCHeader struct { - value *GRPCHeader - isSet bool -} - -func (v NullableGRPCHeader) Get() *GRPCHeader { - return v.value -} - -func (v *NullableGRPCHeader) Set(val *GRPCHeader) { - v.value = val - v.isSet = true -} - -func (v NullableGRPCHeader) IsSet() bool { - return v.isSet -} - -func (v *NullableGRPCHeader) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGRPCHeader(val *GRPCHeader) *NullableGRPCHeader { - return &NullableGRPCHeader{value: val, isSet: true} -} - -func (v NullableGRPCHeader) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGRPCHeader) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_grpc_request.go b/openapi/model_grpc_request.go deleted file mode 100644 index 82bed03..0000000 --- a/openapi/model_grpc_request.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the GRPCRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GRPCRequest{} - -// GRPCRequest struct for GRPCRequest -type GRPCRequest struct { - ProtobufFile *string `json:"protobufFile,omitempty"` - Address *string `json:"address,omitempty"` - Service *string `json:"service,omitempty"` - Method *string `json:"method,omitempty"` - Metadata []GRPCHeader `json:"metadata,omitempty"` - Auth *HTTPAuth `json:"auth,omitempty"` - Request *string `json:"request,omitempty"` -} - -// NewGRPCRequest instantiates a new GRPCRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGRPCRequest() *GRPCRequest { - this := GRPCRequest{} - return &this -} - -// NewGRPCRequestWithDefaults instantiates a new GRPCRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGRPCRequestWithDefaults() *GRPCRequest { - this := GRPCRequest{} - return &this -} - -// GetProtobufFile returns the ProtobufFile field value if set, zero value otherwise. -func (o *GRPCRequest) GetProtobufFile() string { - if o == nil || isNil(o.ProtobufFile) { - var ret string - return ret - } - return *o.ProtobufFile -} - -// GetProtobufFileOk returns a tuple with the ProtobufFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetProtobufFileOk() (*string, bool) { - if o == nil || isNil(o.ProtobufFile) { - return nil, false - } - return o.ProtobufFile, true -} - -// HasProtobufFile returns a boolean if a field has been set. -func (o *GRPCRequest) HasProtobufFile() bool { - if o != nil && !isNil(o.ProtobufFile) { - return true - } - - return false -} - -// SetProtobufFile gets a reference to the given string and assigns it to the ProtobufFile field. -func (o *GRPCRequest) SetProtobufFile(v string) { - o.ProtobufFile = &v -} - -// GetAddress returns the Address field value if set, zero value otherwise. -func (o *GRPCRequest) GetAddress() string { - if o == nil || isNil(o.Address) { - var ret string - return ret - } - return *o.Address -} - -// GetAddressOk returns a tuple with the Address field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetAddressOk() (*string, bool) { - if o == nil || isNil(o.Address) { - return nil, false - } - return o.Address, true -} - -// HasAddress returns a boolean if a field has been set. -func (o *GRPCRequest) HasAddress() bool { - if o != nil && !isNil(o.Address) { - return true - } - - return false -} - -// SetAddress gets a reference to the given string and assigns it to the Address field. -func (o *GRPCRequest) SetAddress(v string) { - o.Address = &v -} - -// GetService returns the Service field value if set, zero value otherwise. -func (o *GRPCRequest) GetService() string { - if o == nil || isNil(o.Service) { - var ret string - return ret - } - return *o.Service -} - -// GetServiceOk returns a tuple with the Service field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetServiceOk() (*string, bool) { - if o == nil || isNil(o.Service) { - return nil, false - } - return o.Service, true -} - -// HasService returns a boolean if a field has been set. -func (o *GRPCRequest) HasService() bool { - if o != nil && !isNil(o.Service) { - return true - } - - return false -} - -// SetService gets a reference to the given string and assigns it to the Service field. -func (o *GRPCRequest) SetService(v string) { - o.Service = &v -} - -// GetMethod returns the Method field value if set, zero value otherwise. -func (o *GRPCRequest) GetMethod() string { - if o == nil || isNil(o.Method) { - var ret string - return ret - } - return *o.Method -} - -// GetMethodOk returns a tuple with the Method field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetMethodOk() (*string, bool) { - if o == nil || isNil(o.Method) { - return nil, false - } - return o.Method, true -} - -// HasMethod returns a boolean if a field has been set. -func (o *GRPCRequest) HasMethod() bool { - if o != nil && !isNil(o.Method) { - return true - } - - return false -} - -// SetMethod gets a reference to the given string and assigns it to the Method field. -func (o *GRPCRequest) SetMethod(v string) { - o.Method = &v -} - -// GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *GRPCRequest) GetMetadata() []GRPCHeader { - if o == nil || isNil(o.Metadata) { - var ret []GRPCHeader - return ret - } - return o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetMetadataOk() ([]GRPCHeader, bool) { - if o == nil || isNil(o.Metadata) { - return nil, false - } - return o.Metadata, true -} - -// HasMetadata returns a boolean if a field has been set. -func (o *GRPCRequest) HasMetadata() bool { - if o != nil && !isNil(o.Metadata) { - return true - } - - return false -} - -// SetMetadata gets a reference to the given []GRPCHeader and assigns it to the Metadata field. -func (o *GRPCRequest) SetMetadata(v []GRPCHeader) { - o.Metadata = v -} - -// GetAuth returns the Auth field value if set, zero value otherwise. -func (o *GRPCRequest) GetAuth() HTTPAuth { - if o == nil || isNil(o.Auth) { - var ret HTTPAuth - return ret - } - return *o.Auth -} - -// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetAuthOk() (*HTTPAuth, bool) { - if o == nil || isNil(o.Auth) { - return nil, false - } - return o.Auth, true -} - -// HasAuth returns a boolean if a field has been set. -func (o *GRPCRequest) HasAuth() bool { - if o != nil && !isNil(o.Auth) { - return true - } - - return false -} - -// SetAuth gets a reference to the given HTTPAuth and assigns it to the Auth field. -func (o *GRPCRequest) SetAuth(v HTTPAuth) { - o.Auth = &v -} - -// GetRequest returns the Request field value if set, zero value otherwise. -func (o *GRPCRequest) GetRequest() string { - if o == nil || isNil(o.Request) { - var ret string - return ret - } - return *o.Request -} - -// GetRequestOk returns a tuple with the Request field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCRequest) GetRequestOk() (*string, bool) { - if o == nil || isNil(o.Request) { - return nil, false - } - return o.Request, true -} - -// HasRequest returns a boolean if a field has been set. -func (o *GRPCRequest) HasRequest() bool { - if o != nil && !isNil(o.Request) { - return true - } - - return false -} - -// SetRequest gets a reference to the given string and assigns it to the Request field. -func (o *GRPCRequest) SetRequest(v string) { - o.Request = &v -} - -func (o GRPCRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GRPCRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ProtobufFile) { - toSerialize["protobufFile"] = o.ProtobufFile - } - if !isNil(o.Address) { - toSerialize["address"] = o.Address - } - if !isNil(o.Service) { - toSerialize["service"] = o.Service - } - if !isNil(o.Method) { - toSerialize["method"] = o.Method - } - if !isNil(o.Metadata) { - toSerialize["metadata"] = o.Metadata - } - if !isNil(o.Auth) { - toSerialize["auth"] = o.Auth - } - if !isNil(o.Request) { - toSerialize["request"] = o.Request - } - return toSerialize, nil -} - -type NullableGRPCRequest struct { - value *GRPCRequest - isSet bool -} - -func (v NullableGRPCRequest) Get() *GRPCRequest { - return v.value -} - -func (v *NullableGRPCRequest) Set(val *GRPCRequest) { - v.value = val - v.isSet = true -} - -func (v NullableGRPCRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableGRPCRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGRPCRequest(val *GRPCRequest) *NullableGRPCRequest { - return &NullableGRPCRequest{value: val, isSet: true} -} - -func (v NullableGRPCRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGRPCRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_grpc_response.go b/openapi/model_grpc_response.go deleted file mode 100644 index 7f053b5..0000000 --- a/openapi/model_grpc_response.go +++ /dev/null @@ -1,200 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the GRPCResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GRPCResponse{} - -// GRPCResponse struct for GRPCResponse -type GRPCResponse struct { - StatusCode *int32 `json:"statusCode,omitempty"` - Metadata []GRPCHeader `json:"metadata,omitempty"` - Body *string `json:"body,omitempty"` -} - -// NewGRPCResponse instantiates a new GRPCResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGRPCResponse() *GRPCResponse { - this := GRPCResponse{} - var statusCode int32 = 0 - this.StatusCode = &statusCode - return &this -} - -// NewGRPCResponseWithDefaults instantiates a new GRPCResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGRPCResponseWithDefaults() *GRPCResponse { - this := GRPCResponse{} - var statusCode int32 = 0 - this.StatusCode = &statusCode - return &this -} - -// GetStatusCode returns the StatusCode field value if set, zero value otherwise. -func (o *GRPCResponse) GetStatusCode() int32 { - if o == nil || isNil(o.StatusCode) { - var ret int32 - return ret - } - return *o.StatusCode -} - -// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCResponse) GetStatusCodeOk() (*int32, bool) { - if o == nil || isNil(o.StatusCode) { - return nil, false - } - return o.StatusCode, true -} - -// HasStatusCode returns a boolean if a field has been set. -func (o *GRPCResponse) HasStatusCode() bool { - if o != nil && !isNil(o.StatusCode) { - return true - } - - return false -} - -// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. -func (o *GRPCResponse) SetStatusCode(v int32) { - o.StatusCode = &v -} - -// GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *GRPCResponse) GetMetadata() []GRPCHeader { - if o == nil || isNil(o.Metadata) { - var ret []GRPCHeader - return ret - } - return o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCResponse) GetMetadataOk() ([]GRPCHeader, bool) { - if o == nil || isNil(o.Metadata) { - return nil, false - } - return o.Metadata, true -} - -// HasMetadata returns a boolean if a field has been set. -func (o *GRPCResponse) HasMetadata() bool { - if o != nil && !isNil(o.Metadata) { - return true - } - - return false -} - -// SetMetadata gets a reference to the given []GRPCHeader and assigns it to the Metadata field. -func (o *GRPCResponse) SetMetadata(v []GRPCHeader) { - o.Metadata = v -} - -// GetBody returns the Body field value if set, zero value otherwise. -func (o *GRPCResponse) GetBody() string { - if o == nil || isNil(o.Body) { - var ret string - return ret - } - return *o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GRPCResponse) GetBodyOk() (*string, bool) { - if o == nil || isNil(o.Body) { - return nil, false - } - return o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *GRPCResponse) HasBody() bool { - if o != nil && !isNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given string and assigns it to the Body field. -func (o *GRPCResponse) SetBody(v string) { - o.Body = &v -} - -func (o GRPCResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GRPCResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.StatusCode) { - toSerialize["statusCode"] = o.StatusCode - } - if !isNil(o.Metadata) { - toSerialize["metadata"] = o.Metadata - } - if !isNil(o.Body) { - toSerialize["body"] = o.Body - } - return toSerialize, nil -} - -type NullableGRPCResponse struct { - value *GRPCResponse - isSet bool -} - -func (v NullableGRPCResponse) Get() *GRPCResponse { - return v.value -} - -func (v *NullableGRPCResponse) Set(val *GRPCResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGRPCResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGRPCResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGRPCResponse(val *GRPCResponse) *NullableGRPCResponse { - return &NullableGRPCResponse{value: val, isSet: true} -} - -func (v NullableGRPCResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGRPCResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_auth.go b/openapi/model_http_auth.go deleted file mode 100644 index 2a54144..0000000 --- a/openapi/model_http_auth.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPAuth type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPAuth{} - -// HTTPAuth struct for HTTPAuth -type HTTPAuth struct { - Type *string `json:"type,omitempty"` - ApiKey *HTTPAuthApiKey `json:"apiKey,omitempty"` - Basic *HTTPAuthBasic `json:"basic,omitempty"` - Bearer *HTTPAuthBearer `json:"bearer,omitempty"` -} - -// NewHTTPAuth instantiates a new HTTPAuth object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPAuth() *HTTPAuth { - this := HTTPAuth{} - return &this -} - -// NewHTTPAuthWithDefaults instantiates a new HTTPAuth object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPAuthWithDefaults() *HTTPAuth { - this := HTTPAuth{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *HTTPAuth) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuth) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *HTTPAuth) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *HTTPAuth) SetType(v string) { - o.Type = &v -} - -// GetApiKey returns the ApiKey field value if set, zero value otherwise. -func (o *HTTPAuth) GetApiKey() HTTPAuthApiKey { - if o == nil || isNil(o.ApiKey) { - var ret HTTPAuthApiKey - return ret - } - return *o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuth) GetApiKeyOk() (*HTTPAuthApiKey, bool) { - if o == nil || isNil(o.ApiKey) { - return nil, false - } - return o.ApiKey, true -} - -// HasApiKey returns a boolean if a field has been set. -func (o *HTTPAuth) HasApiKey() bool { - if o != nil && !isNil(o.ApiKey) { - return true - } - - return false -} - -// SetApiKey gets a reference to the given HTTPAuthApiKey and assigns it to the ApiKey field. -func (o *HTTPAuth) SetApiKey(v HTTPAuthApiKey) { - o.ApiKey = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *HTTPAuth) GetBasic() HTTPAuthBasic { - if o == nil || isNil(o.Basic) { - var ret HTTPAuthBasic - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuth) GetBasicOk() (*HTTPAuthBasic, bool) { - if o == nil || isNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *HTTPAuth) HasBasic() bool { - if o != nil && !isNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given HTTPAuthBasic and assigns it to the Basic field. -func (o *HTTPAuth) SetBasic(v HTTPAuthBasic) { - o.Basic = &v -} - -// GetBearer returns the Bearer field value if set, zero value otherwise. -func (o *HTTPAuth) GetBearer() HTTPAuthBearer { - if o == nil || isNil(o.Bearer) { - var ret HTTPAuthBearer - return ret - } - return *o.Bearer -} - -// GetBearerOk returns a tuple with the Bearer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuth) GetBearerOk() (*HTTPAuthBearer, bool) { - if o == nil || isNil(o.Bearer) { - return nil, false - } - return o.Bearer, true -} - -// HasBearer returns a boolean if a field has been set. -func (o *HTTPAuth) HasBearer() bool { - if o != nil && !isNil(o.Bearer) { - return true - } - - return false -} - -// SetBearer gets a reference to the given HTTPAuthBearer and assigns it to the Bearer field. -func (o *HTTPAuth) SetBearer(v HTTPAuthBearer) { - o.Bearer = &v -} - -func (o HTTPAuth) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPAuth) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.ApiKey) { - toSerialize["apiKey"] = o.ApiKey - } - if !isNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !isNil(o.Bearer) { - toSerialize["bearer"] = o.Bearer - } - return toSerialize, nil -} - -type NullableHTTPAuth struct { - value *HTTPAuth - isSet bool -} - -func (v NullableHTTPAuth) Get() *HTTPAuth { - return v.value -} - -func (v *NullableHTTPAuth) Set(val *HTTPAuth) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPAuth) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPAuth) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPAuth(val *HTTPAuth) *NullableHTTPAuth { - return &NullableHTTPAuth{value: val, isSet: true} -} - -func (v NullableHTTPAuth) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPAuth) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_auth_api_key.go b/openapi/model_http_auth_api_key.go deleted file mode 100644 index da9a984..0000000 --- a/openapi/model_http_auth_api_key.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPAuthApiKey type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPAuthApiKey{} - -// HTTPAuthApiKey struct for HTTPAuthApiKey -type HTTPAuthApiKey struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` - In *string `json:"in,omitempty"` -} - -// NewHTTPAuthApiKey instantiates a new HTTPAuthApiKey object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPAuthApiKey() *HTTPAuthApiKey { - this := HTTPAuthApiKey{} - return &this -} - -// NewHTTPAuthApiKeyWithDefaults instantiates a new HTTPAuthApiKey object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPAuthApiKeyWithDefaults() *HTTPAuthApiKey { - this := HTTPAuthApiKey{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *HTTPAuthApiKey) GetKey() string { - if o == nil || isNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuthApiKey) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *HTTPAuthApiKey) HasKey() bool { - if o != nil && !isNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *HTTPAuthApiKey) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *HTTPAuthApiKey) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuthApiKey) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *HTTPAuthApiKey) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *HTTPAuthApiKey) SetValue(v string) { - o.Value = &v -} - -// GetIn returns the In field value if set, zero value otherwise. -func (o *HTTPAuthApiKey) GetIn() string { - if o == nil || isNil(o.In) { - var ret string - return ret - } - return *o.In -} - -// GetInOk returns a tuple with the In field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuthApiKey) GetInOk() (*string, bool) { - if o == nil || isNil(o.In) { - return nil, false - } - return o.In, true -} - -// HasIn returns a boolean if a field has been set. -func (o *HTTPAuthApiKey) HasIn() bool { - if o != nil && !isNil(o.In) { - return true - } - - return false -} - -// SetIn gets a reference to the given string and assigns it to the In field. -func (o *HTTPAuthApiKey) SetIn(v string) { - o.In = &v -} - -func (o HTTPAuthApiKey) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPAuthApiKey) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Key) { - toSerialize["key"] = o.Key - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - if !isNil(o.In) { - toSerialize["in"] = o.In - } - return toSerialize, nil -} - -type NullableHTTPAuthApiKey struct { - value *HTTPAuthApiKey - isSet bool -} - -func (v NullableHTTPAuthApiKey) Get() *HTTPAuthApiKey { - return v.value -} - -func (v *NullableHTTPAuthApiKey) Set(val *HTTPAuthApiKey) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPAuthApiKey) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPAuthApiKey) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPAuthApiKey(val *HTTPAuthApiKey) *NullableHTTPAuthApiKey { - return &NullableHTTPAuthApiKey{value: val, isSet: true} -} - -func (v NullableHTTPAuthApiKey) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPAuthApiKey) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_auth_basic.go b/openapi/model_http_auth_basic.go deleted file mode 100644 index b04004d..0000000 --- a/openapi/model_http_auth_basic.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPAuthBasic type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPAuthBasic{} - -// HTTPAuthBasic struct for HTTPAuthBasic -type HTTPAuthBasic struct { - Username *string `json:"username,omitempty"` - Password *string `json:"password,omitempty"` -} - -// NewHTTPAuthBasic instantiates a new HTTPAuthBasic object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPAuthBasic() *HTTPAuthBasic { - this := HTTPAuthBasic{} - return &this -} - -// NewHTTPAuthBasicWithDefaults instantiates a new HTTPAuthBasic object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPAuthBasicWithDefaults() *HTTPAuthBasic { - this := HTTPAuthBasic{} - return &this -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *HTTPAuthBasic) GetUsername() string { - if o == nil || isNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuthBasic) GetUsernameOk() (*string, bool) { - if o == nil || isNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *HTTPAuthBasic) HasUsername() bool { - if o != nil && !isNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *HTTPAuthBasic) SetUsername(v string) { - o.Username = &v -} - -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *HTTPAuthBasic) GetPassword() string { - if o == nil || isNil(o.Password) { - var ret string - return ret - } - return *o.Password -} - -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuthBasic) GetPasswordOk() (*string, bool) { - if o == nil || isNil(o.Password) { - return nil, false - } - return o.Password, true -} - -// HasPassword returns a boolean if a field has been set. -func (o *HTTPAuthBasic) HasPassword() bool { - if o != nil && !isNil(o.Password) { - return true - } - - return false -} - -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *HTTPAuthBasic) SetPassword(v string) { - o.Password = &v -} - -func (o HTTPAuthBasic) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPAuthBasic) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Username) { - toSerialize["username"] = o.Username - } - if !isNil(o.Password) { - toSerialize["password"] = o.Password - } - return toSerialize, nil -} - -type NullableHTTPAuthBasic struct { - value *HTTPAuthBasic - isSet bool -} - -func (v NullableHTTPAuthBasic) Get() *HTTPAuthBasic { - return v.value -} - -func (v *NullableHTTPAuthBasic) Set(val *HTTPAuthBasic) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPAuthBasic) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPAuthBasic) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPAuthBasic(val *HTTPAuthBasic) *NullableHTTPAuthBasic { - return &NullableHTTPAuthBasic{value: val, isSet: true} -} - -func (v NullableHTTPAuthBasic) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPAuthBasic) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_auth_bearer.go b/openapi/model_http_auth_bearer.go deleted file mode 100644 index db9d91d..0000000 --- a/openapi/model_http_auth_bearer.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPAuthBearer type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPAuthBearer{} - -// HTTPAuthBearer struct for HTTPAuthBearer -type HTTPAuthBearer struct { - Token *string `json:"token,omitempty"` -} - -// NewHTTPAuthBearer instantiates a new HTTPAuthBearer object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPAuthBearer() *HTTPAuthBearer { - this := HTTPAuthBearer{} - return &this -} - -// NewHTTPAuthBearerWithDefaults instantiates a new HTTPAuthBearer object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPAuthBearerWithDefaults() *HTTPAuthBearer { - this := HTTPAuthBearer{} - return &this -} - -// GetToken returns the Token field value if set, zero value otherwise. -func (o *HTTPAuthBearer) GetToken() string { - if o == nil || isNil(o.Token) { - var ret string - return ret - } - return *o.Token -} - -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPAuthBearer) GetTokenOk() (*string, bool) { - if o == nil || isNil(o.Token) { - return nil, false - } - return o.Token, true -} - -// HasToken returns a boolean if a field has been set. -func (o *HTTPAuthBearer) HasToken() bool { - if o != nil && !isNil(o.Token) { - return true - } - - return false -} - -// SetToken gets a reference to the given string and assigns it to the Token field. -func (o *HTTPAuthBearer) SetToken(v string) { - o.Token = &v -} - -func (o HTTPAuthBearer) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPAuthBearer) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Token) { - toSerialize["token"] = o.Token - } - return toSerialize, nil -} - -type NullableHTTPAuthBearer struct { - value *HTTPAuthBearer - isSet bool -} - -func (v NullableHTTPAuthBearer) Get() *HTTPAuthBearer { - return v.value -} - -func (v *NullableHTTPAuthBearer) Set(val *HTTPAuthBearer) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPAuthBearer) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPAuthBearer) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPAuthBearer(val *HTTPAuthBearer) *NullableHTTPAuthBearer { - return &NullableHTTPAuthBearer{value: val, isSet: true} -} - -func (v NullableHTTPAuthBearer) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPAuthBearer) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_client_settings.go b/openapi/model_http_client_settings.go deleted file mode 100644 index ff4e994..0000000 --- a/openapi/model_http_client_settings.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPClientSettings type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPClientSettings{} - -// HTTPClientSettings struct for HTTPClientSettings -type HTTPClientSettings struct { - Url *string `json:"url,omitempty"` - Headers *map[string]string `json:"headers,omitempty"` - Tls *TLS `json:"tls,omitempty"` - Auth *HTTPAuth `json:"auth,omitempty"` -} - -// NewHTTPClientSettings instantiates a new HTTPClientSettings object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPClientSettings() *HTTPClientSettings { - this := HTTPClientSettings{} - return &this -} - -// NewHTTPClientSettingsWithDefaults instantiates a new HTTPClientSettings object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPClientSettingsWithDefaults() *HTTPClientSettings { - this := HTTPClientSettings{} - return &this -} - -// GetUrl returns the Url field value if set, zero value otherwise. -func (o *HTTPClientSettings) GetUrl() string { - if o == nil || isNil(o.Url) { - var ret string - return ret - } - return *o.Url -} - -// GetUrlOk returns a tuple with the Url field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPClientSettings) GetUrlOk() (*string, bool) { - if o == nil || isNil(o.Url) { - return nil, false - } - return o.Url, true -} - -// HasUrl returns a boolean if a field has been set. -func (o *HTTPClientSettings) HasUrl() bool { - if o != nil && !isNil(o.Url) { - return true - } - - return false -} - -// SetUrl gets a reference to the given string and assigns it to the Url field. -func (o *HTTPClientSettings) SetUrl(v string) { - o.Url = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *HTTPClientSettings) GetHeaders() map[string]string { - if o == nil || isNil(o.Headers) { - var ret map[string]string - return ret - } - return *o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPClientSettings) GetHeadersOk() (*map[string]string, bool) { - if o == nil || isNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *HTTPClientSettings) HasHeaders() bool { - if o != nil && !isNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *HTTPClientSettings) SetHeaders(v map[string]string) { - o.Headers = &v -} - -// GetTls returns the Tls field value if set, zero value otherwise. -func (o *HTTPClientSettings) GetTls() TLS { - if o == nil || isNil(o.Tls) { - var ret TLS - return ret - } - return *o.Tls -} - -// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPClientSettings) GetTlsOk() (*TLS, bool) { - if o == nil || isNil(o.Tls) { - return nil, false - } - return o.Tls, true -} - -// HasTls returns a boolean if a field has been set. -func (o *HTTPClientSettings) HasTls() bool { - if o != nil && !isNil(o.Tls) { - return true - } - - return false -} - -// SetTls gets a reference to the given TLS and assigns it to the Tls field. -func (o *HTTPClientSettings) SetTls(v TLS) { - o.Tls = &v -} - -// GetAuth returns the Auth field value if set, zero value otherwise. -func (o *HTTPClientSettings) GetAuth() HTTPAuth { - if o == nil || isNil(o.Auth) { - var ret HTTPAuth - return ret - } - return *o.Auth -} - -// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPClientSettings) GetAuthOk() (*HTTPAuth, bool) { - if o == nil || isNil(o.Auth) { - return nil, false - } - return o.Auth, true -} - -// HasAuth returns a boolean if a field has been set. -func (o *HTTPClientSettings) HasAuth() bool { - if o != nil && !isNil(o.Auth) { - return true - } - - return false -} - -// SetAuth gets a reference to the given HTTPAuth and assigns it to the Auth field. -func (o *HTTPClientSettings) SetAuth(v HTTPAuth) { - o.Auth = &v -} - -func (o HTTPClientSettings) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPClientSettings) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Url) { - toSerialize["url"] = o.Url - } - if !isNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !isNil(o.Tls) { - toSerialize["tls"] = o.Tls - } - if !isNil(o.Auth) { - toSerialize["auth"] = o.Auth - } - return toSerialize, nil -} - -type NullableHTTPClientSettings struct { - value *HTTPClientSettings - isSet bool -} - -func (v NullableHTTPClientSettings) Get() *HTTPClientSettings { - return v.value -} - -func (v *NullableHTTPClientSettings) Set(val *HTTPClientSettings) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPClientSettings) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPClientSettings) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPClientSettings(val *HTTPClientSettings) *NullableHTTPClientSettings { - return &NullableHTTPClientSettings{value: val, isSet: true} -} - -func (v NullableHTTPClientSettings) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPClientSettings) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_header.go b/openapi/model_http_header.go deleted file mode 100644 index 9ee357e..0000000 --- a/openapi/model_http_header.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPHeader type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPHeader{} - -// HTTPHeader struct for HTTPHeader -type HTTPHeader struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewHTTPHeader instantiates a new HTTPHeader object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPHeader() *HTTPHeader { - this := HTTPHeader{} - return &this -} - -// NewHTTPHeaderWithDefaults instantiates a new HTTPHeader object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPHeaderWithDefaults() *HTTPHeader { - this := HTTPHeader{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *HTTPHeader) GetKey() string { - if o == nil || isNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPHeader) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *HTTPHeader) HasKey() bool { - if o != nil && !isNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *HTTPHeader) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *HTTPHeader) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPHeader) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *HTTPHeader) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *HTTPHeader) SetValue(v string) { - o.Value = &v -} - -func (o HTTPHeader) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPHeader) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Key) { - toSerialize["key"] = o.Key - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableHTTPHeader struct { - value *HTTPHeader - isSet bool -} - -func (v NullableHTTPHeader) Get() *HTTPHeader { - return v.value -} - -func (v *NullableHTTPHeader) Set(val *HTTPHeader) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPHeader) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPHeader) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPHeader(val *HTTPHeader) *NullableHTTPHeader { - return &NullableHTTPHeader{value: val, isSet: true} -} - -func (v NullableHTTPHeader) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPHeader) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_request.go b/openapi/model_http_request.go deleted file mode 100644 index 53aabbe..0000000 --- a/openapi/model_http_request.go +++ /dev/null @@ -1,308 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPRequest{} - -// HTTPRequest struct for HTTPRequest -type HTTPRequest struct { - Url *string `json:"url,omitempty"` - Method *string `json:"method,omitempty"` - Headers []HTTPHeader `json:"headers,omitempty"` - Body *string `json:"body,omitempty"` - Auth *HTTPAuth `json:"auth,omitempty"` - SslVerification *bool `json:"sslVerification,omitempty"` -} - -// NewHTTPRequest instantiates a new HTTPRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPRequest() *HTTPRequest { - this := HTTPRequest{} - var sslVerification bool = false - this.SslVerification = &sslVerification - return &this -} - -// NewHTTPRequestWithDefaults instantiates a new HTTPRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPRequestWithDefaults() *HTTPRequest { - this := HTTPRequest{} - var sslVerification bool = false - this.SslVerification = &sslVerification - return &this -} - -// GetUrl returns the Url field value if set, zero value otherwise. -func (o *HTTPRequest) GetUrl() string { - if o == nil || isNil(o.Url) { - var ret string - return ret - } - return *o.Url -} - -// GetUrlOk returns a tuple with the Url field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPRequest) GetUrlOk() (*string, bool) { - if o == nil || isNil(o.Url) { - return nil, false - } - return o.Url, true -} - -// HasUrl returns a boolean if a field has been set. -func (o *HTTPRequest) HasUrl() bool { - if o != nil && !isNil(o.Url) { - return true - } - - return false -} - -// SetUrl gets a reference to the given string and assigns it to the Url field. -func (o *HTTPRequest) SetUrl(v string) { - o.Url = &v -} - -// GetMethod returns the Method field value if set, zero value otherwise. -func (o *HTTPRequest) GetMethod() string { - if o == nil || isNil(o.Method) { - var ret string - return ret - } - return *o.Method -} - -// GetMethodOk returns a tuple with the Method field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPRequest) GetMethodOk() (*string, bool) { - if o == nil || isNil(o.Method) { - return nil, false - } - return o.Method, true -} - -// HasMethod returns a boolean if a field has been set. -func (o *HTTPRequest) HasMethod() bool { - if o != nil && !isNil(o.Method) { - return true - } - - return false -} - -// SetMethod gets a reference to the given string and assigns it to the Method field. -func (o *HTTPRequest) SetMethod(v string) { - o.Method = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *HTTPRequest) GetHeaders() []HTTPHeader { - if o == nil || isNil(o.Headers) { - var ret []HTTPHeader - return ret - } - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPRequest) GetHeadersOk() ([]HTTPHeader, bool) { - if o == nil || isNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *HTTPRequest) HasHeaders() bool { - if o != nil && !isNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []HTTPHeader and assigns it to the Headers field. -func (o *HTTPRequest) SetHeaders(v []HTTPHeader) { - o.Headers = v -} - -// GetBody returns the Body field value if set, zero value otherwise. -func (o *HTTPRequest) GetBody() string { - if o == nil || isNil(o.Body) { - var ret string - return ret - } - return *o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPRequest) GetBodyOk() (*string, bool) { - if o == nil || isNil(o.Body) { - return nil, false - } - return o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *HTTPRequest) HasBody() bool { - if o != nil && !isNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given string and assigns it to the Body field. -func (o *HTTPRequest) SetBody(v string) { - o.Body = &v -} - -// GetAuth returns the Auth field value if set, zero value otherwise. -func (o *HTTPRequest) GetAuth() HTTPAuth { - if o == nil || isNil(o.Auth) { - var ret HTTPAuth - return ret - } - return *o.Auth -} - -// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPRequest) GetAuthOk() (*HTTPAuth, bool) { - if o == nil || isNil(o.Auth) { - return nil, false - } - return o.Auth, true -} - -// HasAuth returns a boolean if a field has been set. -func (o *HTTPRequest) HasAuth() bool { - if o != nil && !isNil(o.Auth) { - return true - } - - return false -} - -// SetAuth gets a reference to the given HTTPAuth and assigns it to the Auth field. -func (o *HTTPRequest) SetAuth(v HTTPAuth) { - o.Auth = &v -} - -// GetSslVerification returns the SslVerification field value if set, zero value otherwise. -func (o *HTTPRequest) GetSslVerification() bool { - if o == nil || isNil(o.SslVerification) { - var ret bool - return ret - } - return *o.SslVerification -} - -// GetSslVerificationOk returns a tuple with the SslVerification field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPRequest) GetSslVerificationOk() (*bool, bool) { - if o == nil || isNil(o.SslVerification) { - return nil, false - } - return o.SslVerification, true -} - -// HasSslVerification returns a boolean if a field has been set. -func (o *HTTPRequest) HasSslVerification() bool { - if o != nil && !isNil(o.SslVerification) { - return true - } - - return false -} - -// SetSslVerification gets a reference to the given bool and assigns it to the SslVerification field. -func (o *HTTPRequest) SetSslVerification(v bool) { - o.SslVerification = &v -} - -func (o HTTPRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Url) { - toSerialize["url"] = o.Url - } - if !isNil(o.Method) { - toSerialize["method"] = o.Method - } - if !isNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !isNil(o.Body) { - toSerialize["body"] = o.Body - } - if !isNil(o.Auth) { - toSerialize["auth"] = o.Auth - } - if !isNil(o.SslVerification) { - toSerialize["sslVerification"] = o.SslVerification - } - return toSerialize, nil -} - -type NullableHTTPRequest struct { - value *HTTPRequest - isSet bool -} - -func (v NullableHTTPRequest) Get() *HTTPRequest { - return v.value -} - -func (v *NullableHTTPRequest) Set(val *HTTPRequest) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPRequest(val *HTTPRequest) *NullableHTTPRequest { - return &NullableHTTPRequest{value: val, isSet: true} -} - -func (v NullableHTTPRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_http_response.go b/openapi/model_http_response.go deleted file mode 100644 index dff4a4a..0000000 --- a/openapi/model_http_response.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the HTTPResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPResponse{} - -// HTTPResponse struct for HTTPResponse -type HTTPResponse struct { - Status *string `json:"status,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty"` - Headers []HTTPHeader `json:"headers,omitempty"` - Body *string `json:"body,omitempty"` -} - -// NewHTTPResponse instantiates a new HTTPResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPResponse() *HTTPResponse { - this := HTTPResponse{} - return &this -} - -// NewHTTPResponseWithDefaults instantiates a new HTTPResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPResponseWithDefaults() *HTTPResponse { - this := HTTPResponse{} - return &this -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *HTTPResponse) GetStatus() string { - if o == nil || isNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPResponse) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *HTTPResponse) HasStatus() bool { - if o != nil && !isNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *HTTPResponse) SetStatus(v string) { - o.Status = &v -} - -// GetStatusCode returns the StatusCode field value if set, zero value otherwise. -func (o *HTTPResponse) GetStatusCode() int32 { - if o == nil || isNil(o.StatusCode) { - var ret int32 - return ret - } - return *o.StatusCode -} - -// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPResponse) GetStatusCodeOk() (*int32, bool) { - if o == nil || isNil(o.StatusCode) { - return nil, false - } - return o.StatusCode, true -} - -// HasStatusCode returns a boolean if a field has been set. -func (o *HTTPResponse) HasStatusCode() bool { - if o != nil && !isNil(o.StatusCode) { - return true - } - - return false -} - -// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. -func (o *HTTPResponse) SetStatusCode(v int32) { - o.StatusCode = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *HTTPResponse) GetHeaders() []HTTPHeader { - if o == nil || isNil(o.Headers) { - var ret []HTTPHeader - return ret - } - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPResponse) GetHeadersOk() ([]HTTPHeader, bool) { - if o == nil || isNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *HTTPResponse) HasHeaders() bool { - if o != nil && !isNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []HTTPHeader and assigns it to the Headers field. -func (o *HTTPResponse) SetHeaders(v []HTTPHeader) { - o.Headers = v -} - -// GetBody returns the Body field value if set, zero value otherwise. -func (o *HTTPResponse) GetBody() string { - if o == nil || isNil(o.Body) { - var ret string - return ret - } - return *o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPResponse) GetBodyOk() (*string, bool) { - if o == nil || isNil(o.Body) { - return nil, false - } - return o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *HTTPResponse) HasBody() bool { - if o != nil && !isNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given string and assigns it to the Body field. -func (o *HTTPResponse) SetBody(v string) { - o.Body = &v -} - -func (o HTTPResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Status) { - toSerialize["status"] = o.Status - } - if !isNil(o.StatusCode) { - toSerialize["statusCode"] = o.StatusCode - } - if !isNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !isNil(o.Body) { - toSerialize["body"] = o.Body - } - return toSerialize, nil -} - -type NullableHTTPResponse struct { - value *HTTPResponse - isSet bool -} - -func (v NullableHTTPResponse) Get() *HTTPResponse { - return v.value -} - -func (v *NullableHTTPResponse) Set(val *HTTPResponse) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPResponse(val *HTTPResponse) *NullableHTTPResponse { - return &NullableHTTPResponse{value: val, isSet: true} -} - -func (v NullableHTTPResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_kafka_authentication.go b/openapi/model_kafka_authentication.go deleted file mode 100644 index 735f711..0000000 --- a/openapi/model_kafka_authentication.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the KafkaAuthentication type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &KafkaAuthentication{} - -// KafkaAuthentication struct for KafkaAuthentication -type KafkaAuthentication struct { - Type *string `json:"type,omitempty"` - Plain *HTTPAuthBasic `json:"plain,omitempty"` -} - -// NewKafkaAuthentication instantiates a new KafkaAuthentication object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewKafkaAuthentication() *KafkaAuthentication { - this := KafkaAuthentication{} - return &this -} - -// NewKafkaAuthenticationWithDefaults instantiates a new KafkaAuthentication object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewKafkaAuthenticationWithDefaults() *KafkaAuthentication { - this := KafkaAuthentication{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *KafkaAuthentication) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaAuthentication) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *KafkaAuthentication) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *KafkaAuthentication) SetType(v string) { - o.Type = &v -} - -// GetPlain returns the Plain field value if set, zero value otherwise. -func (o *KafkaAuthentication) GetPlain() HTTPAuthBasic { - if o == nil || isNil(o.Plain) { - var ret HTTPAuthBasic - return ret - } - return *o.Plain -} - -// GetPlainOk returns a tuple with the Plain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaAuthentication) GetPlainOk() (*HTTPAuthBasic, bool) { - if o == nil || isNil(o.Plain) { - return nil, false - } - return o.Plain, true -} - -// HasPlain returns a boolean if a field has been set. -func (o *KafkaAuthentication) HasPlain() bool { - if o != nil && !isNil(o.Plain) { - return true - } - - return false -} - -// SetPlain gets a reference to the given HTTPAuthBasic and assigns it to the Plain field. -func (o *KafkaAuthentication) SetPlain(v HTTPAuthBasic) { - o.Plain = &v -} - -func (o KafkaAuthentication) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o KafkaAuthentication) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Plain) { - toSerialize["plain"] = o.Plain - } - return toSerialize, nil -} - -type NullableKafkaAuthentication struct { - value *KafkaAuthentication - isSet bool -} - -func (v NullableKafkaAuthentication) Get() *KafkaAuthentication { - return v.value -} - -func (v *NullableKafkaAuthentication) Set(val *KafkaAuthentication) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaAuthentication) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaAuthentication) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaAuthentication(val *KafkaAuthentication) *NullableKafkaAuthentication { - return &NullableKafkaAuthentication{value: val, isSet: true} -} - -func (v NullableKafkaAuthentication) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaAuthentication) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_kafka_message_header.go b/openapi/model_kafka_message_header.go deleted file mode 100644 index 9615e4d..0000000 --- a/openapi/model_kafka_message_header.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the KafkaMessageHeader type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &KafkaMessageHeader{} - -// KafkaMessageHeader struct for KafkaMessageHeader -type KafkaMessageHeader struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewKafkaMessageHeader instantiates a new KafkaMessageHeader object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewKafkaMessageHeader() *KafkaMessageHeader { - this := KafkaMessageHeader{} - return &this -} - -// NewKafkaMessageHeaderWithDefaults instantiates a new KafkaMessageHeader object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewKafkaMessageHeaderWithDefaults() *KafkaMessageHeader { - this := KafkaMessageHeader{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *KafkaMessageHeader) GetKey() string { - if o == nil || isNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaMessageHeader) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *KafkaMessageHeader) HasKey() bool { - if o != nil && !isNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *KafkaMessageHeader) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *KafkaMessageHeader) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaMessageHeader) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *KafkaMessageHeader) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *KafkaMessageHeader) SetValue(v string) { - o.Value = &v -} - -func (o KafkaMessageHeader) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o KafkaMessageHeader) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Key) { - toSerialize["key"] = o.Key - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableKafkaMessageHeader struct { - value *KafkaMessageHeader - isSet bool -} - -func (v NullableKafkaMessageHeader) Get() *KafkaMessageHeader { - return v.value -} - -func (v *NullableKafkaMessageHeader) Set(val *KafkaMessageHeader) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaMessageHeader) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaMessageHeader) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaMessageHeader(val *KafkaMessageHeader) *NullableKafkaMessageHeader { - return &NullableKafkaMessageHeader{value: val, isSet: true} -} - -func (v NullableKafkaMessageHeader) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaMessageHeader) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_kafka_request.go b/openapi/model_kafka_request.go deleted file mode 100644 index ee94a24..0000000 --- a/openapi/model_kafka_request.go +++ /dev/null @@ -1,344 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the KafkaRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &KafkaRequest{} - -// KafkaRequest struct for KafkaRequest -type KafkaRequest struct { - BrokerUrls []string `json:"brokerUrls,omitempty"` - Topic *string `json:"topic,omitempty"` - Authentication *KafkaAuthentication `json:"authentication,omitempty"` - SslVerification *bool `json:"sslVerification,omitempty"` - Headers []KafkaMessageHeader `json:"headers,omitempty"` - MessageKey *string `json:"messageKey,omitempty"` - MessageValue *string `json:"messageValue,omitempty"` -} - -// NewKafkaRequest instantiates a new KafkaRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewKafkaRequest() *KafkaRequest { - this := KafkaRequest{} - var sslVerification bool = false - this.SslVerification = &sslVerification - return &this -} - -// NewKafkaRequestWithDefaults instantiates a new KafkaRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewKafkaRequestWithDefaults() *KafkaRequest { - this := KafkaRequest{} - var sslVerification bool = false - this.SslVerification = &sslVerification - return &this -} - -// GetBrokerUrls returns the BrokerUrls field value if set, zero value otherwise. -func (o *KafkaRequest) GetBrokerUrls() []string { - if o == nil || isNil(o.BrokerUrls) { - var ret []string - return ret - } - return o.BrokerUrls -} - -// GetBrokerUrlsOk returns a tuple with the BrokerUrls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetBrokerUrlsOk() ([]string, bool) { - if o == nil || isNil(o.BrokerUrls) { - return nil, false - } - return o.BrokerUrls, true -} - -// HasBrokerUrls returns a boolean if a field has been set. -func (o *KafkaRequest) HasBrokerUrls() bool { - if o != nil && !isNil(o.BrokerUrls) { - return true - } - - return false -} - -// SetBrokerUrls gets a reference to the given []string and assigns it to the BrokerUrls field. -func (o *KafkaRequest) SetBrokerUrls(v []string) { - o.BrokerUrls = v -} - -// GetTopic returns the Topic field value if set, zero value otherwise. -func (o *KafkaRequest) GetTopic() string { - if o == nil || isNil(o.Topic) { - var ret string - return ret - } - return *o.Topic -} - -// GetTopicOk returns a tuple with the Topic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetTopicOk() (*string, bool) { - if o == nil || isNil(o.Topic) { - return nil, false - } - return o.Topic, true -} - -// HasTopic returns a boolean if a field has been set. -func (o *KafkaRequest) HasTopic() bool { - if o != nil && !isNil(o.Topic) { - return true - } - - return false -} - -// SetTopic gets a reference to the given string and assigns it to the Topic field. -func (o *KafkaRequest) SetTopic(v string) { - o.Topic = &v -} - -// GetAuthentication returns the Authentication field value if set, zero value otherwise. -func (o *KafkaRequest) GetAuthentication() KafkaAuthentication { - if o == nil || isNil(o.Authentication) { - var ret KafkaAuthentication - return ret - } - return *o.Authentication -} - -// GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetAuthenticationOk() (*KafkaAuthentication, bool) { - if o == nil || isNil(o.Authentication) { - return nil, false - } - return o.Authentication, true -} - -// HasAuthentication returns a boolean if a field has been set. -func (o *KafkaRequest) HasAuthentication() bool { - if o != nil && !isNil(o.Authentication) { - return true - } - - return false -} - -// SetAuthentication gets a reference to the given KafkaAuthentication and assigns it to the Authentication field. -func (o *KafkaRequest) SetAuthentication(v KafkaAuthentication) { - o.Authentication = &v -} - -// GetSslVerification returns the SslVerification field value if set, zero value otherwise. -func (o *KafkaRequest) GetSslVerification() bool { - if o == nil || isNil(o.SslVerification) { - var ret bool - return ret - } - return *o.SslVerification -} - -// GetSslVerificationOk returns a tuple with the SslVerification field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetSslVerificationOk() (*bool, bool) { - if o == nil || isNil(o.SslVerification) { - return nil, false - } - return o.SslVerification, true -} - -// HasSslVerification returns a boolean if a field has been set. -func (o *KafkaRequest) HasSslVerification() bool { - if o != nil && !isNil(o.SslVerification) { - return true - } - - return false -} - -// SetSslVerification gets a reference to the given bool and assigns it to the SslVerification field. -func (o *KafkaRequest) SetSslVerification(v bool) { - o.SslVerification = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *KafkaRequest) GetHeaders() []KafkaMessageHeader { - if o == nil || isNil(o.Headers) { - var ret []KafkaMessageHeader - return ret - } - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetHeadersOk() ([]KafkaMessageHeader, bool) { - if o == nil || isNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *KafkaRequest) HasHeaders() bool { - if o != nil && !isNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []KafkaMessageHeader and assigns it to the Headers field. -func (o *KafkaRequest) SetHeaders(v []KafkaMessageHeader) { - o.Headers = v -} - -// GetMessageKey returns the MessageKey field value if set, zero value otherwise. -func (o *KafkaRequest) GetMessageKey() string { - if o == nil || isNil(o.MessageKey) { - var ret string - return ret - } - return *o.MessageKey -} - -// GetMessageKeyOk returns a tuple with the MessageKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMessageKeyOk() (*string, bool) { - if o == nil || isNil(o.MessageKey) { - return nil, false - } - return o.MessageKey, true -} - -// HasMessageKey returns a boolean if a field has been set. -func (o *KafkaRequest) HasMessageKey() bool { - if o != nil && !isNil(o.MessageKey) { - return true - } - - return false -} - -// SetMessageKey gets a reference to the given string and assigns it to the MessageKey field. -func (o *KafkaRequest) SetMessageKey(v string) { - o.MessageKey = &v -} - -// GetMessageValue returns the MessageValue field value if set, zero value otherwise. -func (o *KafkaRequest) GetMessageValue() string { - if o == nil || isNil(o.MessageValue) { - var ret string - return ret - } - return *o.MessageValue -} - -// GetMessageValueOk returns a tuple with the MessageValue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMessageValueOk() (*string, bool) { - if o == nil || isNil(o.MessageValue) { - return nil, false - } - return o.MessageValue, true -} - -// HasMessageValue returns a boolean if a field has been set. -func (o *KafkaRequest) HasMessageValue() bool { - if o != nil && !isNil(o.MessageValue) { - return true - } - - return false -} - -// SetMessageValue gets a reference to the given string and assigns it to the MessageValue field. -func (o *KafkaRequest) SetMessageValue(v string) { - o.MessageValue = &v -} - -func (o KafkaRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o KafkaRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BrokerUrls) { - toSerialize["brokerUrls"] = o.BrokerUrls - } - if !isNil(o.Topic) { - toSerialize["topic"] = o.Topic - } - if !isNil(o.Authentication) { - toSerialize["authentication"] = o.Authentication - } - if !isNil(o.SslVerification) { - toSerialize["sslVerification"] = o.SslVerification - } - if !isNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !isNil(o.MessageKey) { - toSerialize["messageKey"] = o.MessageKey - } - if !isNil(o.MessageValue) { - toSerialize["messageValue"] = o.MessageValue - } - return toSerialize, nil -} - -type NullableKafkaRequest struct { - value *KafkaRequest - isSet bool -} - -func (v NullableKafkaRequest) Get() *KafkaRequest { - return v.value -} - -func (v *NullableKafkaRequest) Set(val *KafkaRequest) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaRequest(val *KafkaRequest) *NullableKafkaRequest { - return &NullableKafkaRequest{value: val, isSet: true} -} - -func (v NullableKafkaRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_kafka_response.go b/openapi/model_kafka_response.go deleted file mode 100644 index f47e3e3..0000000 --- a/openapi/model_kafka_response.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the KafkaResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &KafkaResponse{} - -// KafkaResponse struct for KafkaResponse -type KafkaResponse struct { - Partition *string `json:"partition,omitempty"` - Offset *string `json:"offset,omitempty"` -} - -// NewKafkaResponse instantiates a new KafkaResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewKafkaResponse() *KafkaResponse { - this := KafkaResponse{} - return &this -} - -// NewKafkaResponseWithDefaults instantiates a new KafkaResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewKafkaResponseWithDefaults() *KafkaResponse { - this := KafkaResponse{} - return &this -} - -// GetPartition returns the Partition field value if set, zero value otherwise. -func (o *KafkaResponse) GetPartition() string { - if o == nil || isNil(o.Partition) { - var ret string - return ret - } - return *o.Partition -} - -// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaResponse) GetPartitionOk() (*string, bool) { - if o == nil || isNil(o.Partition) { - return nil, false - } - return o.Partition, true -} - -// HasPartition returns a boolean if a field has been set. -func (o *KafkaResponse) HasPartition() bool { - if o != nil && !isNil(o.Partition) { - return true - } - - return false -} - -// SetPartition gets a reference to the given string and assigns it to the Partition field. -func (o *KafkaResponse) SetPartition(v string) { - o.Partition = &v -} - -// GetOffset returns the Offset field value if set, zero value otherwise. -func (o *KafkaResponse) GetOffset() string { - if o == nil || isNil(o.Offset) { - var ret string - return ret - } - return *o.Offset -} - -// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaResponse) GetOffsetOk() (*string, bool) { - if o == nil || isNil(o.Offset) { - return nil, false - } - return o.Offset, true -} - -// HasOffset returns a boolean if a field has been set. -func (o *KafkaResponse) HasOffset() bool { - if o != nil && !isNil(o.Offset) { - return true - } - - return false -} - -// SetOffset gets a reference to the given string and assigns it to the Offset field. -func (o *KafkaResponse) SetOffset(v string) { - o.Offset = &v -} - -func (o KafkaResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o KafkaResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Partition) { - toSerialize["partition"] = o.Partition - } - if !isNil(o.Offset) { - toSerialize["offset"] = o.Offset - } - return toSerialize, nil -} - -type NullableKafkaResponse struct { - value *KafkaResponse - isSet bool -} - -func (v NullableKafkaResponse) Get() *KafkaResponse { - return v.value -} - -func (v *NullableKafkaResponse) Set(val *KafkaResponse) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaResponse(val *KafkaResponse) *NullableKafkaResponse { - return &NullableKafkaResponse{value: val, isSet: true} -} - -func (v NullableKafkaResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_resource.go b/openapi/model_linter_resource.go deleted file mode 100644 index 2a8e208..0000000 --- a/openapi/model_linter_resource.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResource{} - -// LinterResource struct for LinterResource -type LinterResource struct { - Type *string `json:"type,omitempty"` - Spec *LinterResourceSpec `json:"spec,omitempty"` -} - -// NewLinterResource instantiates a new LinterResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResource() *LinterResource { - this := LinterResource{} - return &this -} - -// NewLinterResourceWithDefaults instantiates a new LinterResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResourceWithDefaults() *LinterResource { - this := LinterResource{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *LinterResource) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *LinterResource) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *LinterResource) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *LinterResource) GetSpec() LinterResourceSpec { - if o == nil || isNil(o.Spec) { - var ret LinterResourceSpec - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResource) GetSpecOk() (*LinterResourceSpec, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *LinterResource) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given LinterResourceSpec and assigns it to the Spec field. -func (o *LinterResource) SetSpec(v LinterResourceSpec) { - o.Spec = &v -} - -func (o LinterResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableLinterResource struct { - value *LinterResource - isSet bool -} - -func (v NullableLinterResource) Get() *LinterResource { - return v.value -} - -func (v *NullableLinterResource) Set(val *LinterResource) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResource) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResource(val *LinterResource) *NullableLinterResource { - return &NullableLinterResource{value: val, isSet: true} -} - -func (v NullableLinterResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_resource_list.go b/openapi/model_linter_resource_list.go deleted file mode 100644 index 1bd0bdf..0000000 --- a/openapi/model_linter_resource_list.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResourceList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResourceList{} - -// LinterResourceList struct for LinterResourceList -type LinterResourceList struct { - Items []LinterResource `json:"items,omitempty"` -} - -// NewLinterResourceList instantiates a new LinterResourceList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResourceList() *LinterResourceList { - this := LinterResourceList{} - return &this -} - -// NewLinterResourceListWithDefaults instantiates a new LinterResourceList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResourceListWithDefaults() *LinterResourceList { - this := LinterResourceList{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *LinterResourceList) GetItems() []LinterResource { - if o == nil || isNil(o.Items) { - var ret []LinterResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceList) GetItemsOk() ([]LinterResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *LinterResourceList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []LinterResource and assigns it to the Items field. -func (o *LinterResourceList) SetItems(v []LinterResource) { - o.Items = v -} - -func (o LinterResourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResourceList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableLinterResourceList struct { - value *LinterResourceList - isSet bool -} - -func (v NullableLinterResourceList) Get() *LinterResourceList { - return v.value -} - -func (v *NullableLinterResourceList) Set(val *LinterResourceList) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResourceList) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResourceList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResourceList(val *LinterResourceList) *NullableLinterResourceList { - return &NullableLinterResourceList{value: val, isSet: true} -} - -func (v NullableLinterResourceList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResourceList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_resource_plugin.go b/openapi/model_linter_resource_plugin.go deleted file mode 100644 index 59706a3..0000000 --- a/openapi/model_linter_resource_plugin.go +++ /dev/null @@ -1,264 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResourcePlugin type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResourcePlugin{} - -// LinterResourcePlugin struct for LinterResourcePlugin -type LinterResourcePlugin struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Rules []LinterResourceRule `json:"rules,omitempty"` -} - -// NewLinterResourcePlugin instantiates a new LinterResourcePlugin object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResourcePlugin() *LinterResourcePlugin { - this := LinterResourcePlugin{} - return &this -} - -// NewLinterResourcePluginWithDefaults instantiates a new LinterResourcePlugin object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResourcePluginWithDefaults() *LinterResourcePlugin { - this := LinterResourcePlugin{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *LinterResourcePlugin) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourcePlugin) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *LinterResourcePlugin) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *LinterResourcePlugin) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *LinterResourcePlugin) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourcePlugin) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *LinterResourcePlugin) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *LinterResourcePlugin) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *LinterResourcePlugin) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourcePlugin) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *LinterResourcePlugin) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *LinterResourcePlugin) SetDescription(v string) { - o.Description = &v -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *LinterResourcePlugin) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourcePlugin) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *LinterResourcePlugin) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *LinterResourcePlugin) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetRules returns the Rules field value if set, zero value otherwise. -func (o *LinterResourcePlugin) GetRules() []LinterResourceRule { - if o == nil || isNil(o.Rules) { - var ret []LinterResourceRule - return ret - } - return o.Rules -} - -// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourcePlugin) GetRulesOk() ([]LinterResourceRule, bool) { - if o == nil || isNil(o.Rules) { - return nil, false - } - return o.Rules, true -} - -// HasRules returns a boolean if a field has been set. -func (o *LinterResourcePlugin) HasRules() bool { - if o != nil && !isNil(o.Rules) { - return true - } - - return false -} - -// SetRules gets a reference to the given []LinterResourceRule and assigns it to the Rules field. -func (o *LinterResourcePlugin) SetRules(v []LinterResourceRule) { - o.Rules = v -} - -func (o LinterResourcePlugin) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResourcePlugin) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - // skip: name is readOnly - // skip: description is readOnly - if !isNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - if !isNil(o.Rules) { - toSerialize["rules"] = o.Rules - } - return toSerialize, nil -} - -type NullableLinterResourcePlugin struct { - value *LinterResourcePlugin - isSet bool -} - -func (v NullableLinterResourcePlugin) Get() *LinterResourcePlugin { - return v.value -} - -func (v *NullableLinterResourcePlugin) Set(val *LinterResourcePlugin) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResourcePlugin) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResourcePlugin) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResourcePlugin(val *LinterResourcePlugin) *NullableLinterResourcePlugin { - return &NullableLinterResourcePlugin{value: val, isSet: true} -} - -func (v NullableLinterResourcePlugin) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResourcePlugin) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_resource_rule.go b/openapi/model_linter_resource_rule.go deleted file mode 100644 index d089be5..0000000 --- a/openapi/model_linter_resource_rule.go +++ /dev/null @@ -1,332 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResourceRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResourceRule{} - -// LinterResourceRule struct for LinterResourceRule -type LinterResourceRule struct { - Id *string `json:"id,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - ErrorDescription *string `json:"errorDescription,omitempty"` - Tips []string `json:"tips,omitempty"` - ErrorLevel *string `json:"errorLevel,omitempty"` -} - -// NewLinterResourceRule instantiates a new LinterResourceRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResourceRule() *LinterResourceRule { - this := LinterResourceRule{} - return &this -} - -// NewLinterResourceRuleWithDefaults instantiates a new LinterResourceRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResourceRuleWithDefaults() *LinterResourceRule { - this := LinterResourceRule{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *LinterResourceRule) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *LinterResourceRule) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *LinterResourceRule) SetId(v string) { - o.Id = &v -} - -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *LinterResourceRule) GetWeight() int32 { - if o == nil || isNil(o.Weight) { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetWeightOk() (*int32, bool) { - if o == nil || isNil(o.Weight) { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *LinterResourceRule) HasWeight() bool { - if o != nil && !isNil(o.Weight) { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *LinterResourceRule) SetWeight(v int32) { - o.Weight = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *LinterResourceRule) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *LinterResourceRule) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *LinterResourceRule) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *LinterResourceRule) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *LinterResourceRule) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *LinterResourceRule) SetDescription(v string) { - o.Description = &v -} - -// GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. -func (o *LinterResourceRule) GetErrorDescription() string { - if o == nil || isNil(o.ErrorDescription) { - var ret string - return ret - } - return *o.ErrorDescription -} - -// GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetErrorDescriptionOk() (*string, bool) { - if o == nil || isNil(o.ErrorDescription) { - return nil, false - } - return o.ErrorDescription, true -} - -// HasErrorDescription returns a boolean if a field has been set. -func (o *LinterResourceRule) HasErrorDescription() bool { - if o != nil && !isNil(o.ErrorDescription) { - return true - } - - return false -} - -// SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field. -func (o *LinterResourceRule) SetErrorDescription(v string) { - o.ErrorDescription = &v -} - -// GetTips returns the Tips field value if set, zero value otherwise. -func (o *LinterResourceRule) GetTips() []string { - if o == nil || isNil(o.Tips) { - var ret []string - return ret - } - return o.Tips -} - -// GetTipsOk returns a tuple with the Tips field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetTipsOk() ([]string, bool) { - if o == nil || isNil(o.Tips) { - return nil, false - } - return o.Tips, true -} - -// HasTips returns a boolean if a field has been set. -func (o *LinterResourceRule) HasTips() bool { - if o != nil && !isNil(o.Tips) { - return true - } - - return false -} - -// SetTips gets a reference to the given []string and assigns it to the Tips field. -func (o *LinterResourceRule) SetTips(v []string) { - o.Tips = v -} - -// GetErrorLevel returns the ErrorLevel field value if set, zero value otherwise. -func (o *LinterResourceRule) GetErrorLevel() string { - if o == nil || isNil(o.ErrorLevel) { - var ret string - return ret - } - return *o.ErrorLevel -} - -// GetErrorLevelOk returns a tuple with the ErrorLevel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceRule) GetErrorLevelOk() (*string, bool) { - if o == nil || isNil(o.ErrorLevel) { - return nil, false - } - return o.ErrorLevel, true -} - -// HasErrorLevel returns a boolean if a field has been set. -func (o *LinterResourceRule) HasErrorLevel() bool { - if o != nil && !isNil(o.ErrorLevel) { - return true - } - - return false -} - -// SetErrorLevel gets a reference to the given string and assigns it to the ErrorLevel field. -func (o *LinterResourceRule) SetErrorLevel(v string) { - o.ErrorLevel = &v -} - -func (o LinterResourceRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResourceRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Weight) { - toSerialize["weight"] = o.Weight - } - // skip: name is readOnly - // skip: description is readOnly - // skip: errorDescription is readOnly - // skip: tips is readOnly - if !isNil(o.ErrorLevel) { - toSerialize["errorLevel"] = o.ErrorLevel - } - return toSerialize, nil -} - -type NullableLinterResourceRule struct { - value *LinterResourceRule - isSet bool -} - -func (v NullableLinterResourceRule) Get() *LinterResourceRule { - return v.value -} - -func (v *NullableLinterResourceRule) Set(val *LinterResourceRule) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResourceRule) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResourceRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResourceRule(val *LinterResourceRule) *NullableLinterResourceRule { - return &NullableLinterResourceRule{value: val, isSet: true} -} - -func (v NullableLinterResourceRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResourceRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_resource_spec.go b/openapi/model_linter_resource_spec.go deleted file mode 100644 index 97004d7..0000000 --- a/openapi/model_linter_resource_spec.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResourceSpec type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResourceSpec{} - -// LinterResourceSpec struct for LinterResourceSpec -type LinterResourceSpec struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - MinimumScore *int32 `json:"minimumScore,omitempty"` - Plugins []LinterResourcePlugin `json:"plugins,omitempty"` -} - -// NewLinterResourceSpec instantiates a new LinterResourceSpec object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResourceSpec() *LinterResourceSpec { - this := LinterResourceSpec{} - return &this -} - -// NewLinterResourceSpecWithDefaults instantiates a new LinterResourceSpec object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResourceSpecWithDefaults() *LinterResourceSpec { - this := LinterResourceSpec{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *LinterResourceSpec) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceSpec) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *LinterResourceSpec) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *LinterResourceSpec) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *LinterResourceSpec) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceSpec) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *LinterResourceSpec) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *LinterResourceSpec) SetName(v string) { - o.Name = &v -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *LinterResourceSpec) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceSpec) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *LinterResourceSpec) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *LinterResourceSpec) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetMinimumScore returns the MinimumScore field value if set, zero value otherwise. -func (o *LinterResourceSpec) GetMinimumScore() int32 { - if o == nil || isNil(o.MinimumScore) { - var ret int32 - return ret - } - return *o.MinimumScore -} - -// GetMinimumScoreOk returns a tuple with the MinimumScore field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceSpec) GetMinimumScoreOk() (*int32, bool) { - if o == nil || isNil(o.MinimumScore) { - return nil, false - } - return o.MinimumScore, true -} - -// HasMinimumScore returns a boolean if a field has been set. -func (o *LinterResourceSpec) HasMinimumScore() bool { - if o != nil && !isNil(o.MinimumScore) { - return true - } - - return false -} - -// SetMinimumScore gets a reference to the given int32 and assigns it to the MinimumScore field. -func (o *LinterResourceSpec) SetMinimumScore(v int32) { - o.MinimumScore = &v -} - -// GetPlugins returns the Plugins field value if set, zero value otherwise. -func (o *LinterResourceSpec) GetPlugins() []LinterResourcePlugin { - if o == nil || isNil(o.Plugins) { - var ret []LinterResourcePlugin - return ret - } - return o.Plugins -} - -// GetPluginsOk returns a tuple with the Plugins field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResourceSpec) GetPluginsOk() ([]LinterResourcePlugin, bool) { - if o == nil || isNil(o.Plugins) { - return nil, false - } - return o.Plugins, true -} - -// HasPlugins returns a boolean if a field has been set. -func (o *LinterResourceSpec) HasPlugins() bool { - if o != nil && !isNil(o.Plugins) { - return true - } - - return false -} - -// SetPlugins gets a reference to the given []LinterResourcePlugin and assigns it to the Plugins field. -func (o *LinterResourceSpec) SetPlugins(v []LinterResourcePlugin) { - o.Plugins = v -} - -func (o LinterResourceSpec) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResourceSpec) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - if !isNil(o.MinimumScore) { - toSerialize["minimumScore"] = o.MinimumScore - } - if !isNil(o.Plugins) { - toSerialize["plugins"] = o.Plugins - } - return toSerialize, nil -} - -type NullableLinterResourceSpec struct { - value *LinterResourceSpec - isSet bool -} - -func (v NullableLinterResourceSpec) Get() *LinterResourceSpec { - return v.value -} - -func (v *NullableLinterResourceSpec) Set(val *LinterResourceSpec) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResourceSpec) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResourceSpec) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResourceSpec(val *LinterResourceSpec) *NullableLinterResourceSpec { - return &NullableLinterResourceSpec{value: val, isSet: true} -} - -func (v NullableLinterResourceSpec) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResourceSpec) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_result.go b/openapi/model_linter_result.go deleted file mode 100644 index c3cb13f..0000000 --- a/openapi/model_linter_result.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResult{} - -// LinterResult struct for LinterResult -type LinterResult struct { - MinimumScore *int32 `json:"minimumScore,omitempty"` - Passed *bool `json:"passed,omitempty"` - Score *int32 `json:"score,omitempty"` - Plugins []LinterResultPlugin `json:"plugins,omitempty"` -} - -// NewLinterResult instantiates a new LinterResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResult() *LinterResult { - this := LinterResult{} - return &this -} - -// NewLinterResultWithDefaults instantiates a new LinterResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResultWithDefaults() *LinterResult { - this := LinterResult{} - return &this -} - -// GetMinimumScore returns the MinimumScore field value if set, zero value otherwise. -func (o *LinterResult) GetMinimumScore() int32 { - if o == nil || isNil(o.MinimumScore) { - var ret int32 - return ret - } - return *o.MinimumScore -} - -// GetMinimumScoreOk returns a tuple with the MinimumScore field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResult) GetMinimumScoreOk() (*int32, bool) { - if o == nil || isNil(o.MinimumScore) { - return nil, false - } - return o.MinimumScore, true -} - -// HasMinimumScore returns a boolean if a field has been set. -func (o *LinterResult) HasMinimumScore() bool { - if o != nil && !isNil(o.MinimumScore) { - return true - } - - return false -} - -// SetMinimumScore gets a reference to the given int32 and assigns it to the MinimumScore field. -func (o *LinterResult) SetMinimumScore(v int32) { - o.MinimumScore = &v -} - -// GetPassed returns the Passed field value if set, zero value otherwise. -func (o *LinterResult) GetPassed() bool { - if o == nil || isNil(o.Passed) { - var ret bool - return ret - } - return *o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResult) GetPassedOk() (*bool, bool) { - if o == nil || isNil(o.Passed) { - return nil, false - } - return o.Passed, true -} - -// HasPassed returns a boolean if a field has been set. -func (o *LinterResult) HasPassed() bool { - if o != nil && !isNil(o.Passed) { - return true - } - - return false -} - -// SetPassed gets a reference to the given bool and assigns it to the Passed field. -func (o *LinterResult) SetPassed(v bool) { - o.Passed = &v -} - -// GetScore returns the Score field value if set, zero value otherwise. -func (o *LinterResult) GetScore() int32 { - if o == nil || isNil(o.Score) { - var ret int32 - return ret - } - return *o.Score -} - -// GetScoreOk returns a tuple with the Score field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResult) GetScoreOk() (*int32, bool) { - if o == nil || isNil(o.Score) { - return nil, false - } - return o.Score, true -} - -// HasScore returns a boolean if a field has been set. -func (o *LinterResult) HasScore() bool { - if o != nil && !isNil(o.Score) { - return true - } - - return false -} - -// SetScore gets a reference to the given int32 and assigns it to the Score field. -func (o *LinterResult) SetScore(v int32) { - o.Score = &v -} - -// GetPlugins returns the Plugins field value if set, zero value otherwise. -func (o *LinterResult) GetPlugins() []LinterResultPlugin { - if o == nil || isNil(o.Plugins) { - var ret []LinterResultPlugin - return ret - } - return o.Plugins -} - -// GetPluginsOk returns a tuple with the Plugins field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResult) GetPluginsOk() ([]LinterResultPlugin, bool) { - if o == nil || isNil(o.Plugins) { - return nil, false - } - return o.Plugins, true -} - -// HasPlugins returns a boolean if a field has been set. -func (o *LinterResult) HasPlugins() bool { - if o != nil && !isNil(o.Plugins) { - return true - } - - return false -} - -// SetPlugins gets a reference to the given []LinterResultPlugin and assigns it to the Plugins field. -func (o *LinterResult) SetPlugins(v []LinterResultPlugin) { - o.Plugins = v -} - -func (o LinterResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MinimumScore) { - toSerialize["minimumScore"] = o.MinimumScore - } - if !isNil(o.Passed) { - toSerialize["passed"] = o.Passed - } - if !isNil(o.Score) { - toSerialize["score"] = o.Score - } - if !isNil(o.Plugins) { - toSerialize["plugins"] = o.Plugins - } - return toSerialize, nil -} - -type NullableLinterResult struct { - value *LinterResult - isSet bool -} - -func (v NullableLinterResult) Get() *LinterResult { - return v.value -} - -func (v *NullableLinterResult) Set(val *LinterResult) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResult) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResult(val *LinterResult) *NullableLinterResult { - return &NullableLinterResult{value: val, isSet: true} -} - -func (v NullableLinterResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_result_plugin.go b/openapi/model_linter_result_plugin.go deleted file mode 100644 index 294fc29..0000000 --- a/openapi/model_linter_result_plugin.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResultPlugin type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResultPlugin{} - -// LinterResultPlugin struct for LinterResultPlugin -type LinterResultPlugin struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Passed *bool `json:"passed,omitempty"` - Score *int32 `json:"score,omitempty"` - Rules []LinterResultPluginRule `json:"rules,omitempty"` -} - -// NewLinterResultPlugin instantiates a new LinterResultPlugin object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResultPlugin() *LinterResultPlugin { - this := LinterResultPlugin{} - return &this -} - -// NewLinterResultPluginWithDefaults instantiates a new LinterResultPlugin object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResultPluginWithDefaults() *LinterResultPlugin { - this := LinterResultPlugin{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *LinterResultPlugin) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPlugin) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *LinterResultPlugin) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *LinterResultPlugin) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *LinterResultPlugin) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPlugin) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *LinterResultPlugin) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *LinterResultPlugin) SetDescription(v string) { - o.Description = &v -} - -// GetPassed returns the Passed field value if set, zero value otherwise. -func (o *LinterResultPlugin) GetPassed() bool { - if o == nil || isNil(o.Passed) { - var ret bool - return ret - } - return *o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPlugin) GetPassedOk() (*bool, bool) { - if o == nil || isNil(o.Passed) { - return nil, false - } - return o.Passed, true -} - -// HasPassed returns a boolean if a field has been set. -func (o *LinterResultPlugin) HasPassed() bool { - if o != nil && !isNil(o.Passed) { - return true - } - - return false -} - -// SetPassed gets a reference to the given bool and assigns it to the Passed field. -func (o *LinterResultPlugin) SetPassed(v bool) { - o.Passed = &v -} - -// GetScore returns the Score field value if set, zero value otherwise. -func (o *LinterResultPlugin) GetScore() int32 { - if o == nil || isNil(o.Score) { - var ret int32 - return ret - } - return *o.Score -} - -// GetScoreOk returns a tuple with the Score field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPlugin) GetScoreOk() (*int32, bool) { - if o == nil || isNil(o.Score) { - return nil, false - } - return o.Score, true -} - -// HasScore returns a boolean if a field has been set. -func (o *LinterResultPlugin) HasScore() bool { - if o != nil && !isNil(o.Score) { - return true - } - - return false -} - -// SetScore gets a reference to the given int32 and assigns it to the Score field. -func (o *LinterResultPlugin) SetScore(v int32) { - o.Score = &v -} - -// GetRules returns the Rules field value if set, zero value otherwise. -func (o *LinterResultPlugin) GetRules() []LinterResultPluginRule { - if o == nil || isNil(o.Rules) { - var ret []LinterResultPluginRule - return ret - } - return o.Rules -} - -// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPlugin) GetRulesOk() ([]LinterResultPluginRule, bool) { - if o == nil || isNil(o.Rules) { - return nil, false - } - return o.Rules, true -} - -// HasRules returns a boolean if a field has been set. -func (o *LinterResultPlugin) HasRules() bool { - if o != nil && !isNil(o.Rules) { - return true - } - - return false -} - -// SetRules gets a reference to the given []LinterResultPluginRule and assigns it to the Rules field. -func (o *LinterResultPlugin) SetRules(v []LinterResultPluginRule) { - o.Rules = v -} - -func (o LinterResultPlugin) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResultPlugin) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.Passed) { - toSerialize["passed"] = o.Passed - } - if !isNil(o.Score) { - toSerialize["score"] = o.Score - } - if !isNil(o.Rules) { - toSerialize["rules"] = o.Rules - } - return toSerialize, nil -} - -type NullableLinterResultPlugin struct { - value *LinterResultPlugin - isSet bool -} - -func (v NullableLinterResultPlugin) Get() *LinterResultPlugin { - return v.value -} - -func (v *NullableLinterResultPlugin) Set(val *LinterResultPlugin) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResultPlugin) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResultPlugin) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResultPlugin(val *LinterResultPlugin) *NullableLinterResultPlugin { - return &NullableLinterResultPlugin{value: val, isSet: true} -} - -func (v NullableLinterResultPlugin) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResultPlugin) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_result_plugin_rule.go b/openapi/model_linter_result_plugin_rule.go deleted file mode 100644 index a4ca6de..0000000 --- a/openapi/model_linter_result_plugin_rule.go +++ /dev/null @@ -1,412 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResultPluginRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResultPluginRule{} - -// LinterResultPluginRule struct for LinterResultPluginRule -type LinterResultPluginRule struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - ErrorDescription *string `json:"errorDescription,omitempty"` - Passed *bool `json:"passed,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Tips []string `json:"tips,omitempty"` - Results []LinterResultPluginRuleResult `json:"results,omitempty"` - Level *string `json:"level,omitempty"` -} - -// NewLinterResultPluginRule instantiates a new LinterResultPluginRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResultPluginRule() *LinterResultPluginRule { - this := LinterResultPluginRule{} - return &this -} - -// NewLinterResultPluginRuleWithDefaults instantiates a new LinterResultPluginRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResultPluginRuleWithDefaults() *LinterResultPluginRule { - this := LinterResultPluginRule{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *LinterResultPluginRule) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *LinterResultPluginRule) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *LinterResultPluginRule) SetDescription(v string) { - o.Description = &v -} - -// GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetErrorDescription() string { - if o == nil || isNil(o.ErrorDescription) { - var ret string - return ret - } - return *o.ErrorDescription -} - -// GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetErrorDescriptionOk() (*string, bool) { - if o == nil || isNil(o.ErrorDescription) { - return nil, false - } - return o.ErrorDescription, true -} - -// HasErrorDescription returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasErrorDescription() bool { - if o != nil && !isNil(o.ErrorDescription) { - return true - } - - return false -} - -// SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field. -func (o *LinterResultPluginRule) SetErrorDescription(v string) { - o.ErrorDescription = &v -} - -// GetPassed returns the Passed field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetPassed() bool { - if o == nil || isNil(o.Passed) { - var ret bool - return ret - } - return *o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetPassedOk() (*bool, bool) { - if o == nil || isNil(o.Passed) { - return nil, false - } - return o.Passed, true -} - -// HasPassed returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasPassed() bool { - if o != nil && !isNil(o.Passed) { - return true - } - - return false -} - -// SetPassed gets a reference to the given bool and assigns it to the Passed field. -func (o *LinterResultPluginRule) SetPassed(v bool) { - o.Passed = &v -} - -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetWeight() int32 { - if o == nil || isNil(o.Weight) { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetWeightOk() (*int32, bool) { - if o == nil || isNil(o.Weight) { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasWeight() bool { - if o != nil && !isNil(o.Weight) { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *LinterResultPluginRule) SetWeight(v int32) { - o.Weight = &v -} - -// GetTips returns the Tips field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetTips() []string { - if o == nil || isNil(o.Tips) { - var ret []string - return ret - } - return o.Tips -} - -// GetTipsOk returns a tuple with the Tips field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetTipsOk() ([]string, bool) { - if o == nil || isNil(o.Tips) { - return nil, false - } - return o.Tips, true -} - -// HasTips returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasTips() bool { - if o != nil && !isNil(o.Tips) { - return true - } - - return false -} - -// SetTips gets a reference to the given []string and assigns it to the Tips field. -func (o *LinterResultPluginRule) SetTips(v []string) { - o.Tips = v -} - -// GetResults returns the Results field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetResults() []LinterResultPluginRuleResult { - if o == nil || isNil(o.Results) { - var ret []LinterResultPluginRuleResult - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetResultsOk() ([]LinterResultPluginRuleResult, bool) { - if o == nil || isNil(o.Results) { - return nil, false - } - return o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasResults() bool { - if o != nil && !isNil(o.Results) { - return true - } - - return false -} - -// SetResults gets a reference to the given []LinterResultPluginRuleResult and assigns it to the Results field. -func (o *LinterResultPluginRule) SetResults(v []LinterResultPluginRuleResult) { - o.Results = v -} - -// GetLevel returns the Level field value if set, zero value otherwise. -func (o *LinterResultPluginRule) GetLevel() string { - if o == nil || isNil(o.Level) { - var ret string - return ret - } - return *o.Level -} - -// GetLevelOk returns a tuple with the Level field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRule) GetLevelOk() (*string, bool) { - if o == nil || isNil(o.Level) { - return nil, false - } - return o.Level, true -} - -// HasLevel returns a boolean if a field has been set. -func (o *LinterResultPluginRule) HasLevel() bool { - if o != nil && !isNil(o.Level) { - return true - } - - return false -} - -// SetLevel gets a reference to the given string and assigns it to the Level field. -func (o *LinterResultPluginRule) SetLevel(v string) { - o.Level = &v -} - -func (o LinterResultPluginRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResultPluginRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.ErrorDescription) { - toSerialize["errorDescription"] = o.ErrorDescription - } - if !isNil(o.Passed) { - toSerialize["passed"] = o.Passed - } - if !isNil(o.Weight) { - toSerialize["weight"] = o.Weight - } - if !isNil(o.Tips) { - toSerialize["tips"] = o.Tips - } - if !isNil(o.Results) { - toSerialize["results"] = o.Results - } - if !isNil(o.Level) { - toSerialize["level"] = o.Level - } - return toSerialize, nil -} - -type NullableLinterResultPluginRule struct { - value *LinterResultPluginRule - isSet bool -} - -func (v NullableLinterResultPluginRule) Get() *LinterResultPluginRule { - return v.value -} - -func (v *NullableLinterResultPluginRule) Set(val *LinterResultPluginRule) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResultPluginRule) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResultPluginRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResultPluginRule(val *LinterResultPluginRule) *NullableLinterResultPluginRule { - return &NullableLinterResultPluginRule{value: val, isSet: true} -} - -func (v NullableLinterResultPluginRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResultPluginRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_result_plugin_rule_result.go b/openapi/model_linter_result_plugin_rule_result.go deleted file mode 100644 index 541d730..0000000 --- a/openapi/model_linter_result_plugin_rule_result.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResultPluginRuleResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResultPluginRuleResult{} - -// LinterResultPluginRuleResult struct for LinterResultPluginRuleResult -type LinterResultPluginRuleResult struct { - SpanId *string `json:"spanId,omitempty"` - Errors []LinterResultPluginRuleResultError `json:"errors,omitempty"` - Passed *bool `json:"passed,omitempty"` - Severity *string `json:"severity,omitempty"` -} - -// NewLinterResultPluginRuleResult instantiates a new LinterResultPluginRuleResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResultPluginRuleResult() *LinterResultPluginRuleResult { - this := LinterResultPluginRuleResult{} - return &this -} - -// NewLinterResultPluginRuleResultWithDefaults instantiates a new LinterResultPluginRuleResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResultPluginRuleResultWithDefaults() *LinterResultPluginRuleResult { - this := LinterResultPluginRuleResult{} - return &this -} - -// GetSpanId returns the SpanId field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResult) GetSpanId() string { - if o == nil || isNil(o.SpanId) { - var ret string - return ret - } - return *o.SpanId -} - -// GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResult) GetSpanIdOk() (*string, bool) { - if o == nil || isNil(o.SpanId) { - return nil, false - } - return o.SpanId, true -} - -// HasSpanId returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResult) HasSpanId() bool { - if o != nil && !isNil(o.SpanId) { - return true - } - - return false -} - -// SetSpanId gets a reference to the given string and assigns it to the SpanId field. -func (o *LinterResultPluginRuleResult) SetSpanId(v string) { - o.SpanId = &v -} - -// GetErrors returns the Errors field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResult) GetErrors() []LinterResultPluginRuleResultError { - if o == nil || isNil(o.Errors) { - var ret []LinterResultPluginRuleResultError - return ret - } - return o.Errors -} - -// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResult) GetErrorsOk() ([]LinterResultPluginRuleResultError, bool) { - if o == nil || isNil(o.Errors) { - return nil, false - } - return o.Errors, true -} - -// HasErrors returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResult) HasErrors() bool { - if o != nil && !isNil(o.Errors) { - return true - } - - return false -} - -// SetErrors gets a reference to the given []LinterResultPluginRuleResultError and assigns it to the Errors field. -func (o *LinterResultPluginRuleResult) SetErrors(v []LinterResultPluginRuleResultError) { - o.Errors = v -} - -// GetPassed returns the Passed field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResult) GetPassed() bool { - if o == nil || isNil(o.Passed) { - var ret bool - return ret - } - return *o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResult) GetPassedOk() (*bool, bool) { - if o == nil || isNil(o.Passed) { - return nil, false - } - return o.Passed, true -} - -// HasPassed returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResult) HasPassed() bool { - if o != nil && !isNil(o.Passed) { - return true - } - - return false -} - -// SetPassed gets a reference to the given bool and assigns it to the Passed field. -func (o *LinterResultPluginRuleResult) SetPassed(v bool) { - o.Passed = &v -} - -// GetSeverity returns the Severity field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResult) GetSeverity() string { - if o == nil || isNil(o.Severity) { - var ret string - return ret - } - return *o.Severity -} - -// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResult) GetSeverityOk() (*string, bool) { - if o == nil || isNil(o.Severity) { - return nil, false - } - return o.Severity, true -} - -// HasSeverity returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResult) HasSeverity() bool { - if o != nil && !isNil(o.Severity) { - return true - } - - return false -} - -// SetSeverity gets a reference to the given string and assigns it to the Severity field. -func (o *LinterResultPluginRuleResult) SetSeverity(v string) { - o.Severity = &v -} - -func (o LinterResultPluginRuleResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResultPluginRuleResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.SpanId) { - toSerialize["spanId"] = o.SpanId - } - if !isNil(o.Errors) { - toSerialize["errors"] = o.Errors - } - if !isNil(o.Passed) { - toSerialize["passed"] = o.Passed - } - if !isNil(o.Severity) { - toSerialize["severity"] = o.Severity - } - return toSerialize, nil -} - -type NullableLinterResultPluginRuleResult struct { - value *LinterResultPluginRuleResult - isSet bool -} - -func (v NullableLinterResultPluginRuleResult) Get() *LinterResultPluginRuleResult { - return v.value -} - -func (v *NullableLinterResultPluginRuleResult) Set(val *LinterResultPluginRuleResult) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResultPluginRuleResult) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResultPluginRuleResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResultPluginRuleResult(val *LinterResultPluginRuleResult) *NullableLinterResultPluginRuleResult { - return &NullableLinterResultPluginRuleResult{value: val, isSet: true} -} - -func (v NullableLinterResultPluginRuleResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResultPluginRuleResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_linter_result_plugin_rule_result_error.go b/openapi/model_linter_result_plugin_rule_result_error.go deleted file mode 100644 index 4746eb9..0000000 --- a/openapi/model_linter_result_plugin_rule_result_error.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the LinterResultPluginRuleResultError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinterResultPluginRuleResultError{} - -// LinterResultPluginRuleResultError struct for LinterResultPluginRuleResultError -type LinterResultPluginRuleResultError struct { - Value *string `json:"value,omitempty"` - Expected *string `json:"expected,omitempty"` - Description *string `json:"description,omitempty"` - Suggestions []string `json:"suggestions,omitempty"` -} - -// NewLinterResultPluginRuleResultError instantiates a new LinterResultPluginRuleResultError object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLinterResultPluginRuleResultError() *LinterResultPluginRuleResultError { - this := LinterResultPluginRuleResultError{} - return &this -} - -// NewLinterResultPluginRuleResultErrorWithDefaults instantiates a new LinterResultPluginRuleResultError object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLinterResultPluginRuleResultErrorWithDefaults() *LinterResultPluginRuleResultError { - this := LinterResultPluginRuleResultError{} - return &this -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResultError) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResultError) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResultError) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *LinterResultPluginRuleResultError) SetValue(v string) { - o.Value = &v -} - -// GetExpected returns the Expected field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResultError) GetExpected() string { - if o == nil || isNil(o.Expected) { - var ret string - return ret - } - return *o.Expected -} - -// GetExpectedOk returns a tuple with the Expected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResultError) GetExpectedOk() (*string, bool) { - if o == nil || isNil(o.Expected) { - return nil, false - } - return o.Expected, true -} - -// HasExpected returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResultError) HasExpected() bool { - if o != nil && !isNil(o.Expected) { - return true - } - - return false -} - -// SetExpected gets a reference to the given string and assigns it to the Expected field. -func (o *LinterResultPluginRuleResultError) SetExpected(v string) { - o.Expected = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResultError) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResultError) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResultError) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *LinterResultPluginRuleResultError) SetDescription(v string) { - o.Description = &v -} - -// GetSuggestions returns the Suggestions field value if set, zero value otherwise. -func (o *LinterResultPluginRuleResultError) GetSuggestions() []string { - if o == nil || isNil(o.Suggestions) { - var ret []string - return ret - } - return o.Suggestions -} - -// GetSuggestionsOk returns a tuple with the Suggestions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinterResultPluginRuleResultError) GetSuggestionsOk() ([]string, bool) { - if o == nil || isNil(o.Suggestions) { - return nil, false - } - return o.Suggestions, true -} - -// HasSuggestions returns a boolean if a field has been set. -func (o *LinterResultPluginRuleResultError) HasSuggestions() bool { - if o != nil && !isNil(o.Suggestions) { - return true - } - - return false -} - -// SetSuggestions gets a reference to the given []string and assigns it to the Suggestions field. -func (o *LinterResultPluginRuleResultError) SetSuggestions(v []string) { - o.Suggestions = v -} - -func (o LinterResultPluginRuleResultError) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinterResultPluginRuleResultError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - if !isNil(o.Expected) { - toSerialize["expected"] = o.Expected - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.Suggestions) { - toSerialize["suggestions"] = o.Suggestions - } - return toSerialize, nil -} - -type NullableLinterResultPluginRuleResultError struct { - value *LinterResultPluginRuleResultError - isSet bool -} - -func (v NullableLinterResultPluginRuleResultError) Get() *LinterResultPluginRuleResultError { - return v.value -} - -func (v *NullableLinterResultPluginRuleResultError) Set(val *LinterResultPluginRuleResultError) { - v.value = val - v.isSet = true -} - -func (v NullableLinterResultPluginRuleResultError) IsSet() bool { - return v.isSet -} - -func (v *NullableLinterResultPluginRuleResultError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinterResultPluginRuleResultError(val *LinterResultPluginRuleResultError) *NullableLinterResultPluginRuleResultError { - return &NullableLinterResultPluginRuleResultError{value: val, isSet: true} -} - -func (v NullableLinterResultPluginRuleResultError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinterResultPluginRuleResultError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_list_demos_200_response.go b/openapi/model_list_demos_200_response.go deleted file mode 100644 index cb1bd83..0000000 --- a/openapi/model_list_demos_200_response.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ListDemos200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListDemos200Response{} - -// ListDemos200Response struct for ListDemos200Response -type ListDemos200Response struct { - Count *int32 `json:"count,omitempty"` - Items []Demo `json:"items,omitempty"` -} - -// NewListDemos200Response instantiates a new ListDemos200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListDemos200Response() *ListDemos200Response { - this := ListDemos200Response{} - return &this -} - -// NewListDemos200ResponseWithDefaults instantiates a new ListDemos200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListDemos200ResponseWithDefaults() *ListDemos200Response { - this := ListDemos200Response{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *ListDemos200Response) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ListDemos200Response) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *ListDemos200Response) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListDemos200Response) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *ListDemos200Response) GetItems() []Demo { - if o == nil || isNil(o.Items) { - var ret []Demo - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ListDemos200Response) GetItemsOk() ([]Demo, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *ListDemos200Response) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []Demo and assigns it to the Items field. -func (o *ListDemos200Response) SetItems(v []Demo) { - o.Items = v -} - -func (o ListDemos200Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListDemos200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableListDemos200Response struct { - value *ListDemos200Response - isSet bool -} - -func (v NullableListDemos200Response) Get() *ListDemos200Response { - return v.value -} - -func (v *NullableListDemos200Response) Set(val *ListDemos200Response) { - v.value = val - v.isSet = true -} - -func (v NullableListDemos200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableListDemos200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListDemos200Response(val *ListDemos200Response) *NullableListDemos200Response { - return &NullableListDemos200Response{value: val, isSet: true} -} - -func (v NullableListDemos200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListDemos200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_list_variable_sets_200_response.go b/openapi/model_list_variable_sets_200_response.go deleted file mode 100644 index a3708c0..0000000 --- a/openapi/model_list_variable_sets_200_response.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ListVariableSets200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListVariableSets200Response{} - -// ListVariableSets200Response struct for ListVariableSets200Response -type ListVariableSets200Response struct { - Count *int32 `json:"count,omitempty"` - Items []VariableSetResource `json:"items,omitempty"` -} - -// NewListVariableSets200Response instantiates a new ListVariableSets200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListVariableSets200Response() *ListVariableSets200Response { - this := ListVariableSets200Response{} - return &this -} - -// NewListVariableSets200ResponseWithDefaults instantiates a new ListVariableSets200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListVariableSets200ResponseWithDefaults() *ListVariableSets200Response { - this := ListVariableSets200Response{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *ListVariableSets200Response) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ListVariableSets200Response) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *ListVariableSets200Response) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListVariableSets200Response) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *ListVariableSets200Response) GetItems() []VariableSetResource { - if o == nil || isNil(o.Items) { - var ret []VariableSetResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ListVariableSets200Response) GetItemsOk() ([]VariableSetResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *ListVariableSets200Response) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []VariableSetResource and assigns it to the Items field. -func (o *ListVariableSets200Response) SetItems(v []VariableSetResource) { - o.Items = v -} - -func (o ListVariableSets200Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListVariableSets200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableListVariableSets200Response struct { - value *ListVariableSets200Response - isSet bool -} - -func (v NullableListVariableSets200Response) Get() *ListVariableSets200Response { - return v.value -} - -func (v *NullableListVariableSets200Response) Set(val *ListVariableSets200Response) { - v.value = val - v.isSet = true -} - -func (v NullableListVariableSets200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableListVariableSets200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListVariableSets200Response(val *ListVariableSets200Response) *NullableListVariableSets200Response { - return &NullableListVariableSets200Response{value: val, isSet: true} -} - -func (v NullableListVariableSets200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListVariableSets200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_missing_variable.go b/openapi/model_missing_variable.go deleted file mode 100644 index 045f911..0000000 --- a/openapi/model_missing_variable.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the MissingVariable type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MissingVariable{} - -// MissingVariable struct for MissingVariable -type MissingVariable struct { - TestId *string `json:"testId,omitempty"` - Variables []Variable `json:"variables,omitempty"` -} - -// NewMissingVariable instantiates a new MissingVariable object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMissingVariable() *MissingVariable { - this := MissingVariable{} - return &this -} - -// NewMissingVariableWithDefaults instantiates a new MissingVariable object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMissingVariableWithDefaults() *MissingVariable { - this := MissingVariable{} - return &this -} - -// GetTestId returns the TestId field value if set, zero value otherwise. -func (o *MissingVariable) GetTestId() string { - if o == nil || isNil(o.TestId) { - var ret string - return ret - } - return *o.TestId -} - -// GetTestIdOk returns a tuple with the TestId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MissingVariable) GetTestIdOk() (*string, bool) { - if o == nil || isNil(o.TestId) { - return nil, false - } - return o.TestId, true -} - -// HasTestId returns a boolean if a field has been set. -func (o *MissingVariable) HasTestId() bool { - if o != nil && !isNil(o.TestId) { - return true - } - - return false -} - -// SetTestId gets a reference to the given string and assigns it to the TestId field. -func (o *MissingVariable) SetTestId(v string) { - o.TestId = &v -} - -// GetVariables returns the Variables field value if set, zero value otherwise. -func (o *MissingVariable) GetVariables() []Variable { - if o == nil || isNil(o.Variables) { - var ret []Variable - return ret - } - return o.Variables -} - -// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MissingVariable) GetVariablesOk() ([]Variable, bool) { - if o == nil || isNil(o.Variables) { - return nil, false - } - return o.Variables, true -} - -// HasVariables returns a boolean if a field has been set. -func (o *MissingVariable) HasVariables() bool { - if o != nil && !isNil(o.Variables) { - return true - } - - return false -} - -// SetVariables gets a reference to the given []Variable and assigns it to the Variables field. -func (o *MissingVariable) SetVariables(v []Variable) { - o.Variables = v -} - -func (o MissingVariable) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o MissingVariable) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.TestId) { - toSerialize["testId"] = o.TestId - } - if !isNil(o.Variables) { - toSerialize["variables"] = o.Variables - } - return toSerialize, nil -} - -type NullableMissingVariable struct { - value *MissingVariable - isSet bool -} - -func (v NullableMissingVariable) Get() *MissingVariable { - return v.value -} - -func (v *NullableMissingVariable) Set(val *MissingVariable) { - v.value = val - v.isSet = true -} - -func (v NullableMissingVariable) IsSet() bool { - return v.isSet -} - -func (v *NullableMissingVariable) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMissingVariable(val *MissingVariable) *NullableMissingVariable { - return &NullableMissingVariable{value: val, isSet: true} -} - -func (v NullableMissingVariable) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMissingVariable) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_missing_variables_error.go b/openapi/model_missing_variables_error.go deleted file mode 100644 index 1b41045..0000000 --- a/openapi/model_missing_variables_error.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the MissingVariablesError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MissingVariablesError{} - -// MissingVariablesError struct for MissingVariablesError -type MissingVariablesError struct { - MissingVariables []MissingVariable `json:"missingVariables,omitempty"` -} - -// NewMissingVariablesError instantiates a new MissingVariablesError object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMissingVariablesError() *MissingVariablesError { - this := MissingVariablesError{} - return &this -} - -// NewMissingVariablesErrorWithDefaults instantiates a new MissingVariablesError object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMissingVariablesErrorWithDefaults() *MissingVariablesError { - this := MissingVariablesError{} - return &this -} - -// GetMissingVariables returns the MissingVariables field value if set, zero value otherwise. -func (o *MissingVariablesError) GetMissingVariables() []MissingVariable { - if o == nil || isNil(o.MissingVariables) { - var ret []MissingVariable - return ret - } - return o.MissingVariables -} - -// GetMissingVariablesOk returns a tuple with the MissingVariables field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MissingVariablesError) GetMissingVariablesOk() ([]MissingVariable, bool) { - if o == nil || isNil(o.MissingVariables) { - return nil, false - } - return o.MissingVariables, true -} - -// HasMissingVariables returns a boolean if a field has been set. -func (o *MissingVariablesError) HasMissingVariables() bool { - if o != nil && !isNil(o.MissingVariables) { - return true - } - - return false -} - -// SetMissingVariables gets a reference to the given []MissingVariable and assigns it to the MissingVariables field. -func (o *MissingVariablesError) SetMissingVariables(v []MissingVariable) { - o.MissingVariables = v -} - -func (o MissingVariablesError) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o MissingVariablesError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MissingVariables) { - toSerialize["missingVariables"] = o.MissingVariables - } - return toSerialize, nil -} - -type NullableMissingVariablesError struct { - value *MissingVariablesError - isSet bool -} - -func (v NullableMissingVariablesError) Get() *MissingVariablesError { - return v.value -} - -func (v *NullableMissingVariablesError) Set(val *MissingVariablesError) { - v.value = val - v.isSet = true -} - -func (v NullableMissingVariablesError) IsSet() bool { - return v.isSet -} - -func (v *NullableMissingVariablesError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMissingVariablesError(val *MissingVariablesError) *NullableMissingVariablesError { - return &NullableMissingVariablesError{value: val, isSet: true} -} - -func (v NullableMissingVariablesError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMissingVariablesError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_output_info.go b/openapi/model_output_info.go deleted file mode 100644 index bbe3950..0000000 --- a/openapi/model_output_info.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the OutputInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OutputInfo{} - -// OutputInfo struct for OutputInfo -type OutputInfo struct { - LogLevel *string `json:"logLevel,omitempty"` - Message *string `json:"message,omitempty"` - OutputName *string `json:"outputName,omitempty"` -} - -// NewOutputInfo instantiates a new OutputInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOutputInfo() *OutputInfo { - this := OutputInfo{} - return &this -} - -// NewOutputInfoWithDefaults instantiates a new OutputInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOutputInfoWithDefaults() *OutputInfo { - this := OutputInfo{} - return &this -} - -// GetLogLevel returns the LogLevel field value if set, zero value otherwise. -func (o *OutputInfo) GetLogLevel() string { - if o == nil || isNil(o.LogLevel) { - var ret string - return ret - } - return *o.LogLevel -} - -// GetLogLevelOk returns a tuple with the LogLevel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OutputInfo) GetLogLevelOk() (*string, bool) { - if o == nil || isNil(o.LogLevel) { - return nil, false - } - return o.LogLevel, true -} - -// HasLogLevel returns a boolean if a field has been set. -func (o *OutputInfo) HasLogLevel() bool { - if o != nil && !isNil(o.LogLevel) { - return true - } - - return false -} - -// SetLogLevel gets a reference to the given string and assigns it to the LogLevel field. -func (o *OutputInfo) SetLogLevel(v string) { - o.LogLevel = &v -} - -// GetMessage returns the Message field value if set, zero value otherwise. -func (o *OutputInfo) GetMessage() string { - if o == nil || isNil(o.Message) { - var ret string - return ret - } - return *o.Message -} - -// GetMessageOk returns a tuple with the Message field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OutputInfo) GetMessageOk() (*string, bool) { - if o == nil || isNil(o.Message) { - return nil, false - } - return o.Message, true -} - -// HasMessage returns a boolean if a field has been set. -func (o *OutputInfo) HasMessage() bool { - if o != nil && !isNil(o.Message) { - return true - } - - return false -} - -// SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *OutputInfo) SetMessage(v string) { - o.Message = &v -} - -// GetOutputName returns the OutputName field value if set, zero value otherwise. -func (o *OutputInfo) GetOutputName() string { - if o == nil || isNil(o.OutputName) { - var ret string - return ret - } - return *o.OutputName -} - -// GetOutputNameOk returns a tuple with the OutputName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OutputInfo) GetOutputNameOk() (*string, bool) { - if o == nil || isNil(o.OutputName) { - return nil, false - } - return o.OutputName, true -} - -// HasOutputName returns a boolean if a field has been set. -func (o *OutputInfo) HasOutputName() bool { - if o != nil && !isNil(o.OutputName) { - return true - } - - return false -} - -// SetOutputName gets a reference to the given string and assigns it to the OutputName field. -func (o *OutputInfo) SetOutputName(v string) { - o.OutputName = &v -} - -func (o OutputInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OutputInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.LogLevel) { - toSerialize["logLevel"] = o.LogLevel - } - if !isNil(o.Message) { - toSerialize["message"] = o.Message - } - if !isNil(o.OutputName) { - toSerialize["outputName"] = o.OutputName - } - return toSerialize, nil -} - -type NullableOutputInfo struct { - value *OutputInfo - isSet bool -} - -func (v NullableOutputInfo) Get() *OutputInfo { - return v.value -} - -func (v *NullableOutputInfo) Set(val *OutputInfo) { - v.value = val - v.isSet = true -} - -func (v NullableOutputInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableOutputInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOutputInfo(val *OutputInfo) *NullableOutputInfo { - return &NullableOutputInfo{value: val, isSet: true} -} - -func (v NullableOutputInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOutputInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_polling_info.go b/openapi/model_polling_info.go deleted file mode 100644 index e081dd3..0000000 --- a/openapi/model_polling_info.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the PollingInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PollingInfo{} - -// PollingInfo struct for PollingInfo -type PollingInfo struct { - Type *string `json:"type,omitempty"` - IsComplete *bool `json:"isComplete,omitempty"` - Periodic *PollingInfoPeriodic `json:"periodic,omitempty"` -} - -// NewPollingInfo instantiates a new PollingInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPollingInfo() *PollingInfo { - this := PollingInfo{} - return &this -} - -// NewPollingInfoWithDefaults instantiates a new PollingInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPollingInfoWithDefaults() *PollingInfo { - this := PollingInfo{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *PollingInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *PollingInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *PollingInfo) SetType(v string) { - o.Type = &v -} - -// GetIsComplete returns the IsComplete field value if set, zero value otherwise. -func (o *PollingInfo) GetIsComplete() bool { - if o == nil || isNil(o.IsComplete) { - var ret bool - return ret - } - return *o.IsComplete -} - -// GetIsCompleteOk returns a tuple with the IsComplete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingInfo) GetIsCompleteOk() (*bool, bool) { - if o == nil || isNil(o.IsComplete) { - return nil, false - } - return o.IsComplete, true -} - -// HasIsComplete returns a boolean if a field has been set. -func (o *PollingInfo) HasIsComplete() bool { - if o != nil && !isNil(o.IsComplete) { - return true - } - - return false -} - -// SetIsComplete gets a reference to the given bool and assigns it to the IsComplete field. -func (o *PollingInfo) SetIsComplete(v bool) { - o.IsComplete = &v -} - -// GetPeriodic returns the Periodic field value if set, zero value otherwise. -func (o *PollingInfo) GetPeriodic() PollingInfoPeriodic { - if o == nil || isNil(o.Periodic) { - var ret PollingInfoPeriodic - return ret - } - return *o.Periodic -} - -// GetPeriodicOk returns a tuple with the Periodic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingInfo) GetPeriodicOk() (*PollingInfoPeriodic, bool) { - if o == nil || isNil(o.Periodic) { - return nil, false - } - return o.Periodic, true -} - -// HasPeriodic returns a boolean if a field has been set. -func (o *PollingInfo) HasPeriodic() bool { - if o != nil && !isNil(o.Periodic) { - return true - } - - return false -} - -// SetPeriodic gets a reference to the given PollingInfoPeriodic and assigns it to the Periodic field. -func (o *PollingInfo) SetPeriodic(v PollingInfoPeriodic) { - o.Periodic = &v -} - -func (o PollingInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PollingInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.IsComplete) { - toSerialize["isComplete"] = o.IsComplete - } - if !isNil(o.Periodic) { - toSerialize["periodic"] = o.Periodic - } - return toSerialize, nil -} - -type NullablePollingInfo struct { - value *PollingInfo - isSet bool -} - -func (v NullablePollingInfo) Get() *PollingInfo { - return v.value -} - -func (v *NullablePollingInfo) Set(val *PollingInfo) { - v.value = val - v.isSet = true -} - -func (v NullablePollingInfo) IsSet() bool { - return v.isSet -} - -func (v *NullablePollingInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePollingInfo(val *PollingInfo) *NullablePollingInfo { - return &NullablePollingInfo{value: val, isSet: true} -} - -func (v NullablePollingInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePollingInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_polling_info_periodic.go b/openapi/model_polling_info_periodic.go deleted file mode 100644 index 730b057..0000000 --- a/openapi/model_polling_info_periodic.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the PollingInfoPeriodic type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PollingInfoPeriodic{} - -// PollingInfoPeriodic struct for PollingInfoPeriodic -type PollingInfoPeriodic struct { - NumberSpans *int32 `json:"numberSpans,omitempty"` - NumberIterations *int32 `json:"numberIterations,omitempty"` -} - -// NewPollingInfoPeriodic instantiates a new PollingInfoPeriodic object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPollingInfoPeriodic() *PollingInfoPeriodic { - this := PollingInfoPeriodic{} - return &this -} - -// NewPollingInfoPeriodicWithDefaults instantiates a new PollingInfoPeriodic object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPollingInfoPeriodicWithDefaults() *PollingInfoPeriodic { - this := PollingInfoPeriodic{} - return &this -} - -// GetNumberSpans returns the NumberSpans field value if set, zero value otherwise. -func (o *PollingInfoPeriodic) GetNumberSpans() int32 { - if o == nil || isNil(o.NumberSpans) { - var ret int32 - return ret - } - return *o.NumberSpans -} - -// GetNumberSpansOk returns a tuple with the NumberSpans field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingInfoPeriodic) GetNumberSpansOk() (*int32, bool) { - if o == nil || isNil(o.NumberSpans) { - return nil, false - } - return o.NumberSpans, true -} - -// HasNumberSpans returns a boolean if a field has been set. -func (o *PollingInfoPeriodic) HasNumberSpans() bool { - if o != nil && !isNil(o.NumberSpans) { - return true - } - - return false -} - -// SetNumberSpans gets a reference to the given int32 and assigns it to the NumberSpans field. -func (o *PollingInfoPeriodic) SetNumberSpans(v int32) { - o.NumberSpans = &v -} - -// GetNumberIterations returns the NumberIterations field value if set, zero value otherwise. -func (o *PollingInfoPeriodic) GetNumberIterations() int32 { - if o == nil || isNil(o.NumberIterations) { - var ret int32 - return ret - } - return *o.NumberIterations -} - -// GetNumberIterationsOk returns a tuple with the NumberIterations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingInfoPeriodic) GetNumberIterationsOk() (*int32, bool) { - if o == nil || isNil(o.NumberIterations) { - return nil, false - } - return o.NumberIterations, true -} - -// HasNumberIterations returns a boolean if a field has been set. -func (o *PollingInfoPeriodic) HasNumberIterations() bool { - if o != nil && !isNil(o.NumberIterations) { - return true - } - - return false -} - -// SetNumberIterations gets a reference to the given int32 and assigns it to the NumberIterations field. -func (o *PollingInfoPeriodic) SetNumberIterations(v int32) { - o.NumberIterations = &v -} - -func (o PollingInfoPeriodic) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PollingInfoPeriodic) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.NumberSpans) { - toSerialize["numberSpans"] = o.NumberSpans - } - if !isNil(o.NumberIterations) { - toSerialize["numberIterations"] = o.NumberIterations - } - return toSerialize, nil -} - -type NullablePollingInfoPeriodic struct { - value *PollingInfoPeriodic - isSet bool -} - -func (v NullablePollingInfoPeriodic) Get() *PollingInfoPeriodic { - return v.value -} - -func (v *NullablePollingInfoPeriodic) Set(val *PollingInfoPeriodic) { - v.value = val - v.isSet = true -} - -func (v NullablePollingInfoPeriodic) IsSet() bool { - return v.isSet -} - -func (v *NullablePollingInfoPeriodic) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePollingInfoPeriodic(val *PollingInfoPeriodic) *NullablePollingInfoPeriodic { - return &NullablePollingInfoPeriodic{value: val, isSet: true} -} - -func (v NullablePollingInfoPeriodic) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePollingInfoPeriodic) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_polling_profile.go b/openapi/model_polling_profile.go deleted file mode 100644 index 0487f1a..0000000 --- a/openapi/model_polling_profile.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the PollingProfile type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PollingProfile{} - -// PollingProfile Represents a polling profile structured into the Resources format. -type PollingProfile struct { - // Represents the type of this resource. It should always be set as 'PollingProfile'. - Type *string `json:"type,omitempty"` - Spec *PollingProfileSpec `json:"spec,omitempty"` -} - -// NewPollingProfile instantiates a new PollingProfile object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPollingProfile() *PollingProfile { - this := PollingProfile{} - return &this -} - -// NewPollingProfileWithDefaults instantiates a new PollingProfile object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPollingProfileWithDefaults() *PollingProfile { - this := PollingProfile{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *PollingProfile) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfile) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *PollingProfile) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *PollingProfile) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *PollingProfile) GetSpec() PollingProfileSpec { - if o == nil || isNil(o.Spec) { - var ret PollingProfileSpec - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfile) GetSpecOk() (*PollingProfileSpec, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *PollingProfile) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given PollingProfileSpec and assigns it to the Spec field. -func (o *PollingProfile) SetSpec(v PollingProfileSpec) { - o.Spec = &v -} - -func (o PollingProfile) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PollingProfile) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullablePollingProfile struct { - value *PollingProfile - isSet bool -} - -func (v NullablePollingProfile) Get() *PollingProfile { - return v.value -} - -func (v *NullablePollingProfile) Set(val *PollingProfile) { - v.value = val - v.isSet = true -} - -func (v NullablePollingProfile) IsSet() bool { - return v.isSet -} - -func (v *NullablePollingProfile) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePollingProfile(val *PollingProfile) *NullablePollingProfile { - return &NullablePollingProfile{value: val, isSet: true} -} - -func (v NullablePollingProfile) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePollingProfile) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_polling_profile_list.go b/openapi/model_polling_profile_list.go deleted file mode 100644 index c7dddc3..0000000 --- a/openapi/model_polling_profile_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the PollingProfileList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PollingProfileList{} - -// PollingProfileList struct for PollingProfileList -type PollingProfileList struct { - Count *int32 `json:"count,omitempty"` - Items []PollingProfile `json:"items,omitempty"` -} - -// NewPollingProfileList instantiates a new PollingProfileList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPollingProfileList() *PollingProfileList { - this := PollingProfileList{} - return &this -} - -// NewPollingProfileListWithDefaults instantiates a new PollingProfileList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPollingProfileListWithDefaults() *PollingProfileList { - this := PollingProfileList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *PollingProfileList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfileList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *PollingProfileList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *PollingProfileList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *PollingProfileList) GetItems() []PollingProfile { - if o == nil || isNil(o.Items) { - var ret []PollingProfile - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfileList) GetItemsOk() ([]PollingProfile, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *PollingProfileList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []PollingProfile and assigns it to the Items field. -func (o *PollingProfileList) SetItems(v []PollingProfile) { - o.Items = v -} - -func (o PollingProfileList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PollingProfileList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullablePollingProfileList struct { - value *PollingProfileList - isSet bool -} - -func (v NullablePollingProfileList) Get() *PollingProfileList { - return v.value -} - -func (v *NullablePollingProfileList) Set(val *PollingProfileList) { - v.value = val - v.isSet = true -} - -func (v NullablePollingProfileList) IsSet() bool { - return v.isSet -} - -func (v *NullablePollingProfileList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePollingProfileList(val *PollingProfileList) *NullablePollingProfileList { - return &NullablePollingProfileList{value: val, isSet: true} -} - -func (v NullablePollingProfileList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePollingProfileList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_polling_profile_spec.go b/openapi/model_polling_profile_spec.go deleted file mode 100644 index f1be2fd..0000000 --- a/openapi/model_polling_profile_spec.go +++ /dev/null @@ -1,245 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the PollingProfileSpec type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PollingProfileSpec{} - -// PollingProfileSpec Represents the attributes of a Polling Profile. -type PollingProfileSpec struct { - // ID of this Polling Profile. - Id string `json:"id"` - // Name given for this profile. - Name string `json:"name"` - // Is default polling profile - Default *bool `json:"default,omitempty"` - // Name of the strategy that will be used on this profile. - Strategy string `json:"strategy"` - Periodic *PollingProfileSpecPeriodic `json:"periodic,omitempty"` -} - -// NewPollingProfileSpec instantiates a new PollingProfileSpec object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPollingProfileSpec(id string, name string, strategy string) *PollingProfileSpec { - this := PollingProfileSpec{} - this.Id = id - this.Name = name - this.Strategy = strategy - return &this -} - -// NewPollingProfileSpecWithDefaults instantiates a new PollingProfileSpec object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPollingProfileSpecWithDefaults() *PollingProfileSpec { - this := PollingProfileSpec{} - return &this -} - -// GetId returns the Id field value -func (o *PollingProfileSpec) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *PollingProfileSpec) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *PollingProfileSpec) SetId(v string) { - o.Id = v -} - -// GetName returns the Name field value -func (o *PollingProfileSpec) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *PollingProfileSpec) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *PollingProfileSpec) SetName(v string) { - o.Name = v -} - -// GetDefault returns the Default field value if set, zero value otherwise. -func (o *PollingProfileSpec) GetDefault() bool { - if o == nil || isNil(o.Default) { - var ret bool - return ret - } - return *o.Default -} - -// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfileSpec) GetDefaultOk() (*bool, bool) { - if o == nil || isNil(o.Default) { - return nil, false - } - return o.Default, true -} - -// HasDefault returns a boolean if a field has been set. -func (o *PollingProfileSpec) HasDefault() bool { - if o != nil && !isNil(o.Default) { - return true - } - - return false -} - -// SetDefault gets a reference to the given bool and assigns it to the Default field. -func (o *PollingProfileSpec) SetDefault(v bool) { - o.Default = &v -} - -// GetStrategy returns the Strategy field value -func (o *PollingProfileSpec) GetStrategy() string { - if o == nil { - var ret string - return ret - } - - return o.Strategy -} - -// GetStrategyOk returns a tuple with the Strategy field value -// and a boolean to check if the value has been set. -func (o *PollingProfileSpec) GetStrategyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Strategy, true -} - -// SetStrategy sets field value -func (o *PollingProfileSpec) SetStrategy(v string) { - o.Strategy = v -} - -// GetPeriodic returns the Periodic field value if set, zero value otherwise. -func (o *PollingProfileSpec) GetPeriodic() PollingProfileSpecPeriodic { - if o == nil || isNil(o.Periodic) { - var ret PollingProfileSpecPeriodic - return ret - } - return *o.Periodic -} - -// GetPeriodicOk returns a tuple with the Periodic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfileSpec) GetPeriodicOk() (*PollingProfileSpecPeriodic, bool) { - if o == nil || isNil(o.Periodic) { - return nil, false - } - return o.Periodic, true -} - -// HasPeriodic returns a boolean if a field has been set. -func (o *PollingProfileSpec) HasPeriodic() bool { - if o != nil && !isNil(o.Periodic) { - return true - } - - return false -} - -// SetPeriodic gets a reference to the given PollingProfileSpecPeriodic and assigns it to the Periodic field. -func (o *PollingProfileSpec) SetPeriodic(v PollingProfileSpecPeriodic) { - o.Periodic = &v -} - -func (o PollingProfileSpec) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PollingProfileSpec) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["name"] = o.Name - if !isNil(o.Default) { - toSerialize["default"] = o.Default - } - toSerialize["strategy"] = o.Strategy - if !isNil(o.Periodic) { - toSerialize["periodic"] = o.Periodic - } - return toSerialize, nil -} - -type NullablePollingProfileSpec struct { - value *PollingProfileSpec - isSet bool -} - -func (v NullablePollingProfileSpec) Get() *PollingProfileSpec { - return v.value -} - -func (v *NullablePollingProfileSpec) Set(val *PollingProfileSpec) { - v.value = val - v.isSet = true -} - -func (v NullablePollingProfileSpec) IsSet() bool { - return v.isSet -} - -func (v *NullablePollingProfileSpec) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePollingProfileSpec(val *PollingProfileSpec) *NullablePollingProfileSpec { - return &NullablePollingProfileSpec{value: val, isSet: true} -} - -func (v NullablePollingProfileSpec) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePollingProfileSpec) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_polling_profile_spec_periodic.go b/openapi/model_polling_profile_spec_periodic.go deleted file mode 100644 index 53ae717..0000000 --- a/openapi/model_polling_profile_spec_periodic.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the PollingProfileSpecPeriodic type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PollingProfileSpecPeriodic{} - -// PollingProfileSpecPeriodic Configuration for the strategy 'periodic'. It only should be filled if the field strategy is equals to 'periodic'. -type PollingProfileSpecPeriodic struct { - // Time that the poller should wait until try to fetch more traces. It should be written in duration format (example: 1s, 30s, 1m). - RetryDelay *string `json:"retryDelay,omitempty"` - // Total time that the poller should try to continue to fetch traces. It should be written in duration format (example: 1s, 30s, 1m). - Timeout *string `json:"timeout,omitempty"` -} - -// NewPollingProfileSpecPeriodic instantiates a new PollingProfileSpecPeriodic object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPollingProfileSpecPeriodic() *PollingProfileSpecPeriodic { - this := PollingProfileSpecPeriodic{} - return &this -} - -// NewPollingProfileSpecPeriodicWithDefaults instantiates a new PollingProfileSpecPeriodic object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPollingProfileSpecPeriodicWithDefaults() *PollingProfileSpecPeriodic { - this := PollingProfileSpecPeriodic{} - return &this -} - -// GetRetryDelay returns the RetryDelay field value if set, zero value otherwise. -func (o *PollingProfileSpecPeriodic) GetRetryDelay() string { - if o == nil || isNil(o.RetryDelay) { - var ret string - return ret - } - return *o.RetryDelay -} - -// GetRetryDelayOk returns a tuple with the RetryDelay field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfileSpecPeriodic) GetRetryDelayOk() (*string, bool) { - if o == nil || isNil(o.RetryDelay) { - return nil, false - } - return o.RetryDelay, true -} - -// HasRetryDelay returns a boolean if a field has been set. -func (o *PollingProfileSpecPeriodic) HasRetryDelay() bool { - if o != nil && !isNil(o.RetryDelay) { - return true - } - - return false -} - -// SetRetryDelay gets a reference to the given string and assigns it to the RetryDelay field. -func (o *PollingProfileSpecPeriodic) SetRetryDelay(v string) { - o.RetryDelay = &v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *PollingProfileSpecPeriodic) GetTimeout() string { - if o == nil || isNil(o.Timeout) { - var ret string - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PollingProfileSpecPeriodic) GetTimeoutOk() (*string, bool) { - if o == nil || isNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *PollingProfileSpecPeriodic) HasTimeout() bool { - if o != nil && !isNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given string and assigns it to the Timeout field. -func (o *PollingProfileSpecPeriodic) SetTimeout(v string) { - o.Timeout = &v -} - -func (o PollingProfileSpecPeriodic) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PollingProfileSpecPeriodic) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.RetryDelay) { - toSerialize["retryDelay"] = o.RetryDelay - } - if !isNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - return toSerialize, nil -} - -type NullablePollingProfileSpecPeriodic struct { - value *PollingProfileSpecPeriodic - isSet bool -} - -func (v NullablePollingProfileSpecPeriodic) Get() *PollingProfileSpecPeriodic { - return v.value -} - -func (v *NullablePollingProfileSpecPeriodic) Set(val *PollingProfileSpecPeriodic) { - v.value = val - v.isSet = true -} - -func (v NullablePollingProfileSpecPeriodic) IsSet() bool { - return v.isSet -} - -func (v *NullablePollingProfileSpecPeriodic) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePollingProfileSpecPeriodic(val *PollingProfileSpecPeriodic) *NullablePollingProfileSpecPeriodic { - return &NullablePollingProfileSpecPeriodic{value: val, isSet: true} -} - -func (v NullablePollingProfileSpecPeriodic) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePollingProfileSpecPeriodic) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_required_gates_result.go b/openapi/model_required_gates_result.go deleted file mode 100644 index a21fb51..0000000 --- a/openapi/model_required_gates_result.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the RequiredGatesResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RequiredGatesResult{} - -// RequiredGatesResult struct for RequiredGatesResult -type RequiredGatesResult struct { - Required []SupportedGates `json:"required"` - Failed []SupportedGates `json:"failed"` - Passed bool `json:"passed"` -} - -// NewRequiredGatesResult instantiates a new RequiredGatesResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRequiredGatesResult(required []SupportedGates, failed []SupportedGates, passed bool) *RequiredGatesResult { - this := RequiredGatesResult{} - this.Required = required - this.Failed = failed - this.Passed = passed - return &this -} - -// NewRequiredGatesResultWithDefaults instantiates a new RequiredGatesResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRequiredGatesResultWithDefaults() *RequiredGatesResult { - this := RequiredGatesResult{} - return &this -} - -// GetRequired returns the Required field value -func (o *RequiredGatesResult) GetRequired() []SupportedGates { - if o == nil { - var ret []SupportedGates - return ret - } - - return o.Required -} - -// GetRequiredOk returns a tuple with the Required field value -// and a boolean to check if the value has been set. -func (o *RequiredGatesResult) GetRequiredOk() ([]SupportedGates, bool) { - if o == nil { - return nil, false - } - return o.Required, true -} - -// SetRequired sets field value -func (o *RequiredGatesResult) SetRequired(v []SupportedGates) { - o.Required = v -} - -// GetFailed returns the Failed field value -func (o *RequiredGatesResult) GetFailed() []SupportedGates { - if o == nil { - var ret []SupportedGates - return ret - } - - return o.Failed -} - -// GetFailedOk returns a tuple with the Failed field value -// and a boolean to check if the value has been set. -func (o *RequiredGatesResult) GetFailedOk() ([]SupportedGates, bool) { - if o == nil { - return nil, false - } - return o.Failed, true -} - -// SetFailed sets field value -func (o *RequiredGatesResult) SetFailed(v []SupportedGates) { - o.Failed = v -} - -// GetPassed returns the Passed field value -func (o *RequiredGatesResult) GetPassed() bool { - if o == nil { - var ret bool - return ret - } - - return o.Passed -} - -// GetPassedOk returns a tuple with the Passed field value -// and a boolean to check if the value has been set. -func (o *RequiredGatesResult) GetPassedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Passed, true -} - -// SetPassed sets field value -func (o *RequiredGatesResult) SetPassed(v bool) { - o.Passed = v -} - -func (o RequiredGatesResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RequiredGatesResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["required"] = o.Required - toSerialize["failed"] = o.Failed - toSerialize["passed"] = o.Passed - return toSerialize, nil -} - -type NullableRequiredGatesResult struct { - value *RequiredGatesResult - isSet bool -} - -func (v NullableRequiredGatesResult) Get() *RequiredGatesResult { - return v.value -} - -func (v *NullableRequiredGatesResult) Set(val *RequiredGatesResult) { - v.value = val - v.isSet = true -} - -func (v NullableRequiredGatesResult) IsSet() bool { - return v.isSet -} - -func (v *NullableRequiredGatesResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRequiredGatesResult(val *RequiredGatesResult) *NullableRequiredGatesResult { - return &NullableRequiredGatesResult{value: val, isSet: true} -} - -func (v NullableRequiredGatesResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRequiredGatesResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_resolve_context.go b/openapi/model_resolve_context.go deleted file mode 100644 index 3727db8..0000000 --- a/openapi/model_resolve_context.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ResolveContext type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ResolveContext{} - -// ResolveContext struct for ResolveContext -type ResolveContext struct { - TestId *string `json:"testId,omitempty"` - RunId *int32 `json:"runId,omitempty"` - SpanId *string `json:"spanId,omitempty"` - Selector *string `json:"selector,omitempty"` - VariableSetId *string `json:"variableSetId,omitempty"` -} - -// NewResolveContext instantiates a new ResolveContext object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewResolveContext() *ResolveContext { - this := ResolveContext{} - return &this -} - -// NewResolveContextWithDefaults instantiates a new ResolveContext object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewResolveContextWithDefaults() *ResolveContext { - this := ResolveContext{} - return &this -} - -// GetTestId returns the TestId field value if set, zero value otherwise. -func (o *ResolveContext) GetTestId() string { - if o == nil || isNil(o.TestId) { - var ret string - return ret - } - return *o.TestId -} - -// GetTestIdOk returns a tuple with the TestId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveContext) GetTestIdOk() (*string, bool) { - if o == nil || isNil(o.TestId) { - return nil, false - } - return o.TestId, true -} - -// HasTestId returns a boolean if a field has been set. -func (o *ResolveContext) HasTestId() bool { - if o != nil && !isNil(o.TestId) { - return true - } - - return false -} - -// SetTestId gets a reference to the given string and assigns it to the TestId field. -func (o *ResolveContext) SetTestId(v string) { - o.TestId = &v -} - -// GetRunId returns the RunId field value if set, zero value otherwise. -func (o *ResolveContext) GetRunId() int32 { - if o == nil || isNil(o.RunId) { - var ret int32 - return ret - } - return *o.RunId -} - -// GetRunIdOk returns a tuple with the RunId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveContext) GetRunIdOk() (*int32, bool) { - if o == nil || isNil(o.RunId) { - return nil, false - } - return o.RunId, true -} - -// HasRunId returns a boolean if a field has been set. -func (o *ResolveContext) HasRunId() bool { - if o != nil && !isNil(o.RunId) { - return true - } - - return false -} - -// SetRunId gets a reference to the given int32 and assigns it to the RunId field. -func (o *ResolveContext) SetRunId(v int32) { - o.RunId = &v -} - -// GetSpanId returns the SpanId field value if set, zero value otherwise. -func (o *ResolveContext) GetSpanId() string { - if o == nil || isNil(o.SpanId) { - var ret string - return ret - } - return *o.SpanId -} - -// GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveContext) GetSpanIdOk() (*string, bool) { - if o == nil || isNil(o.SpanId) { - return nil, false - } - return o.SpanId, true -} - -// HasSpanId returns a boolean if a field has been set. -func (o *ResolveContext) HasSpanId() bool { - if o != nil && !isNil(o.SpanId) { - return true - } - - return false -} - -// SetSpanId gets a reference to the given string and assigns it to the SpanId field. -func (o *ResolveContext) SetSpanId(v string) { - o.SpanId = &v -} - -// GetSelector returns the Selector field value if set, zero value otherwise. -func (o *ResolveContext) GetSelector() string { - if o == nil || isNil(o.Selector) { - var ret string - return ret - } - return *o.Selector -} - -// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveContext) GetSelectorOk() (*string, bool) { - if o == nil || isNil(o.Selector) { - return nil, false - } - return o.Selector, true -} - -// HasSelector returns a boolean if a field has been set. -func (o *ResolveContext) HasSelector() bool { - if o != nil && !isNil(o.Selector) { - return true - } - - return false -} - -// SetSelector gets a reference to the given string and assigns it to the Selector field. -func (o *ResolveContext) SetSelector(v string) { - o.Selector = &v -} - -// GetVariableSetId returns the VariableSetId field value if set, zero value otherwise. -func (o *ResolveContext) GetVariableSetId() string { - if o == nil || isNil(o.VariableSetId) { - var ret string - return ret - } - return *o.VariableSetId -} - -// GetVariableSetIdOk returns a tuple with the VariableSetId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveContext) GetVariableSetIdOk() (*string, bool) { - if o == nil || isNil(o.VariableSetId) { - return nil, false - } - return o.VariableSetId, true -} - -// HasVariableSetId returns a boolean if a field has been set. -func (o *ResolveContext) HasVariableSetId() bool { - if o != nil && !isNil(o.VariableSetId) { - return true - } - - return false -} - -// SetVariableSetId gets a reference to the given string and assigns it to the VariableSetId field. -func (o *ResolveContext) SetVariableSetId(v string) { - o.VariableSetId = &v -} - -func (o ResolveContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ResolveContext) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.TestId) { - toSerialize["testId"] = o.TestId - } - if !isNil(o.RunId) { - toSerialize["runId"] = o.RunId - } - if !isNil(o.SpanId) { - toSerialize["spanId"] = o.SpanId - } - if !isNil(o.Selector) { - toSerialize["selector"] = o.Selector - } - if !isNil(o.VariableSetId) { - toSerialize["variableSetId"] = o.VariableSetId - } - return toSerialize, nil -} - -type NullableResolveContext struct { - value *ResolveContext - isSet bool -} - -func (v NullableResolveContext) Get() *ResolveContext { - return v.value -} - -func (v *NullableResolveContext) Set(val *ResolveContext) { - v.value = val - v.isSet = true -} - -func (v NullableResolveContext) IsSet() bool { - return v.isSet -} - -func (v *NullableResolveContext) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableResolveContext(val *ResolveContext) *NullableResolveContext { - return &NullableResolveContext{value: val, isSet: true} -} - -func (v NullableResolveContext) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableResolveContext) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_resolve_request_info.go b/openapi/model_resolve_request_info.go deleted file mode 100644 index 1e0de64..0000000 --- a/openapi/model_resolve_request_info.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ResolveRequestInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ResolveRequestInfo{} - -// ResolveRequestInfo struct for ResolveRequestInfo -type ResolveRequestInfo struct { - Expression *string `json:"expression,omitempty"` - Context *ResolveContext `json:"context,omitempty"` -} - -// NewResolveRequestInfo instantiates a new ResolveRequestInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewResolveRequestInfo() *ResolveRequestInfo { - this := ResolveRequestInfo{} - return &this -} - -// NewResolveRequestInfoWithDefaults instantiates a new ResolveRequestInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewResolveRequestInfoWithDefaults() *ResolveRequestInfo { - this := ResolveRequestInfo{} - return &this -} - -// GetExpression returns the Expression field value if set, zero value otherwise. -func (o *ResolveRequestInfo) GetExpression() string { - if o == nil || isNil(o.Expression) { - var ret string - return ret - } - return *o.Expression -} - -// GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveRequestInfo) GetExpressionOk() (*string, bool) { - if o == nil || isNil(o.Expression) { - return nil, false - } - return o.Expression, true -} - -// HasExpression returns a boolean if a field has been set. -func (o *ResolveRequestInfo) HasExpression() bool { - if o != nil && !isNil(o.Expression) { - return true - } - - return false -} - -// SetExpression gets a reference to the given string and assigns it to the Expression field. -func (o *ResolveRequestInfo) SetExpression(v string) { - o.Expression = &v -} - -// GetContext returns the Context field value if set, zero value otherwise. -func (o *ResolveRequestInfo) GetContext() ResolveContext { - if o == nil || isNil(o.Context) { - var ret ResolveContext - return ret - } - return *o.Context -} - -// GetContextOk returns a tuple with the Context field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveRequestInfo) GetContextOk() (*ResolveContext, bool) { - if o == nil || isNil(o.Context) { - return nil, false - } - return o.Context, true -} - -// HasContext returns a boolean if a field has been set. -func (o *ResolveRequestInfo) HasContext() bool { - if o != nil && !isNil(o.Context) { - return true - } - - return false -} - -// SetContext gets a reference to the given ResolveContext and assigns it to the Context field. -func (o *ResolveRequestInfo) SetContext(v ResolveContext) { - o.Context = &v -} - -func (o ResolveRequestInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ResolveRequestInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Expression) { - toSerialize["expression"] = o.Expression - } - if !isNil(o.Context) { - toSerialize["context"] = o.Context - } - return toSerialize, nil -} - -type NullableResolveRequestInfo struct { - value *ResolveRequestInfo - isSet bool -} - -func (v NullableResolveRequestInfo) Get() *ResolveRequestInfo { - return v.value -} - -func (v *NullableResolveRequestInfo) Set(val *ResolveRequestInfo) { - v.value = val - v.isSet = true -} - -func (v NullableResolveRequestInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableResolveRequestInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableResolveRequestInfo(val *ResolveRequestInfo) *NullableResolveRequestInfo { - return &NullableResolveRequestInfo{value: val, isSet: true} -} - -func (v NullableResolveRequestInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableResolveRequestInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_resolve_response_info.go b/openapi/model_resolve_response_info.go deleted file mode 100644 index cfae053..0000000 --- a/openapi/model_resolve_response_info.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ResolveResponseInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ResolveResponseInfo{} - -// ResolveResponseInfo struct for ResolveResponseInfo -type ResolveResponseInfo struct { - ResolvedValues []string `json:"resolvedValues,omitempty"` -} - -// NewResolveResponseInfo instantiates a new ResolveResponseInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewResolveResponseInfo() *ResolveResponseInfo { - this := ResolveResponseInfo{} - return &this -} - -// NewResolveResponseInfoWithDefaults instantiates a new ResolveResponseInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewResolveResponseInfoWithDefaults() *ResolveResponseInfo { - this := ResolveResponseInfo{} - return &this -} - -// GetResolvedValues returns the ResolvedValues field value if set, zero value otherwise. -func (o *ResolveResponseInfo) GetResolvedValues() []string { - if o == nil || isNil(o.ResolvedValues) { - var ret []string - return ret - } - return o.ResolvedValues -} - -// GetResolvedValuesOk returns a tuple with the ResolvedValues field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResolveResponseInfo) GetResolvedValuesOk() ([]string, bool) { - if o == nil || isNil(o.ResolvedValues) { - return nil, false - } - return o.ResolvedValues, true -} - -// HasResolvedValues returns a boolean if a field has been set. -func (o *ResolveResponseInfo) HasResolvedValues() bool { - if o != nil && !isNil(o.ResolvedValues) { - return true - } - - return false -} - -// SetResolvedValues gets a reference to the given []string and assigns it to the ResolvedValues field. -func (o *ResolveResponseInfo) SetResolvedValues(v []string) { - o.ResolvedValues = v -} - -func (o ResolveResponseInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ResolveResponseInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ResolvedValues) { - toSerialize["resolvedValues"] = o.ResolvedValues - } - return toSerialize, nil -} - -type NullableResolveResponseInfo struct { - value *ResolveResponseInfo - isSet bool -} - -func (v NullableResolveResponseInfo) Get() *ResolveResponseInfo { - return v.value -} - -func (v *NullableResolveResponseInfo) Set(val *ResolveResponseInfo) { - v.value = val - v.isSet = true -} - -func (v NullableResolveResponseInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableResolveResponseInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableResolveResponseInfo(val *ResolveResponseInfo) *NullableResolveResponseInfo { - return &NullableResolveResponseInfo{value: val, isSet: true} -} - -func (v NullableResolveResponseInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableResolveResponseInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_resource.go b/openapi/model_resource.go deleted file mode 100644 index 8dc5026..0000000 --- a/openapi/model_resource.go +++ /dev/null @@ -1,146 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Resource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Resource{} - -// Resource struct for Resource -type Resource struct { - Type string `json:"type"` - Item interface{} `json:"item"` -} - -// NewResource instantiates a new Resource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewResource(type_ string, item interface{}) *Resource { - this := Resource{} - this.Type = type_ - this.Item = item - return &this -} - -// NewResourceWithDefaults instantiates a new Resource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewResourceWithDefaults() *Resource { - this := Resource{} - return &this -} - -// GetType returns the Type field value -func (o *Resource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *Resource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *Resource) SetType(v string) { - o.Type = v -} - -// GetItem returns the Item field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *Resource) GetItem() interface{} { - if o == nil { - var ret interface{} - return ret - } - - return o.Item -} - -// GetItemOk returns a tuple with the Item field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Resource) GetItemOk() (*interface{}, bool) { - if o == nil || isNil(o.Item) { - return nil, false - } - return &o.Item, true -} - -// SetItem sets field value -func (o *Resource) SetItem(v interface{}) { - o.Item = v -} - -func (o Resource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Resource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - // skip: type is readOnly - if o.Item != nil { - toSerialize["item"] = o.Item - } - return toSerialize, nil -} - -type NullableResource struct { - value *Resource - isSet bool -} - -func (v NullableResource) Get() *Resource { - return v.value -} - -func (v *NullableResource) Set(val *Resource) { - v.value = val - v.isSet = true -} - -func (v NullableResource) IsSet() bool { - return v.isSet -} - -func (v *NullableResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableResource(val *Resource) *NullableResource { - return &NullableResource{value: val, isSet: true} -} - -func (v NullableResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_run_information.go b/openapi/model_run_information.go deleted file mode 100644 index c086c9c..0000000 --- a/openapi/model_run_information.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the RunInformation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RunInformation{} - -// RunInformation struct for RunInformation -type RunInformation struct { - Metadata map[string]string `json:"metadata,omitempty"` - VariableSetId *string `json:"variableSetId,omitempty"` - Variables []VariableSetValue `json:"variables,omitempty"` - RequiredGates []SupportedGates `json:"requiredGates,omitempty"` -} - -// NewRunInformation instantiates a new RunInformation object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRunInformation() *RunInformation { - this := RunInformation{} - return &this -} - -// NewRunInformationWithDefaults instantiates a new RunInformation object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRunInformationWithDefaults() *RunInformation { - this := RunInformation{} - return &this -} - -// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RunInformation) GetMetadata() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - return o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RunInformation) GetMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Metadata) { - return nil, false - } - return &o.Metadata, true -} - -// HasMetadata returns a boolean if a field has been set. -func (o *RunInformation) HasMetadata() bool { - if o != nil && isNil(o.Metadata) { - return true - } - - return false -} - -// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. -func (o *RunInformation) SetMetadata(v map[string]string) { - o.Metadata = v -} - -// GetVariableSetId returns the VariableSetId field value if set, zero value otherwise. -func (o *RunInformation) GetVariableSetId() string { - if o == nil || isNil(o.VariableSetId) { - var ret string - return ret - } - return *o.VariableSetId -} - -// GetVariableSetIdOk returns a tuple with the VariableSetId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RunInformation) GetVariableSetIdOk() (*string, bool) { - if o == nil || isNil(o.VariableSetId) { - return nil, false - } - return o.VariableSetId, true -} - -// HasVariableSetId returns a boolean if a field has been set. -func (o *RunInformation) HasVariableSetId() bool { - if o != nil && !isNil(o.VariableSetId) { - return true - } - - return false -} - -// SetVariableSetId gets a reference to the given string and assigns it to the VariableSetId field. -func (o *RunInformation) SetVariableSetId(v string) { - o.VariableSetId = &v -} - -// GetVariables returns the Variables field value if set, zero value otherwise. -func (o *RunInformation) GetVariables() []VariableSetValue { - if o == nil || isNil(o.Variables) { - var ret []VariableSetValue - return ret - } - return o.Variables -} - -// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RunInformation) GetVariablesOk() ([]VariableSetValue, bool) { - if o == nil || isNil(o.Variables) { - return nil, false - } - return o.Variables, true -} - -// HasVariables returns a boolean if a field has been set. -func (o *RunInformation) HasVariables() bool { - if o != nil && !isNil(o.Variables) { - return true - } - - return false -} - -// SetVariables gets a reference to the given []VariableSetValue and assigns it to the Variables field. -func (o *RunInformation) SetVariables(v []VariableSetValue) { - o.Variables = v -} - -// GetRequiredGates returns the RequiredGates field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RunInformation) GetRequiredGates() []SupportedGates { - if o == nil { - var ret []SupportedGates - return ret - } - return o.RequiredGates -} - -// GetRequiredGatesOk returns a tuple with the RequiredGates field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RunInformation) GetRequiredGatesOk() ([]SupportedGates, bool) { - if o == nil || isNil(o.RequiredGates) { - return nil, false - } - return o.RequiredGates, true -} - -// HasRequiredGates returns a boolean if a field has been set. -func (o *RunInformation) HasRequiredGates() bool { - if o != nil && isNil(o.RequiredGates) { - return true - } - - return false -} - -// SetRequiredGates gets a reference to the given []SupportedGates and assigns it to the RequiredGates field. -func (o *RunInformation) SetRequiredGates(v []SupportedGates) { - o.RequiredGates = v -} - -func (o RunInformation) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RunInformation) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Metadata != nil { - toSerialize["metadata"] = o.Metadata - } - if !isNil(o.VariableSetId) { - toSerialize["variableSetId"] = o.VariableSetId - } - if !isNil(o.Variables) { - toSerialize["variables"] = o.Variables - } - if o.RequiredGates != nil { - toSerialize["requiredGates"] = o.RequiredGates - } - return toSerialize, nil -} - -type NullableRunInformation struct { - value *RunInformation - isSet bool -} - -func (v NullableRunInformation) Get() *RunInformation { - return v.value -} - -func (v *NullableRunInformation) Set(val *RunInformation) { - v.value = val - v.isSet = true -} - -func (v NullableRunInformation) IsSet() bool { - return v.isSet -} - -func (v *NullableRunInformation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunInformation(val *RunInformation) *NullableRunInformation { - return &NullableRunInformation{value: val, isSet: true} -} - -func (v NullableRunInformation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRunInformation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_selected_spans_result.go b/openapi/model_selected_spans_result.go deleted file mode 100644 index b00553d..0000000 --- a/openapi/model_selected_spans_result.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SelectedSpansResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SelectedSpansResult{} - -// SelectedSpansResult struct for SelectedSpansResult -type SelectedSpansResult struct { - Selector *Selector `json:"selector,omitempty"` - SpanIds []string `json:"spanIds,omitempty"` -} - -// NewSelectedSpansResult instantiates a new SelectedSpansResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSelectedSpansResult() *SelectedSpansResult { - this := SelectedSpansResult{} - return &this -} - -// NewSelectedSpansResultWithDefaults instantiates a new SelectedSpansResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSelectedSpansResultWithDefaults() *SelectedSpansResult { - this := SelectedSpansResult{} - return &this -} - -// GetSelector returns the Selector field value if set, zero value otherwise. -func (o *SelectedSpansResult) GetSelector() Selector { - if o == nil || isNil(o.Selector) { - var ret Selector - return ret - } - return *o.Selector -} - -// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SelectedSpansResult) GetSelectorOk() (*Selector, bool) { - if o == nil || isNil(o.Selector) { - return nil, false - } - return o.Selector, true -} - -// HasSelector returns a boolean if a field has been set. -func (o *SelectedSpansResult) HasSelector() bool { - if o != nil && !isNil(o.Selector) { - return true - } - - return false -} - -// SetSelector gets a reference to the given Selector and assigns it to the Selector field. -func (o *SelectedSpansResult) SetSelector(v Selector) { - o.Selector = &v -} - -// GetSpanIds returns the SpanIds field value if set, zero value otherwise. -func (o *SelectedSpansResult) GetSpanIds() []string { - if o == nil || isNil(o.SpanIds) { - var ret []string - return ret - } - return o.SpanIds -} - -// GetSpanIdsOk returns a tuple with the SpanIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SelectedSpansResult) GetSpanIdsOk() ([]string, bool) { - if o == nil || isNil(o.SpanIds) { - return nil, false - } - return o.SpanIds, true -} - -// HasSpanIds returns a boolean if a field has been set. -func (o *SelectedSpansResult) HasSpanIds() bool { - if o != nil && !isNil(o.SpanIds) { - return true - } - - return false -} - -// SetSpanIds gets a reference to the given []string and assigns it to the SpanIds field. -func (o *SelectedSpansResult) SetSpanIds(v []string) { - o.SpanIds = v -} - -func (o SelectedSpansResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SelectedSpansResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Selector) { - toSerialize["selector"] = o.Selector - } - if !isNil(o.SpanIds) { - toSerialize["spanIds"] = o.SpanIds - } - return toSerialize, nil -} - -type NullableSelectedSpansResult struct { - value *SelectedSpansResult - isSet bool -} - -func (v NullableSelectedSpansResult) Get() *SelectedSpansResult { - return v.value -} - -func (v *NullableSelectedSpansResult) Set(val *SelectedSpansResult) { - v.value = val - v.isSet = true -} - -func (v NullableSelectedSpansResult) IsSet() bool { - return v.isSet -} - -func (v *NullableSelectedSpansResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSelectedSpansResult(val *SelectedSpansResult) *NullableSelectedSpansResult { - return &NullableSelectedSpansResult{value: val, isSet: true} -} - -func (v NullableSelectedSpansResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSelectedSpansResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_selector.go b/openapi/model_selector.go deleted file mode 100644 index 060429a..0000000 --- a/openapi/model_selector.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Selector type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Selector{} - -// Selector struct for Selector -type Selector struct { - Query *string `json:"query,omitempty"` - Structure []SpanSelector `json:"structure,omitempty"` -} - -// NewSelector instantiates a new Selector object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSelector() *Selector { - this := Selector{} - return &this -} - -// NewSelectorWithDefaults instantiates a new Selector object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSelectorWithDefaults() *Selector { - this := Selector{} - return &this -} - -// GetQuery returns the Query field value if set, zero value otherwise. -func (o *Selector) GetQuery() string { - if o == nil || isNil(o.Query) { - var ret string - return ret - } - return *o.Query -} - -// GetQueryOk returns a tuple with the Query field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Selector) GetQueryOk() (*string, bool) { - if o == nil || isNil(o.Query) { - return nil, false - } - return o.Query, true -} - -// HasQuery returns a boolean if a field has been set. -func (o *Selector) HasQuery() bool { - if o != nil && !isNil(o.Query) { - return true - } - - return false -} - -// SetQuery gets a reference to the given string and assigns it to the Query field. -func (o *Selector) SetQuery(v string) { - o.Query = &v -} - -// GetStructure returns the Structure field value if set, zero value otherwise. -func (o *Selector) GetStructure() []SpanSelector { - if o == nil || isNil(o.Structure) { - var ret []SpanSelector - return ret - } - return o.Structure -} - -// GetStructureOk returns a tuple with the Structure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Selector) GetStructureOk() ([]SpanSelector, bool) { - if o == nil || isNil(o.Structure) { - return nil, false - } - return o.Structure, true -} - -// HasStructure returns a boolean if a field has been set. -func (o *Selector) HasStructure() bool { - if o != nil && !isNil(o.Structure) { - return true - } - - return false -} - -// SetStructure gets a reference to the given []SpanSelector and assigns it to the Structure field. -func (o *Selector) SetStructure(v []SpanSelector) { - o.Structure = v -} - -func (o Selector) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Selector) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Query) { - toSerialize["query"] = o.Query - } - if !isNil(o.Structure) { - toSerialize["structure"] = o.Structure - } - return toSerialize, nil -} - -type NullableSelector struct { - value *Selector - isSet bool -} - -func (v NullableSelector) Get() *Selector { - return v.value -} - -func (v *NullableSelector) Set(val *Selector) { - v.value = val - v.isSet = true -} - -func (v NullableSelector) IsSet() bool { - return v.isSet -} - -func (v *NullableSelector) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSelector(val *Selector) *NullableSelector { - return &NullableSelector{value: val, isSet: true} -} - -func (v NullableSelector) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSelector) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_selector_filter.go b/openapi/model_selector_filter.go deleted file mode 100644 index ca2c171..0000000 --- a/openapi/model_selector_filter.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SelectorFilter type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SelectorFilter{} - -// SelectorFilter struct for SelectorFilter -type SelectorFilter struct { - Property string `json:"property"` - Operator string `json:"operator"` - Value string `json:"value"` -} - -// NewSelectorFilter instantiates a new SelectorFilter object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSelectorFilter(property string, operator string, value string) *SelectorFilter { - this := SelectorFilter{} - this.Property = property - this.Operator = operator - this.Value = value - return &this -} - -// NewSelectorFilterWithDefaults instantiates a new SelectorFilter object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSelectorFilterWithDefaults() *SelectorFilter { - this := SelectorFilter{} - return &this -} - -// GetProperty returns the Property field value -func (o *SelectorFilter) GetProperty() string { - if o == nil { - var ret string - return ret - } - - return o.Property -} - -// GetPropertyOk returns a tuple with the Property field value -// and a boolean to check if the value has been set. -func (o *SelectorFilter) GetPropertyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Property, true -} - -// SetProperty sets field value -func (o *SelectorFilter) SetProperty(v string) { - o.Property = v -} - -// GetOperator returns the Operator field value -func (o *SelectorFilter) GetOperator() string { - if o == nil { - var ret string - return ret - } - - return o.Operator -} - -// GetOperatorOk returns a tuple with the Operator field value -// and a boolean to check if the value has been set. -func (o *SelectorFilter) GetOperatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Operator, true -} - -// SetOperator sets field value -func (o *SelectorFilter) SetOperator(v string) { - o.Operator = v -} - -// GetValue returns the Value field value -func (o *SelectorFilter) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *SelectorFilter) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *SelectorFilter) SetValue(v string) { - o.Value = v -} - -func (o SelectorFilter) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SelectorFilter) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["property"] = o.Property - toSerialize["operator"] = o.Operator - toSerialize["value"] = o.Value - return toSerialize, nil -} - -type NullableSelectorFilter struct { - value *SelectorFilter - isSet bool -} - -func (v NullableSelectorFilter) Get() *SelectorFilter { - return v.value -} - -func (v *NullableSelectorFilter) Set(val *SelectorFilter) { - v.value = val - v.isSet = true -} - -func (v NullableSelectorFilter) IsSet() bool { - return v.isSet -} - -func (v *NullableSelectorFilter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSelectorFilter(val *SelectorFilter) *NullableSelectorFilter { - return &NullableSelectorFilter{value: val, isSet: true} -} - -func (v NullableSelectorFilter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSelectorFilter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_selector_pseudo_class.go b/openapi/model_selector_pseudo_class.go deleted file mode 100644 index e660842..0000000 --- a/openapi/model_selector_pseudo_class.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SelectorPseudoClass type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SelectorPseudoClass{} - -// SelectorPseudoClass struct for SelectorPseudoClass -type SelectorPseudoClass struct { - Name string `json:"name"` - Argument *int32 `json:"argument,omitempty"` -} - -// NewSelectorPseudoClass instantiates a new SelectorPseudoClass object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSelectorPseudoClass(name string) *SelectorPseudoClass { - this := SelectorPseudoClass{} - this.Name = name - return &this -} - -// NewSelectorPseudoClassWithDefaults instantiates a new SelectorPseudoClass object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSelectorPseudoClassWithDefaults() *SelectorPseudoClass { - this := SelectorPseudoClass{} - return &this -} - -// GetName returns the Name field value -func (o *SelectorPseudoClass) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *SelectorPseudoClass) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *SelectorPseudoClass) SetName(v string) { - o.Name = v -} - -// GetArgument returns the Argument field value if set, zero value otherwise. -func (o *SelectorPseudoClass) GetArgument() int32 { - if o == nil || isNil(o.Argument) { - var ret int32 - return ret - } - return *o.Argument -} - -// GetArgumentOk returns a tuple with the Argument field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SelectorPseudoClass) GetArgumentOk() (*int32, bool) { - if o == nil || isNil(o.Argument) { - return nil, false - } - return o.Argument, true -} - -// HasArgument returns a boolean if a field has been set. -func (o *SelectorPseudoClass) HasArgument() bool { - if o != nil && !isNil(o.Argument) { - return true - } - - return false -} - -// SetArgument gets a reference to the given int32 and assigns it to the Argument field. -func (o *SelectorPseudoClass) SetArgument(v int32) { - o.Argument = &v -} - -func (o SelectorPseudoClass) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SelectorPseudoClass) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - if !isNil(o.Argument) { - toSerialize["argument"] = o.Argument - } - return toSerialize, nil -} - -type NullableSelectorPseudoClass struct { - value *SelectorPseudoClass - isSet bool -} - -func (v NullableSelectorPseudoClass) Get() *SelectorPseudoClass { - return v.value -} - -func (v *NullableSelectorPseudoClass) Set(val *SelectorPseudoClass) { - v.value = val - v.isSet = true -} - -func (v NullableSelectorPseudoClass) IsSet() bool { - return v.isSet -} - -func (v *NullableSelectorPseudoClass) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSelectorPseudoClass(val *SelectorPseudoClass) *NullableSelectorPseudoClass { - return &NullableSelectorPseudoClass{value: val, isSet: true} -} - -func (v NullableSelectorPseudoClass) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSelectorPseudoClass) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_signal_fx.go b/openapi/model_signal_fx.go deleted file mode 100644 index 5bb08be..0000000 --- a/openapi/model_signal_fx.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SignalFX type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SignalFX{} - -// SignalFX struct for SignalFX -type SignalFX struct { - Realm *string `json:"realm,omitempty"` - Token *string `json:"token,omitempty"` -} - -// NewSignalFX instantiates a new SignalFX object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSignalFX() *SignalFX { - this := SignalFX{} - return &this -} - -// NewSignalFXWithDefaults instantiates a new SignalFX object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSignalFXWithDefaults() *SignalFX { - this := SignalFX{} - return &this -} - -// GetRealm returns the Realm field value if set, zero value otherwise. -func (o *SignalFX) GetRealm() string { - if o == nil || isNil(o.Realm) { - var ret string - return ret - } - return *o.Realm -} - -// GetRealmOk returns a tuple with the Realm field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SignalFX) GetRealmOk() (*string, bool) { - if o == nil || isNil(o.Realm) { - return nil, false - } - return o.Realm, true -} - -// HasRealm returns a boolean if a field has been set. -func (o *SignalFX) HasRealm() bool { - if o != nil && !isNil(o.Realm) { - return true - } - - return false -} - -// SetRealm gets a reference to the given string and assigns it to the Realm field. -func (o *SignalFX) SetRealm(v string) { - o.Realm = &v -} - -// GetToken returns the Token field value if set, zero value otherwise. -func (o *SignalFX) GetToken() string { - if o == nil || isNil(o.Token) { - var ret string - return ret - } - return *o.Token -} - -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SignalFX) GetTokenOk() (*string, bool) { - if o == nil || isNil(o.Token) { - return nil, false - } - return o.Token, true -} - -// HasToken returns a boolean if a field has been set. -func (o *SignalFX) HasToken() bool { - if o != nil && !isNil(o.Token) { - return true - } - - return false -} - -// SetToken gets a reference to the given string and assigns it to the Token field. -func (o *SignalFX) SetToken(v string) { - o.Token = &v -} - -func (o SignalFX) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SignalFX) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Realm) { - toSerialize["realm"] = o.Realm - } - if !isNil(o.Token) { - toSerialize["token"] = o.Token - } - return toSerialize, nil -} - -type NullableSignalFX struct { - value *SignalFX - isSet bool -} - -func (v NullableSignalFX) Get() *SignalFX { - return v.value -} - -func (v *NullableSignalFX) Set(val *SignalFX) { - v.value = val - v.isSet = true -} - -func (v NullableSignalFX) IsSet() bool { - return v.isSet -} - -func (v *NullableSignalFX) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSignalFX(val *SignalFX) *NullableSignalFX { - return &NullableSignalFX{value: val, isSet: true} -} - -func (v NullableSignalFX) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSignalFX) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_span.go b/openapi/model_span.go deleted file mode 100644 index a01e672..0000000 --- a/openapi/model_span.go +++ /dev/null @@ -1,379 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Span type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Span{} - -// Span struct for Span -type Span struct { - Id *string `json:"id,omitempty"` - ParentId *string `json:"parentId,omitempty"` - Name *string `json:"name,omitempty"` - Kind *string `json:"kind,omitempty"` - // span start time in unix milli format - StartTime *int64 `json:"startTime,omitempty"` - // span end time in unix milli format - EndTime *int64 `json:"endTime,omitempty"` - // Key-Value of span attributes - Attributes *map[string]string `json:"attributes,omitempty"` - Children []Span `json:"children,omitempty"` -} - -// NewSpan instantiates a new Span object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSpan() *Span { - this := Span{} - return &this -} - -// NewSpanWithDefaults instantiates a new Span object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSpanWithDefaults() *Span { - this := Span{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *Span) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *Span) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *Span) SetId(v string) { - o.Id = &v -} - -// GetParentId returns the ParentId field value if set, zero value otherwise. -func (o *Span) GetParentId() string { - if o == nil || isNil(o.ParentId) { - var ret string - return ret - } - return *o.ParentId -} - -// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetParentIdOk() (*string, bool) { - if o == nil || isNil(o.ParentId) { - return nil, false - } - return o.ParentId, true -} - -// HasParentId returns a boolean if a field has been set. -func (o *Span) HasParentId() bool { - if o != nil && !isNil(o.ParentId) { - return true - } - - return false -} - -// SetParentId gets a reference to the given string and assigns it to the ParentId field. -func (o *Span) SetParentId(v string) { - o.ParentId = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *Span) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *Span) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *Span) SetName(v string) { - o.Name = &v -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *Span) GetKind() string { - if o == nil || isNil(o.Kind) { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetKindOk() (*string, bool) { - if o == nil || isNil(o.Kind) { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *Span) HasKind() bool { - if o != nil && !isNil(o.Kind) { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *Span) SetKind(v string) { - o.Kind = &v -} - -// GetStartTime returns the StartTime field value if set, zero value otherwise. -func (o *Span) GetStartTime() int64 { - if o == nil || isNil(o.StartTime) { - var ret int64 - return ret - } - return *o.StartTime -} - -// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetStartTimeOk() (*int64, bool) { - if o == nil || isNil(o.StartTime) { - return nil, false - } - return o.StartTime, true -} - -// HasStartTime returns a boolean if a field has been set. -func (o *Span) HasStartTime() bool { - if o != nil && !isNil(o.StartTime) { - return true - } - - return false -} - -// SetStartTime gets a reference to the given int64 and assigns it to the StartTime field. -func (o *Span) SetStartTime(v int64) { - o.StartTime = &v -} - -// GetEndTime returns the EndTime field value if set, zero value otherwise. -func (o *Span) GetEndTime() int64 { - if o == nil || isNil(o.EndTime) { - var ret int64 - return ret - } - return *o.EndTime -} - -// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetEndTimeOk() (*int64, bool) { - if o == nil || isNil(o.EndTime) { - return nil, false - } - return o.EndTime, true -} - -// HasEndTime returns a boolean if a field has been set. -func (o *Span) HasEndTime() bool { - if o != nil && !isNil(o.EndTime) { - return true - } - - return false -} - -// SetEndTime gets a reference to the given int64 and assigns it to the EndTime field. -func (o *Span) SetEndTime(v int64) { - o.EndTime = &v -} - -// GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *Span) GetAttributes() map[string]string { - if o == nil || isNil(o.Attributes) { - var ret map[string]string - return ret - } - return *o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetAttributesOk() (*map[string]string, bool) { - if o == nil || isNil(o.Attributes) { - return nil, false - } - return o.Attributes, true -} - -// HasAttributes returns a boolean if a field has been set. -func (o *Span) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { - return true - } - - return false -} - -// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. -func (o *Span) SetAttributes(v map[string]string) { - o.Attributes = &v -} - -// GetChildren returns the Children field value if set, zero value otherwise. -func (o *Span) GetChildren() []Span { - if o == nil || isNil(o.Children) { - var ret []Span - return ret - } - return o.Children -} - -// GetChildrenOk returns a tuple with the Children field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Span) GetChildrenOk() ([]Span, bool) { - if o == nil || isNil(o.Children) { - return nil, false - } - return o.Children, true -} - -// HasChildren returns a boolean if a field has been set. -func (o *Span) HasChildren() bool { - if o != nil && !isNil(o.Children) { - return true - } - - return false -} - -// SetChildren gets a reference to the given []Span and assigns it to the Children field. -func (o *Span) SetChildren(v []Span) { - o.Children = v -} - -func (o Span) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Span) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Kind) { - toSerialize["kind"] = o.Kind - } - if !isNil(o.StartTime) { - toSerialize["startTime"] = o.StartTime - } - if !isNil(o.EndTime) { - toSerialize["endTime"] = o.EndTime - } - if !isNil(o.Attributes) { - toSerialize["attributes"] = o.Attributes - } - if !isNil(o.Children) { - toSerialize["children"] = o.Children - } - return toSerialize, nil -} - -type NullableSpan struct { - value *Span - isSet bool -} - -func (v NullableSpan) Get() *Span { - return v.value -} - -func (v *NullableSpan) Set(val *Span) { - v.value = val - v.isSet = true -} - -func (v NullableSpan) IsSet() bool { - return v.isSet -} - -func (v *NullableSpan) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSpan(val *Span) *NullableSpan { - return &NullableSpan{value: val, isSet: true} -} - -func (v NullableSpan) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSpan) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_span_selector.go b/openapi/model_span_selector.go deleted file mode 100644 index 6f42d82..0000000 --- a/openapi/model_span_selector.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SpanSelector type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpanSelector{} - -// SpanSelector struct for SpanSelector -type SpanSelector struct { - Filters []SelectorFilter `json:"filters"` - PseudoClass NullableSelectorPseudoClass `json:"pseudoClass,omitempty"` - ChildSelector NullableSpanSelector `json:"childSelector,omitempty"` -} - -// NewSpanSelector instantiates a new SpanSelector object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSpanSelector(filters []SelectorFilter) *SpanSelector { - this := SpanSelector{} - this.Filters = filters - return &this -} - -// NewSpanSelectorWithDefaults instantiates a new SpanSelector object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSpanSelectorWithDefaults() *SpanSelector { - this := SpanSelector{} - return &this -} - -// GetFilters returns the Filters field value -func (o *SpanSelector) GetFilters() []SelectorFilter { - if o == nil { - var ret []SelectorFilter - return ret - } - - return o.Filters -} - -// GetFiltersOk returns a tuple with the Filters field value -// and a boolean to check if the value has been set. -func (o *SpanSelector) GetFiltersOk() ([]SelectorFilter, bool) { - if o == nil { - return nil, false - } - return o.Filters, true -} - -// SetFilters sets field value -func (o *SpanSelector) SetFilters(v []SelectorFilter) { - o.Filters = v -} - -// GetPseudoClass returns the PseudoClass field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SpanSelector) GetPseudoClass() SelectorPseudoClass { - if o == nil || isNil(o.PseudoClass.Get()) { - var ret SelectorPseudoClass - return ret - } - return *o.PseudoClass.Get() -} - -// GetPseudoClassOk returns a tuple with the PseudoClass field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SpanSelector) GetPseudoClassOk() (*SelectorPseudoClass, bool) { - if o == nil { - return nil, false - } - return o.PseudoClass.Get(), o.PseudoClass.IsSet() -} - -// HasPseudoClass returns a boolean if a field has been set. -func (o *SpanSelector) HasPseudoClass() bool { - if o != nil && o.PseudoClass.IsSet() { - return true - } - - return false -} - -// SetPseudoClass gets a reference to the given NullableSelectorPseudoClass and assigns it to the PseudoClass field. -func (o *SpanSelector) SetPseudoClass(v SelectorPseudoClass) { - o.PseudoClass.Set(&v) -} - -// SetPseudoClassNil sets the value for PseudoClass to be an explicit nil -func (o *SpanSelector) SetPseudoClassNil() { - o.PseudoClass.Set(nil) -} - -// UnsetPseudoClass ensures that no value is present for PseudoClass, not even an explicit nil -func (o *SpanSelector) UnsetPseudoClass() { - o.PseudoClass.Unset() -} - -// GetChildSelector returns the ChildSelector field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SpanSelector) GetChildSelector() SpanSelector { - if o == nil || isNil(o.ChildSelector.Get()) { - var ret SpanSelector - return ret - } - return *o.ChildSelector.Get() -} - -// GetChildSelectorOk returns a tuple with the ChildSelector field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SpanSelector) GetChildSelectorOk() (*SpanSelector, bool) { - if o == nil { - return nil, false - } - return o.ChildSelector.Get(), o.ChildSelector.IsSet() -} - -// HasChildSelector returns a boolean if a field has been set. -func (o *SpanSelector) HasChildSelector() bool { - if o != nil && o.ChildSelector.IsSet() { - return true - } - - return false -} - -// SetChildSelector gets a reference to the given NullableSpanSelector and assigns it to the ChildSelector field. -func (o *SpanSelector) SetChildSelector(v SpanSelector) { - o.ChildSelector.Set(&v) -} - -// SetChildSelectorNil sets the value for ChildSelector to be an explicit nil -func (o *SpanSelector) SetChildSelectorNil() { - o.ChildSelector.Set(nil) -} - -// UnsetChildSelector ensures that no value is present for ChildSelector, not even an explicit nil -func (o *SpanSelector) UnsetChildSelector() { - o.ChildSelector.Unset() -} - -func (o SpanSelector) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SpanSelector) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["filters"] = o.Filters - if o.PseudoClass.IsSet() { - toSerialize["pseudoClass"] = o.PseudoClass.Get() - } - if o.ChildSelector.IsSet() { - toSerialize["childSelector"] = o.ChildSelector.Get() - } - return toSerialize, nil -} - -type NullableSpanSelector struct { - value *SpanSelector - isSet bool -} - -func (v NullableSpanSelector) Get() *SpanSelector { - return v.value -} - -func (v *NullableSpanSelector) Set(val *SpanSelector) { - v.value = val - v.isSet = true -} - -func (v NullableSpanSelector) IsSet() bool { - return v.isSet -} - -func (v *NullableSpanSelector) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSpanSelector(val *SpanSelector) *NullableSpanSelector { - return &NullableSpanSelector{value: val, isSet: true} -} - -func (v NullableSpanSelector) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSpanSelector) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_supported_clients.go b/openapi/model_supported_clients.go deleted file mode 100644 index 896573c..0000000 --- a/openapi/model_supported_clients.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// SupportedClients the model 'SupportedClients' -type SupportedClients string - -// List of SupportedClients -const ( - HTTP SupportedClients = "http" - GRPC SupportedClients = "grpc" -) - -// All allowed values of SupportedClients enum -var AllowedSupportedClientsEnumValues = []SupportedClients{ - "http", - "grpc", -} - -func (v *SupportedClients) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := SupportedClients(value) - for _, existing := range AllowedSupportedClientsEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SupportedClients", value) -} - -// NewSupportedClientsFromValue returns a pointer to a valid SupportedClients -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSupportedClientsFromValue(v string) (*SupportedClients, error) { - ev := SupportedClients(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SupportedClients: valid values are %v", v, AllowedSupportedClientsEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v SupportedClients) IsValid() bool { - for _, existing := range AllowedSupportedClientsEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to SupportedClients value -func (v SupportedClients) Ptr() *SupportedClients { - return &v -} - -type NullableSupportedClients struct { - value *SupportedClients - isSet bool -} - -func (v NullableSupportedClients) Get() *SupportedClients { - return v.value -} - -func (v *NullableSupportedClients) Set(val *SupportedClients) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedClients) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedClients) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedClients(val *SupportedClients) *NullableSupportedClients { - return &NullableSupportedClients{value: val, isSet: true} -} - -func (v NullableSupportedClients) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedClients) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_supported_connection_types.go b/openapi/model_supported_connection_types.go deleted file mode 100644 index 63df8d8..0000000 --- a/openapi/model_supported_connection_types.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// SupportedConnectionTypes the model 'SupportedConnectionTypes' -type SupportedConnectionTypes string - -// List of SupportedConnectionTypes -const ( - DIRECT SupportedConnectionTypes = "direct" - COLLECTOR SupportedConnectionTypes = "collector" -) - -// All allowed values of SupportedConnectionTypes enum -var AllowedSupportedConnectionTypesEnumValues = []SupportedConnectionTypes{ - "direct", - "collector", -} - -func (v *SupportedConnectionTypes) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := SupportedConnectionTypes(value) - for _, existing := range AllowedSupportedConnectionTypesEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SupportedConnectionTypes", value) -} - -// NewSupportedConnectionTypesFromValue returns a pointer to a valid SupportedConnectionTypes -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSupportedConnectionTypesFromValue(v string) (*SupportedConnectionTypes, error) { - ev := SupportedConnectionTypes(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SupportedConnectionTypes: valid values are %v", v, AllowedSupportedConnectionTypesEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v SupportedConnectionTypes) IsValid() bool { - for _, existing := range AllowedSupportedConnectionTypesEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to SupportedConnectionTypes value -func (v SupportedConnectionTypes) Ptr() *SupportedConnectionTypes { - return &v -} - -type NullableSupportedConnectionTypes struct { - value *SupportedConnectionTypes - isSet bool -} - -func (v NullableSupportedConnectionTypes) Get() *SupportedConnectionTypes { - return v.value -} - -func (v *NullableSupportedConnectionTypes) Set(val *SupportedConnectionTypes) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedConnectionTypes) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedConnectionTypes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedConnectionTypes(val *SupportedConnectionTypes) *NullableSupportedConnectionTypes { - return &NullableSupportedConnectionTypes{value: val, isSet: true} -} - -func (v NullableSupportedConnectionTypes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedConnectionTypes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_supported_data_stores.go b/openapi/model_supported_data_stores.go deleted file mode 100644 index fd99489..0000000 --- a/openapi/model_supported_data_stores.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// SupportedDataStores the model 'SupportedDataStores' -type SupportedDataStores string - -// List of SupportedDataStores -const ( - AGENT SupportedDataStores = "agent" - JAEGER SupportedDataStores = "jaeger" - OPENSEARCH SupportedDataStores = "opensearch" - TEMPO SupportedDataStores = "tempo" - SIGNALFX SupportedDataStores = "signalfx" - OTLP SupportedDataStores = "otlp" - ELASTICAPM SupportedDataStores = "elasticapm" - NEWRELIC SupportedDataStores = "newrelic" - LIGHTSTEP SupportedDataStores = "lightstep" - DATADOG SupportedDataStores = "datadog" - AWSXRAY SupportedDataStores = "awsxray" - HONEYCOMB SupportedDataStores = "honeycomb" - AZUREAPPINSIGHTS SupportedDataStores = "azureappinsights" - SIGNOZ SupportedDataStores = "signoz" - DYNATRACE SupportedDataStores = "dynatrace" -) - -// All allowed values of SupportedDataStores enum -var AllowedSupportedDataStoresEnumValues = []SupportedDataStores{ - "agent", - "jaeger", - "opensearch", - "tempo", - "signalfx", - "otlp", - "elasticapm", - "newrelic", - "lightstep", - "datadog", - "awsxray", - "honeycomb", - "azureappinsights", - "signoz", - "dynatrace", -} - -func (v *SupportedDataStores) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := SupportedDataStores(value) - for _, existing := range AllowedSupportedDataStoresEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SupportedDataStores", value) -} - -// NewSupportedDataStoresFromValue returns a pointer to a valid SupportedDataStores -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSupportedDataStoresFromValue(v string) (*SupportedDataStores, error) { - ev := SupportedDataStores(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SupportedDataStores: valid values are %v", v, AllowedSupportedDataStoresEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v SupportedDataStores) IsValid() bool { - for _, existing := range AllowedSupportedDataStoresEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to SupportedDataStores value -func (v SupportedDataStores) Ptr() *SupportedDataStores { - return &v -} - -type NullableSupportedDataStores struct { - value *SupportedDataStores - isSet bool -} - -func (v NullableSupportedDataStores) Get() *SupportedDataStores { - return v.value -} - -func (v *NullableSupportedDataStores) Set(val *SupportedDataStores) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedDataStores) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedDataStores) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedDataStores(val *SupportedDataStores) *NullableSupportedDataStores { - return &NullableSupportedDataStores{value: val, isSet: true} -} - -func (v NullableSupportedDataStores) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedDataStores) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_supported_gates.go b/openapi/model_supported_gates.go deleted file mode 100644 index 9963f97..0000000 --- a/openapi/model_supported_gates.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// SupportedGates the model 'SupportedGates' -type SupportedGates string - -// List of SupportedGates -const ( - ANALYZER_SCORE SupportedGates = "analyzer-score" - ANALYZER_RULES SupportedGates = "analyzer-rules" - TEST_SPECS SupportedGates = "test-specs" -) - -// All allowed values of SupportedGates enum -var AllowedSupportedGatesEnumValues = []SupportedGates{ - "analyzer-score", - "analyzer-rules", - "test-specs", -} - -func (v *SupportedGates) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := SupportedGates(value) - for _, existing := range AllowedSupportedGatesEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SupportedGates", value) -} - -// NewSupportedGatesFromValue returns a pointer to a valid SupportedGates -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSupportedGatesFromValue(v string) (*SupportedGates, error) { - ev := SupportedGates(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SupportedGates: valid values are %v", v, AllowedSupportedGatesEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v SupportedGates) IsValid() bool { - for _, existing := range AllowedSupportedGatesEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to SupportedGates value -func (v SupportedGates) Ptr() *SupportedGates { - return &v -} - -type NullableSupportedGates struct { - value *SupportedGates - isSet bool -} - -func (v NullableSupportedGates) Get() *SupportedGates { - return v.value -} - -func (v *NullableSupportedGates) Set(val *SupportedGates) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedGates) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedGates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedGates(val *SupportedGates) *NullableSupportedGates { - return &NullableSupportedGates{value: val, isSet: true} -} - -func (v NullableSupportedGates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedGates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_.go b/openapi/model_test_.go deleted file mode 100644 index 794182c..0000000 --- a/openapi/model_test_.go +++ /dev/null @@ -1,414 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the Test type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Test{} - -// Test struct for Test -type Test struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - // version number of the test - Version *int32 `json:"version,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Trigger *Trigger `json:"trigger,omitempty"` - // specification of assertions that are going to be made - Specs []TestSpec `json:"specs,omitempty"` - // define test outputs, in a key/value format. The value is processed as an expression - Outputs []TestOutput `json:"outputs,omitempty"` - Summary *TestSummary `json:"summary,omitempty"` -} - -// NewTest instantiates a new Test object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTest() *Test { - this := Test{} - return &this -} - -// NewTestWithDefaults instantiates a new Test object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestWithDefaults() *Test { - this := Test{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *Test) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *Test) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *Test) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *Test) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *Test) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *Test) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *Test) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *Test) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *Test) SetDescription(v string) { - o.Description = &v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *Test) GetVersion() int32 { - if o == nil || isNil(o.Version) { - var ret int32 - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetVersionOk() (*int32, bool) { - if o == nil || isNil(o.Version) { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *Test) HasVersion() bool { - if o != nil && !isNil(o.Version) { - return true - } - - return false -} - -// SetVersion gets a reference to the given int32 and assigns it to the Version field. -func (o *Test) SetVersion(v int32) { - o.Version = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *Test) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *Test) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *Test) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetTrigger returns the Trigger field value if set, zero value otherwise. -func (o *Test) GetTrigger() Trigger { - if o == nil || isNil(o.Trigger) { - var ret Trigger - return ret - } - return *o.Trigger -} - -// GetTriggerOk returns a tuple with the Trigger field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetTriggerOk() (*Trigger, bool) { - if o == nil || isNil(o.Trigger) { - return nil, false - } - return o.Trigger, true -} - -// HasTrigger returns a boolean if a field has been set. -func (o *Test) HasTrigger() bool { - if o != nil && !isNil(o.Trigger) { - return true - } - - return false -} - -// SetTrigger gets a reference to the given Trigger and assigns it to the Trigger field. -func (o *Test) SetTrigger(v Trigger) { - o.Trigger = &v -} - -// GetSpecs returns the Specs field value if set, zero value otherwise. -func (o *Test) GetSpecs() []TestSpec { - if o == nil || isNil(o.Specs) { - var ret []TestSpec - return ret - } - return o.Specs -} - -// GetSpecsOk returns a tuple with the Specs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetSpecsOk() ([]TestSpec, bool) { - if o == nil || isNil(o.Specs) { - return nil, false - } - return o.Specs, true -} - -// HasSpecs returns a boolean if a field has been set. -func (o *Test) HasSpecs() bool { - if o != nil && !isNil(o.Specs) { - return true - } - - return false -} - -// SetSpecs gets a reference to the given []TestSpec and assigns it to the Specs field. -func (o *Test) SetSpecs(v []TestSpec) { - o.Specs = v -} - -// GetOutputs returns the Outputs field value if set, zero value otherwise. -func (o *Test) GetOutputs() []TestOutput { - if o == nil || isNil(o.Outputs) { - var ret []TestOutput - return ret - } - return o.Outputs -} - -// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetOutputsOk() ([]TestOutput, bool) { - if o == nil || isNil(o.Outputs) { - return nil, false - } - return o.Outputs, true -} - -// HasOutputs returns a boolean if a field has been set. -func (o *Test) HasOutputs() bool { - if o != nil && !isNil(o.Outputs) { - return true - } - - return false -} - -// SetOutputs gets a reference to the given []TestOutput and assigns it to the Outputs field. -func (o *Test) SetOutputs(v []TestOutput) { - o.Outputs = v -} - -// GetSummary returns the Summary field value if set, zero value otherwise. -func (o *Test) GetSummary() TestSummary { - if o == nil || isNil(o.Summary) { - var ret TestSummary - return ret - } - return *o.Summary -} - -// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Test) GetSummaryOk() (*TestSummary, bool) { - if o == nil || isNil(o.Summary) { - return nil, false - } - return o.Summary, true -} - -// HasSummary returns a boolean if a field has been set. -func (o *Test) HasSummary() bool { - if o != nil && !isNil(o.Summary) { - return true - } - - return false -} - -// SetSummary gets a reference to the given TestSummary and assigns it to the Summary field. -func (o *Test) SetSummary(v TestSummary) { - o.Summary = &v -} - -func (o Test) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Test) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - // skip: id is readOnly - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.Version) { - toSerialize["version"] = o.Version - } - if !isNil(o.CreatedAt) { - toSerialize["createdAt"] = o.CreatedAt - } - if !isNil(o.Trigger) { - toSerialize["trigger"] = o.Trigger - } - if !isNil(o.Specs) { - toSerialize["specs"] = o.Specs - } - if !isNil(o.Outputs) { - toSerialize["outputs"] = o.Outputs - } - if !isNil(o.Summary) { - toSerialize["summary"] = o.Summary - } - return toSerialize, nil -} - -type NullableTest struct { - value *Test - isSet bool -} - -func (v NullableTest) Get() *Test { - return v.value -} - -func (v *NullableTest) Set(val *Test) { - v.value = val - v.isSet = true -} - -func (v NullableTest) IsSet() bool { - return v.isSet -} - -func (v *NullableTest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTest(val *Test) *NullableTest { - return &NullableTest{value: val, isSet: true} -} - -func (v NullableTest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_connection_response.go b/openapi/model_test_connection_response.go deleted file mode 100644 index 3dc85b9..0000000 --- a/openapi/model_test_connection_response.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestConnectionResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestConnectionResponse{} - -// TestConnectionResponse struct for TestConnectionResponse -type TestConnectionResponse struct { - Successful *bool `json:"successful,omitempty"` - Steps []ConnectionResult `json:"steps,omitempty"` -} - -// NewTestConnectionResponse instantiates a new TestConnectionResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestConnectionResponse() *TestConnectionResponse { - this := TestConnectionResponse{} - return &this -} - -// NewTestConnectionResponseWithDefaults instantiates a new TestConnectionResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestConnectionResponseWithDefaults() *TestConnectionResponse { - this := TestConnectionResponse{} - return &this -} - -// GetSuccessful returns the Successful field value if set, zero value otherwise. -func (o *TestConnectionResponse) GetSuccessful() bool { - if o == nil || isNil(o.Successful) { - var ret bool - return ret - } - return *o.Successful -} - -// GetSuccessfulOk returns a tuple with the Successful field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestConnectionResponse) GetSuccessfulOk() (*bool, bool) { - if o == nil || isNil(o.Successful) { - return nil, false - } - return o.Successful, true -} - -// HasSuccessful returns a boolean if a field has been set. -func (o *TestConnectionResponse) HasSuccessful() bool { - if o != nil && !isNil(o.Successful) { - return true - } - - return false -} - -// SetSuccessful gets a reference to the given bool and assigns it to the Successful field. -func (o *TestConnectionResponse) SetSuccessful(v bool) { - o.Successful = &v -} - -// GetSteps returns the Steps field value if set, zero value otherwise. -func (o *TestConnectionResponse) GetSteps() []ConnectionResult { - if o == nil || isNil(o.Steps) { - var ret []ConnectionResult - return ret - } - return o.Steps -} - -// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestConnectionResponse) GetStepsOk() ([]ConnectionResult, bool) { - if o == nil || isNil(o.Steps) { - return nil, false - } - return o.Steps, true -} - -// HasSteps returns a boolean if a field has been set. -func (o *TestConnectionResponse) HasSteps() bool { - if o != nil && !isNil(o.Steps) { - return true - } - - return false -} - -// SetSteps gets a reference to the given []ConnectionResult and assigns it to the Steps field. -func (o *TestConnectionResponse) SetSteps(v []ConnectionResult) { - o.Steps = v -} - -func (o TestConnectionResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestConnectionResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Successful) { - toSerialize["successful"] = o.Successful - } - if !isNil(o.Steps) { - toSerialize["steps"] = o.Steps - } - return toSerialize, nil -} - -type NullableTestConnectionResponse struct { - value *TestConnectionResponse - isSet bool -} - -func (v NullableTestConnectionResponse) Get() *TestConnectionResponse { - return v.value -} - -func (v *NullableTestConnectionResponse) Set(val *TestConnectionResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTestConnectionResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTestConnectionResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestConnectionResponse(val *TestConnectionResponse) *NullableTestConnectionResponse { - return &NullableTestConnectionResponse{value: val, isSet: true} -} - -func (v NullableTestConnectionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestConnectionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_output.go b/openapi/model_test_output.go deleted file mode 100644 index 171599e..0000000 --- a/openapi/model_test_output.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestOutput type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestOutput{} - -// TestOutput struct for TestOutput -type TestOutput struct { - Name *string `json:"name,omitempty"` - Selector *string `json:"selector,omitempty"` - SelectorParsed *Selector `json:"selectorParsed,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewTestOutput instantiates a new TestOutput object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestOutput() *TestOutput { - this := TestOutput{} - return &this -} - -// NewTestOutputWithDefaults instantiates a new TestOutput object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestOutputWithDefaults() *TestOutput { - this := TestOutput{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *TestOutput) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestOutput) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *TestOutput) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *TestOutput) SetName(v string) { - o.Name = &v -} - -// GetSelector returns the Selector field value if set, zero value otherwise. -func (o *TestOutput) GetSelector() string { - if o == nil || isNil(o.Selector) { - var ret string - return ret - } - return *o.Selector -} - -// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestOutput) GetSelectorOk() (*string, bool) { - if o == nil || isNil(o.Selector) { - return nil, false - } - return o.Selector, true -} - -// HasSelector returns a boolean if a field has been set. -func (o *TestOutput) HasSelector() bool { - if o != nil && !isNil(o.Selector) { - return true - } - - return false -} - -// SetSelector gets a reference to the given string and assigns it to the Selector field. -func (o *TestOutput) SetSelector(v string) { - o.Selector = &v -} - -// GetSelectorParsed returns the SelectorParsed field value if set, zero value otherwise. -func (o *TestOutput) GetSelectorParsed() Selector { - if o == nil || isNil(o.SelectorParsed) { - var ret Selector - return ret - } - return *o.SelectorParsed -} - -// GetSelectorParsedOk returns a tuple with the SelectorParsed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestOutput) GetSelectorParsedOk() (*Selector, bool) { - if o == nil || isNil(o.SelectorParsed) { - return nil, false - } - return o.SelectorParsed, true -} - -// HasSelectorParsed returns a boolean if a field has been set. -func (o *TestOutput) HasSelectorParsed() bool { - if o != nil && !isNil(o.SelectorParsed) { - return true - } - - return false -} - -// SetSelectorParsed gets a reference to the given Selector and assigns it to the SelectorParsed field. -func (o *TestOutput) SetSelectorParsed(v Selector) { - o.SelectorParsed = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *TestOutput) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestOutput) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *TestOutput) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *TestOutput) SetValue(v string) { - o.Value = &v -} - -func (o TestOutput) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestOutput) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Selector) { - toSerialize["selector"] = o.Selector - } - if !isNil(o.SelectorParsed) { - toSerialize["selectorParsed"] = o.SelectorParsed - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableTestOutput struct { - value *TestOutput - isSet bool -} - -func (v NullableTestOutput) Get() *TestOutput { - return v.value -} - -func (v *NullableTestOutput) Set(val *TestOutput) { - v.value = val - v.isSet = true -} - -func (v NullableTestOutput) IsSet() bool { - return v.isSet -} - -func (v *NullableTestOutput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestOutput(val *TestOutput) *NullableTestOutput { - return &NullableTestOutput{value: val, isSet: true} -} - -func (v NullableTestOutput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestOutput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_resource.go b/openapi/model_test_resource.go deleted file mode 100644 index e6ffd84..0000000 --- a/openapi/model_test_resource.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestResource{} - -// TestResource Represents a test structured into the Resources format. -type TestResource struct { - // Represents the type of this resource. It should always be set as 'Test'. - Type *string `json:"type,omitempty"` - Spec *Test `json:"spec,omitempty"` -} - -// NewTestResource instantiates a new TestResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestResource() *TestResource { - this := TestResource{} - return &this -} - -// NewTestResourceWithDefaults instantiates a new TestResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestResourceWithDefaults() *TestResource { - this := TestResource{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *TestResource) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestResource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *TestResource) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *TestResource) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *TestResource) GetSpec() Test { - if o == nil || isNil(o.Spec) { - var ret Test - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestResource) GetSpecOk() (*Test, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *TestResource) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given Test and assigns it to the Spec field. -func (o *TestResource) SetSpec(v Test) { - o.Spec = &v -} - -func (o TestResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableTestResource struct { - value *TestResource - isSet bool -} - -func (v NullableTestResource) Get() *TestResource { - return v.value -} - -func (v *NullableTestResource) Set(val *TestResource) { - v.value = val - v.isSet = true -} - -func (v NullableTestResource) IsSet() bool { - return v.isSet -} - -func (v *NullableTestResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestResource(val *TestResource) *NullableTestResource { - return &NullableTestResource{value: val, isSet: true} -} - -func (v NullableTestResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_resource_list.go b/openapi/model_test_resource_list.go deleted file mode 100644 index 3c59bc3..0000000 --- a/openapi/model_test_resource_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestResourceList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestResourceList{} - -// TestResourceList struct for TestResourceList -type TestResourceList struct { - Count *int32 `json:"count,omitempty"` - Items []TestResource `json:"items,omitempty"` -} - -// NewTestResourceList instantiates a new TestResourceList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestResourceList() *TestResourceList { - this := TestResourceList{} - return &this -} - -// NewTestResourceListWithDefaults instantiates a new TestResourceList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestResourceListWithDefaults() *TestResourceList { - this := TestResourceList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *TestResourceList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestResourceList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *TestResourceList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *TestResourceList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *TestResourceList) GetItems() []TestResource { - if o == nil || isNil(o.Items) { - var ret []TestResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestResourceList) GetItemsOk() ([]TestResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *TestResourceList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []TestResource and assigns it to the Items field. -func (o *TestResourceList) SetItems(v []TestResource) { - o.Items = v -} - -func (o TestResourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestResourceList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableTestResourceList struct { - value *TestResourceList - isSet bool -} - -func (v NullableTestResourceList) Get() *TestResourceList { - return v.value -} - -func (v *NullableTestResourceList) Set(val *TestResourceList) { - v.value = val - v.isSet = true -} - -func (v NullableTestResourceList) IsSet() bool { - return v.isSet -} - -func (v *NullableTestResourceList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestResourceList(val *TestResourceList) *NullableTestResourceList { - return &NullableTestResourceList{value: val, isSet: true} -} - -func (v NullableTestResourceList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestResourceList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_run.go b/openapi/model_test_run.go deleted file mode 100644 index 28e800b..0000000 --- a/openapi/model_test_run.go +++ /dev/null @@ -1,952 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the TestRun type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestRun{} - -// TestRun struct for TestRun -type TestRun struct { - Id *int32 `json:"id,omitempty"` - TraceId *string `json:"traceId,omitempty"` - SpanId *string `json:"spanId,omitempty"` - // Test version used when running this test run - TestVersion *int32 `json:"testVersion,omitempty"` - // Current execution state - State *string `json:"state,omitempty"` - // Details of the cause for the last `FAILED` state - LastErrorState *string `json:"lastErrorState,omitempty"` - // time in seconds it took for the test to complete, either success or fail. If the test is still running, it will show the time up to the time of the request - ExecutionTime *int32 `json:"executionTime,omitempty"` - // time in milliseconds it took for the triggering testSuite to complete, either success or fail. If the test is still running, it will show the time up to the time of the request - TriggerTime *int32 `json:"triggerTime,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - ServiceTriggeredAt *time.Time `json:"serviceTriggeredAt,omitempty"` - ServiceTriggerCompletedAt *time.Time `json:"serviceTriggerCompletedAt,omitempty"` - ObtainedTraceAt *time.Time `json:"obtainedTraceAt,omitempty"` - CompletedAt *time.Time `json:"completedAt,omitempty"` - VariableSet *VariableSet `json:"variableSet,omitempty"` - ResolvedTrigger *Trigger `json:"resolvedTrigger,omitempty"` - TriggerResult *TriggerResult `json:"triggerResult,omitempty"` - Trace *Trace `json:"trace,omitempty"` - Result *AssertionResults `json:"result,omitempty"` - Linter *LinterResult `json:"linter,omitempty"` - Outputs []TestRunOutputsInner `json:"outputs,omitempty"` - RequiredGatesResult *RequiredGatesResult `json:"requiredGatesResult,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` - TestSuiteId *string `json:"testSuiteId,omitempty"` - TestSuiteRunId *int32 `json:"testSuiteRunId,omitempty"` -} - -// NewTestRun instantiates a new TestRun object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestRun() *TestRun { - this := TestRun{} - return &this -} - -// NewTestRunWithDefaults instantiates a new TestRun object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestRunWithDefaults() *TestRun { - this := TestRun{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *TestRun) GetId() int32 { - if o == nil || isNil(o.Id) { - var ret int32 - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetIdOk() (*int32, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TestRun) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given int32 and assigns it to the Id field. -func (o *TestRun) SetId(v int32) { - o.Id = &v -} - -// GetTraceId returns the TraceId field value if set, zero value otherwise. -func (o *TestRun) GetTraceId() string { - if o == nil || isNil(o.TraceId) { - var ret string - return ret - } - return *o.TraceId -} - -// GetTraceIdOk returns a tuple with the TraceId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTraceIdOk() (*string, bool) { - if o == nil || isNil(o.TraceId) { - return nil, false - } - return o.TraceId, true -} - -// HasTraceId returns a boolean if a field has been set. -func (o *TestRun) HasTraceId() bool { - if o != nil && !isNil(o.TraceId) { - return true - } - - return false -} - -// SetTraceId gets a reference to the given string and assigns it to the TraceId field. -func (o *TestRun) SetTraceId(v string) { - o.TraceId = &v -} - -// GetSpanId returns the SpanId field value if set, zero value otherwise. -func (o *TestRun) GetSpanId() string { - if o == nil || isNil(o.SpanId) { - var ret string - return ret - } - return *o.SpanId -} - -// GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetSpanIdOk() (*string, bool) { - if o == nil || isNil(o.SpanId) { - return nil, false - } - return o.SpanId, true -} - -// HasSpanId returns a boolean if a field has been set. -func (o *TestRun) HasSpanId() bool { - if o != nil && !isNil(o.SpanId) { - return true - } - - return false -} - -// SetSpanId gets a reference to the given string and assigns it to the SpanId field. -func (o *TestRun) SetSpanId(v string) { - o.SpanId = &v -} - -// GetTestVersion returns the TestVersion field value if set, zero value otherwise. -func (o *TestRun) GetTestVersion() int32 { - if o == nil || isNil(o.TestVersion) { - var ret int32 - return ret - } - return *o.TestVersion -} - -// GetTestVersionOk returns a tuple with the TestVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTestVersionOk() (*int32, bool) { - if o == nil || isNil(o.TestVersion) { - return nil, false - } - return o.TestVersion, true -} - -// HasTestVersion returns a boolean if a field has been set. -func (o *TestRun) HasTestVersion() bool { - if o != nil && !isNil(o.TestVersion) { - return true - } - - return false -} - -// SetTestVersion gets a reference to the given int32 and assigns it to the TestVersion field. -func (o *TestRun) SetTestVersion(v int32) { - o.TestVersion = &v -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *TestRun) GetState() string { - if o == nil || isNil(o.State) { - var ret string - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *TestRun) HasState() bool { - if o != nil && !isNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given string and assigns it to the State field. -func (o *TestRun) SetState(v string) { - o.State = &v -} - -// GetLastErrorState returns the LastErrorState field value if set, zero value otherwise. -func (o *TestRun) GetLastErrorState() string { - if o == nil || isNil(o.LastErrorState) { - var ret string - return ret - } - return *o.LastErrorState -} - -// GetLastErrorStateOk returns a tuple with the LastErrorState field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetLastErrorStateOk() (*string, bool) { - if o == nil || isNil(o.LastErrorState) { - return nil, false - } - return o.LastErrorState, true -} - -// HasLastErrorState returns a boolean if a field has been set. -func (o *TestRun) HasLastErrorState() bool { - if o != nil && !isNil(o.LastErrorState) { - return true - } - - return false -} - -// SetLastErrorState gets a reference to the given string and assigns it to the LastErrorState field. -func (o *TestRun) SetLastErrorState(v string) { - o.LastErrorState = &v -} - -// GetExecutionTime returns the ExecutionTime field value if set, zero value otherwise. -func (o *TestRun) GetExecutionTime() int32 { - if o == nil || isNil(o.ExecutionTime) { - var ret int32 - return ret - } - return *o.ExecutionTime -} - -// GetExecutionTimeOk returns a tuple with the ExecutionTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetExecutionTimeOk() (*int32, bool) { - if o == nil || isNil(o.ExecutionTime) { - return nil, false - } - return o.ExecutionTime, true -} - -// HasExecutionTime returns a boolean if a field has been set. -func (o *TestRun) HasExecutionTime() bool { - if o != nil && !isNil(o.ExecutionTime) { - return true - } - - return false -} - -// SetExecutionTime gets a reference to the given int32 and assigns it to the ExecutionTime field. -func (o *TestRun) SetExecutionTime(v int32) { - o.ExecutionTime = &v -} - -// GetTriggerTime returns the TriggerTime field value if set, zero value otherwise. -func (o *TestRun) GetTriggerTime() int32 { - if o == nil || isNil(o.TriggerTime) { - var ret int32 - return ret - } - return *o.TriggerTime -} - -// GetTriggerTimeOk returns a tuple with the TriggerTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTriggerTimeOk() (*int32, bool) { - if o == nil || isNil(o.TriggerTime) { - return nil, false - } - return o.TriggerTime, true -} - -// HasTriggerTime returns a boolean if a field has been set. -func (o *TestRun) HasTriggerTime() bool { - if o != nil && !isNil(o.TriggerTime) { - return true - } - - return false -} - -// SetTriggerTime gets a reference to the given int32 and assigns it to the TriggerTime field. -func (o *TestRun) SetTriggerTime(v int32) { - o.TriggerTime = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *TestRun) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *TestRun) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *TestRun) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetServiceTriggeredAt returns the ServiceTriggeredAt field value if set, zero value otherwise. -func (o *TestRun) GetServiceTriggeredAt() time.Time { - if o == nil || isNil(o.ServiceTriggeredAt) { - var ret time.Time - return ret - } - return *o.ServiceTriggeredAt -} - -// GetServiceTriggeredAtOk returns a tuple with the ServiceTriggeredAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetServiceTriggeredAtOk() (*time.Time, bool) { - if o == nil || isNil(o.ServiceTriggeredAt) { - return nil, false - } - return o.ServiceTriggeredAt, true -} - -// HasServiceTriggeredAt returns a boolean if a field has been set. -func (o *TestRun) HasServiceTriggeredAt() bool { - if o != nil && !isNil(o.ServiceTriggeredAt) { - return true - } - - return false -} - -// SetServiceTriggeredAt gets a reference to the given time.Time and assigns it to the ServiceTriggeredAt field. -func (o *TestRun) SetServiceTriggeredAt(v time.Time) { - o.ServiceTriggeredAt = &v -} - -// GetServiceTriggerCompletedAt returns the ServiceTriggerCompletedAt field value if set, zero value otherwise. -func (o *TestRun) GetServiceTriggerCompletedAt() time.Time { - if o == nil || isNil(o.ServiceTriggerCompletedAt) { - var ret time.Time - return ret - } - return *o.ServiceTriggerCompletedAt -} - -// GetServiceTriggerCompletedAtOk returns a tuple with the ServiceTriggerCompletedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetServiceTriggerCompletedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.ServiceTriggerCompletedAt) { - return nil, false - } - return o.ServiceTriggerCompletedAt, true -} - -// HasServiceTriggerCompletedAt returns a boolean if a field has been set. -func (o *TestRun) HasServiceTriggerCompletedAt() bool { - if o != nil && !isNil(o.ServiceTriggerCompletedAt) { - return true - } - - return false -} - -// SetServiceTriggerCompletedAt gets a reference to the given time.Time and assigns it to the ServiceTriggerCompletedAt field. -func (o *TestRun) SetServiceTriggerCompletedAt(v time.Time) { - o.ServiceTriggerCompletedAt = &v -} - -// GetObtainedTraceAt returns the ObtainedTraceAt field value if set, zero value otherwise. -func (o *TestRun) GetObtainedTraceAt() time.Time { - if o == nil || isNil(o.ObtainedTraceAt) { - var ret time.Time - return ret - } - return *o.ObtainedTraceAt -} - -// GetObtainedTraceAtOk returns a tuple with the ObtainedTraceAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetObtainedTraceAtOk() (*time.Time, bool) { - if o == nil || isNil(o.ObtainedTraceAt) { - return nil, false - } - return o.ObtainedTraceAt, true -} - -// HasObtainedTraceAt returns a boolean if a field has been set. -func (o *TestRun) HasObtainedTraceAt() bool { - if o != nil && !isNil(o.ObtainedTraceAt) { - return true - } - - return false -} - -// SetObtainedTraceAt gets a reference to the given time.Time and assigns it to the ObtainedTraceAt field. -func (o *TestRun) SetObtainedTraceAt(v time.Time) { - o.ObtainedTraceAt = &v -} - -// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise. -func (o *TestRun) GetCompletedAt() time.Time { - if o == nil || isNil(o.CompletedAt) { - var ret time.Time - return ret - } - return *o.CompletedAt -} - -// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetCompletedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CompletedAt) { - return nil, false - } - return o.CompletedAt, true -} - -// HasCompletedAt returns a boolean if a field has been set. -func (o *TestRun) HasCompletedAt() bool { - if o != nil && !isNil(o.CompletedAt) { - return true - } - - return false -} - -// SetCompletedAt gets a reference to the given time.Time and assigns it to the CompletedAt field. -func (o *TestRun) SetCompletedAt(v time.Time) { - o.CompletedAt = &v -} - -// GetVariableSet returns the VariableSet field value if set, zero value otherwise. -func (o *TestRun) GetVariableSet() VariableSet { - if o == nil || isNil(o.VariableSet) { - var ret VariableSet - return ret - } - return *o.VariableSet -} - -// GetVariableSetOk returns a tuple with the VariableSet field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetVariableSetOk() (*VariableSet, bool) { - if o == nil || isNil(o.VariableSet) { - return nil, false - } - return o.VariableSet, true -} - -// HasVariableSet returns a boolean if a field has been set. -func (o *TestRun) HasVariableSet() bool { - if o != nil && !isNil(o.VariableSet) { - return true - } - - return false -} - -// SetVariableSet gets a reference to the given VariableSet and assigns it to the VariableSet field. -func (o *TestRun) SetVariableSet(v VariableSet) { - o.VariableSet = &v -} - -// GetResolvedTrigger returns the ResolvedTrigger field value if set, zero value otherwise. -func (o *TestRun) GetResolvedTrigger() Trigger { - if o == nil || isNil(o.ResolvedTrigger) { - var ret Trigger - return ret - } - return *o.ResolvedTrigger -} - -// GetResolvedTriggerOk returns a tuple with the ResolvedTrigger field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetResolvedTriggerOk() (*Trigger, bool) { - if o == nil || isNil(o.ResolvedTrigger) { - return nil, false - } - return o.ResolvedTrigger, true -} - -// HasResolvedTrigger returns a boolean if a field has been set. -func (o *TestRun) HasResolvedTrigger() bool { - if o != nil && !isNil(o.ResolvedTrigger) { - return true - } - - return false -} - -// SetResolvedTrigger gets a reference to the given Trigger and assigns it to the ResolvedTrigger field. -func (o *TestRun) SetResolvedTrigger(v Trigger) { - o.ResolvedTrigger = &v -} - -// GetTriggerResult returns the TriggerResult field value if set, zero value otherwise. -func (o *TestRun) GetTriggerResult() TriggerResult { - if o == nil || isNil(o.TriggerResult) { - var ret TriggerResult - return ret - } - return *o.TriggerResult -} - -// GetTriggerResultOk returns a tuple with the TriggerResult field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTriggerResultOk() (*TriggerResult, bool) { - if o == nil || isNil(o.TriggerResult) { - return nil, false - } - return o.TriggerResult, true -} - -// HasTriggerResult returns a boolean if a field has been set. -func (o *TestRun) HasTriggerResult() bool { - if o != nil && !isNil(o.TriggerResult) { - return true - } - - return false -} - -// SetTriggerResult gets a reference to the given TriggerResult and assigns it to the TriggerResult field. -func (o *TestRun) SetTriggerResult(v TriggerResult) { - o.TriggerResult = &v -} - -// GetTrace returns the Trace field value if set, zero value otherwise. -func (o *TestRun) GetTrace() Trace { - if o == nil || isNil(o.Trace) { - var ret Trace - return ret - } - return *o.Trace -} - -// GetTraceOk returns a tuple with the Trace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTraceOk() (*Trace, bool) { - if o == nil || isNil(o.Trace) { - return nil, false - } - return o.Trace, true -} - -// HasTrace returns a boolean if a field has been set. -func (o *TestRun) HasTrace() bool { - if o != nil && !isNil(o.Trace) { - return true - } - - return false -} - -// SetTrace gets a reference to the given Trace and assigns it to the Trace field. -func (o *TestRun) SetTrace(v Trace) { - o.Trace = &v -} - -// GetResult returns the Result field value if set, zero value otherwise. -func (o *TestRun) GetResult() AssertionResults { - if o == nil || isNil(o.Result) { - var ret AssertionResults - return ret - } - return *o.Result -} - -// GetResultOk returns a tuple with the Result field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetResultOk() (*AssertionResults, bool) { - if o == nil || isNil(o.Result) { - return nil, false - } - return o.Result, true -} - -// HasResult returns a boolean if a field has been set. -func (o *TestRun) HasResult() bool { - if o != nil && !isNil(o.Result) { - return true - } - - return false -} - -// SetResult gets a reference to the given AssertionResults and assigns it to the Result field. -func (o *TestRun) SetResult(v AssertionResults) { - o.Result = &v -} - -// GetLinter returns the Linter field value if set, zero value otherwise. -func (o *TestRun) GetLinter() LinterResult { - if o == nil || isNil(o.Linter) { - var ret LinterResult - return ret - } - return *o.Linter -} - -// GetLinterOk returns a tuple with the Linter field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetLinterOk() (*LinterResult, bool) { - if o == nil || isNil(o.Linter) { - return nil, false - } - return o.Linter, true -} - -// HasLinter returns a boolean if a field has been set. -func (o *TestRun) HasLinter() bool { - if o != nil && !isNil(o.Linter) { - return true - } - - return false -} - -// SetLinter gets a reference to the given LinterResult and assigns it to the Linter field. -func (o *TestRun) SetLinter(v LinterResult) { - o.Linter = &v -} - -// GetOutputs returns the Outputs field value if set, zero value otherwise. -func (o *TestRun) GetOutputs() []TestRunOutputsInner { - if o == nil || isNil(o.Outputs) { - var ret []TestRunOutputsInner - return ret - } - return o.Outputs -} - -// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetOutputsOk() ([]TestRunOutputsInner, bool) { - if o == nil || isNil(o.Outputs) { - return nil, false - } - return o.Outputs, true -} - -// HasOutputs returns a boolean if a field has been set. -func (o *TestRun) HasOutputs() bool { - if o != nil && !isNil(o.Outputs) { - return true - } - - return false -} - -// SetOutputs gets a reference to the given []TestRunOutputsInner and assigns it to the Outputs field. -func (o *TestRun) SetOutputs(v []TestRunOutputsInner) { - o.Outputs = v -} - -// GetRequiredGatesResult returns the RequiredGatesResult field value if set, zero value otherwise. -func (o *TestRun) GetRequiredGatesResult() RequiredGatesResult { - if o == nil || isNil(o.RequiredGatesResult) { - var ret RequiredGatesResult - return ret - } - return *o.RequiredGatesResult -} - -// GetRequiredGatesResultOk returns a tuple with the RequiredGatesResult field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetRequiredGatesResultOk() (*RequiredGatesResult, bool) { - if o == nil || isNil(o.RequiredGatesResult) { - return nil, false - } - return o.RequiredGatesResult, true -} - -// HasRequiredGatesResult returns a boolean if a field has been set. -func (o *TestRun) HasRequiredGatesResult() bool { - if o != nil && !isNil(o.RequiredGatesResult) { - return true - } - - return false -} - -// SetRequiredGatesResult gets a reference to the given RequiredGatesResult and assigns it to the RequiredGatesResult field. -func (o *TestRun) SetRequiredGatesResult(v RequiredGatesResult) { - o.RequiredGatesResult = &v -} - -// GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *TestRun) GetMetadata() map[string]string { - if o == nil || isNil(o.Metadata) { - var ret map[string]string - return ret - } - return *o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Metadata) { - return nil, false - } - return o.Metadata, true -} - -// HasMetadata returns a boolean if a field has been set. -func (o *TestRun) HasMetadata() bool { - if o != nil && !isNil(o.Metadata) { - return true - } - - return false -} - -// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. -func (o *TestRun) SetMetadata(v map[string]string) { - o.Metadata = &v -} - -// GetTestSuiteId returns the TestSuiteId field value if set, zero value otherwise. -func (o *TestRun) GetTestSuiteId() string { - if o == nil || isNil(o.TestSuiteId) { - var ret string - return ret - } - return *o.TestSuiteId -} - -// GetTestSuiteIdOk returns a tuple with the TestSuiteId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTestSuiteIdOk() (*string, bool) { - if o == nil || isNil(o.TestSuiteId) { - return nil, false - } - return o.TestSuiteId, true -} - -// HasTestSuiteId returns a boolean if a field has been set. -func (o *TestRun) HasTestSuiteId() bool { - if o != nil && !isNil(o.TestSuiteId) { - return true - } - - return false -} - -// SetTestSuiteId gets a reference to the given string and assigns it to the TestSuiteId field. -func (o *TestRun) SetTestSuiteId(v string) { - o.TestSuiteId = &v -} - -// GetTestSuiteRunId returns the TestSuiteRunId field value if set, zero value otherwise. -func (o *TestRun) GetTestSuiteRunId() int32 { - if o == nil || isNil(o.TestSuiteRunId) { - var ret int32 - return ret - } - return *o.TestSuiteRunId -} - -// GetTestSuiteRunIdOk returns a tuple with the TestSuiteRunId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRun) GetTestSuiteRunIdOk() (*int32, bool) { - if o == nil || isNil(o.TestSuiteRunId) { - return nil, false - } - return o.TestSuiteRunId, true -} - -// HasTestSuiteRunId returns a boolean if a field has been set. -func (o *TestRun) HasTestSuiteRunId() bool { - if o != nil && !isNil(o.TestSuiteRunId) { - return true - } - - return false -} - -// SetTestSuiteRunId gets a reference to the given int32 and assigns it to the TestSuiteRunId field. -func (o *TestRun) SetTestSuiteRunId(v int32) { - o.TestSuiteRunId = &v -} - -func (o TestRun) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestRun) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: traceId is readOnly - // skip: spanId is readOnly - if !isNil(o.TestVersion) { - toSerialize["testVersion"] = o.TestVersion - } - if !isNil(o.State) { - toSerialize["state"] = o.State - } - if !isNil(o.LastErrorState) { - toSerialize["lastErrorState"] = o.LastErrorState - } - if !isNil(o.ExecutionTime) { - toSerialize["executionTime"] = o.ExecutionTime - } - if !isNil(o.TriggerTime) { - toSerialize["triggerTime"] = o.TriggerTime - } - if !isNil(o.CreatedAt) { - toSerialize["createdAt"] = o.CreatedAt - } - if !isNil(o.ServiceTriggeredAt) { - toSerialize["serviceTriggeredAt"] = o.ServiceTriggeredAt - } - if !isNil(o.ServiceTriggerCompletedAt) { - toSerialize["serviceTriggerCompletedAt"] = o.ServiceTriggerCompletedAt - } - if !isNil(o.ObtainedTraceAt) { - toSerialize["obtainedTraceAt"] = o.ObtainedTraceAt - } - if !isNil(o.CompletedAt) { - toSerialize["completedAt"] = o.CompletedAt - } - if !isNil(o.VariableSet) { - toSerialize["variableSet"] = o.VariableSet - } - if !isNil(o.ResolvedTrigger) { - toSerialize["resolvedTrigger"] = o.ResolvedTrigger - } - if !isNil(o.TriggerResult) { - toSerialize["triggerResult"] = o.TriggerResult - } - if !isNil(o.Trace) { - toSerialize["trace"] = o.Trace - } - if !isNil(o.Result) { - toSerialize["result"] = o.Result - } - if !isNil(o.Linter) { - toSerialize["linter"] = o.Linter - } - if !isNil(o.Outputs) { - toSerialize["outputs"] = o.Outputs - } - if !isNil(o.RequiredGatesResult) { - toSerialize["requiredGatesResult"] = o.RequiredGatesResult - } - if !isNil(o.Metadata) { - toSerialize["metadata"] = o.Metadata - } - if !isNil(o.TestSuiteId) { - toSerialize["testSuiteId"] = o.TestSuiteId - } - if !isNil(o.TestSuiteRunId) { - toSerialize["testSuiteRunId"] = o.TestSuiteRunId - } - return toSerialize, nil -} - -type NullableTestRun struct { - value *TestRun - isSet bool -} - -func (v NullableTestRun) Get() *TestRun { - return v.value -} - -func (v *NullableTestRun) Set(val *TestRun) { - v.value = val - v.isSet = true -} - -func (v NullableTestRun) IsSet() bool { - return v.isSet -} - -func (v *NullableTestRun) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestRun(val *TestRun) *NullableTestRun { - return &NullableTestRun{value: val, isSet: true} -} - -func (v NullableTestRun) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestRun) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_run_event.go b/openapi/model_test_run_event.go deleted file mode 100644 index a63717d..0000000 --- a/openapi/model_test_run_event.go +++ /dev/null @@ -1,449 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the TestRunEvent type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestRunEvent{} - -// TestRunEvent struct for TestRunEvent -type TestRunEvent struct { - Type *string `json:"type,omitempty"` - Stage *string `json:"stage,omitempty"` - Title *string `json:"title,omitempty"` - Description *string `json:"description,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - TestId *string `json:"testId,omitempty"` - RunId *int32 `json:"runId,omitempty"` - DataStoreConnection *ConnectionResult `json:"dataStoreConnection,omitempty"` - Polling *PollingInfo `json:"polling,omitempty"` - Outputs []OutputInfo `json:"outputs,omitempty"` -} - -// NewTestRunEvent instantiates a new TestRunEvent object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestRunEvent() *TestRunEvent { - this := TestRunEvent{} - return &this -} - -// NewTestRunEventWithDefaults instantiates a new TestRunEvent object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestRunEventWithDefaults() *TestRunEvent { - this := TestRunEvent{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *TestRunEvent) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *TestRunEvent) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *TestRunEvent) SetType(v string) { - o.Type = &v -} - -// GetStage returns the Stage field value if set, zero value otherwise. -func (o *TestRunEvent) GetStage() string { - if o == nil || isNil(o.Stage) { - var ret string - return ret - } - return *o.Stage -} - -// GetStageOk returns a tuple with the Stage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetStageOk() (*string, bool) { - if o == nil || isNil(o.Stage) { - return nil, false - } - return o.Stage, true -} - -// HasStage returns a boolean if a field has been set. -func (o *TestRunEvent) HasStage() bool { - if o != nil && !isNil(o.Stage) { - return true - } - - return false -} - -// SetStage gets a reference to the given string and assigns it to the Stage field. -func (o *TestRunEvent) SetStage(v string) { - o.Stage = &v -} - -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *TestRunEvent) GetTitle() string { - if o == nil || isNil(o.Title) { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetTitleOk() (*string, bool) { - if o == nil || isNil(o.Title) { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *TestRunEvent) HasTitle() bool { - if o != nil && !isNil(o.Title) { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *TestRunEvent) SetTitle(v string) { - o.Title = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *TestRunEvent) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *TestRunEvent) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *TestRunEvent) SetDescription(v string) { - o.Description = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *TestRunEvent) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *TestRunEvent) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *TestRunEvent) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetTestId returns the TestId field value if set, zero value otherwise. -func (o *TestRunEvent) GetTestId() string { - if o == nil || isNil(o.TestId) { - var ret string - return ret - } - return *o.TestId -} - -// GetTestIdOk returns a tuple with the TestId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetTestIdOk() (*string, bool) { - if o == nil || isNil(o.TestId) { - return nil, false - } - return o.TestId, true -} - -// HasTestId returns a boolean if a field has been set. -func (o *TestRunEvent) HasTestId() bool { - if o != nil && !isNil(o.TestId) { - return true - } - - return false -} - -// SetTestId gets a reference to the given string and assigns it to the TestId field. -func (o *TestRunEvent) SetTestId(v string) { - o.TestId = &v -} - -// GetRunId returns the RunId field value if set, zero value otherwise. -func (o *TestRunEvent) GetRunId() int32 { - if o == nil || isNil(o.RunId) { - var ret int32 - return ret - } - return *o.RunId -} - -// GetRunIdOk returns a tuple with the RunId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetRunIdOk() (*int32, bool) { - if o == nil || isNil(o.RunId) { - return nil, false - } - return o.RunId, true -} - -// HasRunId returns a boolean if a field has been set. -func (o *TestRunEvent) HasRunId() bool { - if o != nil && !isNil(o.RunId) { - return true - } - - return false -} - -// SetRunId gets a reference to the given int32 and assigns it to the RunId field. -func (o *TestRunEvent) SetRunId(v int32) { - o.RunId = &v -} - -// GetDataStoreConnection returns the DataStoreConnection field value if set, zero value otherwise. -func (o *TestRunEvent) GetDataStoreConnection() ConnectionResult { - if o == nil || isNil(o.DataStoreConnection) { - var ret ConnectionResult - return ret - } - return *o.DataStoreConnection -} - -// GetDataStoreConnectionOk returns a tuple with the DataStoreConnection field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetDataStoreConnectionOk() (*ConnectionResult, bool) { - if o == nil || isNil(o.DataStoreConnection) { - return nil, false - } - return o.DataStoreConnection, true -} - -// HasDataStoreConnection returns a boolean if a field has been set. -func (o *TestRunEvent) HasDataStoreConnection() bool { - if o != nil && !isNil(o.DataStoreConnection) { - return true - } - - return false -} - -// SetDataStoreConnection gets a reference to the given ConnectionResult and assigns it to the DataStoreConnection field. -func (o *TestRunEvent) SetDataStoreConnection(v ConnectionResult) { - o.DataStoreConnection = &v -} - -// GetPolling returns the Polling field value if set, zero value otherwise. -func (o *TestRunEvent) GetPolling() PollingInfo { - if o == nil || isNil(o.Polling) { - var ret PollingInfo - return ret - } - return *o.Polling -} - -// GetPollingOk returns a tuple with the Polling field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetPollingOk() (*PollingInfo, bool) { - if o == nil || isNil(o.Polling) { - return nil, false - } - return o.Polling, true -} - -// HasPolling returns a boolean if a field has been set. -func (o *TestRunEvent) HasPolling() bool { - if o != nil && !isNil(o.Polling) { - return true - } - - return false -} - -// SetPolling gets a reference to the given PollingInfo and assigns it to the Polling field. -func (o *TestRunEvent) SetPolling(v PollingInfo) { - o.Polling = &v -} - -// GetOutputs returns the Outputs field value if set, zero value otherwise. -func (o *TestRunEvent) GetOutputs() []OutputInfo { - if o == nil || isNil(o.Outputs) { - var ret []OutputInfo - return ret - } - return o.Outputs -} - -// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunEvent) GetOutputsOk() ([]OutputInfo, bool) { - if o == nil || isNil(o.Outputs) { - return nil, false - } - return o.Outputs, true -} - -// HasOutputs returns a boolean if a field has been set. -func (o *TestRunEvent) HasOutputs() bool { - if o != nil && !isNil(o.Outputs) { - return true - } - - return false -} - -// SetOutputs gets a reference to the given []OutputInfo and assigns it to the Outputs field. -func (o *TestRunEvent) SetOutputs(v []OutputInfo) { - o.Outputs = v -} - -func (o TestRunEvent) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestRunEvent) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Stage) { - toSerialize["stage"] = o.Stage - } - if !isNil(o.Title) { - toSerialize["title"] = o.Title - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.CreatedAt) { - toSerialize["createdAt"] = o.CreatedAt - } - if !isNil(o.TestId) { - toSerialize["testId"] = o.TestId - } - if !isNil(o.RunId) { - toSerialize["runId"] = o.RunId - } - if !isNil(o.DataStoreConnection) { - toSerialize["dataStoreConnection"] = o.DataStoreConnection - } - if !isNil(o.Polling) { - toSerialize["polling"] = o.Polling - } - if !isNil(o.Outputs) { - toSerialize["outputs"] = o.Outputs - } - return toSerialize, nil -} - -type NullableTestRunEvent struct { - value *TestRunEvent - isSet bool -} - -func (v NullableTestRunEvent) Get() *TestRunEvent { - return v.value -} - -func (v *NullableTestRunEvent) Set(val *TestRunEvent) { - v.value = val - v.isSet = true -} - -func (v NullableTestRunEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableTestRunEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestRunEvent(val *TestRunEvent) *NullableTestRunEvent { - return &NullableTestRunEvent{value: val, isSet: true} -} - -func (v NullableTestRunEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestRunEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_run_outputs_inner.go b/openapi/model_test_run_outputs_inner.go deleted file mode 100644 index 37a3a82..0000000 --- a/openapi/model_test_run_outputs_inner.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestRunOutputsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestRunOutputsInner{} - -// TestRunOutputsInner struct for TestRunOutputsInner -type TestRunOutputsInner struct { - Name *string `json:"name,omitempty"` - SpanId *string `json:"spanId,omitempty"` - Value *string `json:"value,omitempty"` - Error *string `json:"error,omitempty"` -} - -// NewTestRunOutputsInner instantiates a new TestRunOutputsInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestRunOutputsInner() *TestRunOutputsInner { - this := TestRunOutputsInner{} - return &this -} - -// NewTestRunOutputsInnerWithDefaults instantiates a new TestRunOutputsInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestRunOutputsInnerWithDefaults() *TestRunOutputsInner { - this := TestRunOutputsInner{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *TestRunOutputsInner) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunOutputsInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *TestRunOutputsInner) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *TestRunOutputsInner) SetName(v string) { - o.Name = &v -} - -// GetSpanId returns the SpanId field value if set, zero value otherwise. -func (o *TestRunOutputsInner) GetSpanId() string { - if o == nil || isNil(o.SpanId) { - var ret string - return ret - } - return *o.SpanId -} - -// GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunOutputsInner) GetSpanIdOk() (*string, bool) { - if o == nil || isNil(o.SpanId) { - return nil, false - } - return o.SpanId, true -} - -// HasSpanId returns a boolean if a field has been set. -func (o *TestRunOutputsInner) HasSpanId() bool { - if o != nil && !isNil(o.SpanId) { - return true - } - - return false -} - -// SetSpanId gets a reference to the given string and assigns it to the SpanId field. -func (o *TestRunOutputsInner) SetSpanId(v string) { - o.SpanId = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *TestRunOutputsInner) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunOutputsInner) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *TestRunOutputsInner) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *TestRunOutputsInner) SetValue(v string) { - o.Value = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *TestRunOutputsInner) GetError() string { - if o == nil || isNil(o.Error) { - var ret string - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestRunOutputsInner) GetErrorOk() (*string, bool) { - if o == nil || isNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *TestRunOutputsInner) HasError() bool { - if o != nil && !isNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given string and assigns it to the Error field. -func (o *TestRunOutputsInner) SetError(v string) { - o.Error = &v -} - -func (o TestRunOutputsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestRunOutputsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.SpanId) { - toSerialize["spanId"] = o.SpanId - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - if !isNil(o.Error) { - toSerialize["error"] = o.Error - } - return toSerialize, nil -} - -type NullableTestRunOutputsInner struct { - value *TestRunOutputsInner - isSet bool -} - -func (v NullableTestRunOutputsInner) Get() *TestRunOutputsInner { - return v.value -} - -func (v *NullableTestRunOutputsInner) Set(val *TestRunOutputsInner) { - v.value = val - v.isSet = true -} - -func (v NullableTestRunOutputsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableTestRunOutputsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestRunOutputsInner(val *TestRunOutputsInner) *NullableTestRunOutputsInner { - return &NullableTestRunOutputsInner{value: val, isSet: true} -} - -func (v NullableTestRunOutputsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestRunOutputsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_spec.go b/openapi/model_test_spec.go deleted file mode 100644 index 71b262e..0000000 --- a/openapi/model_test_spec.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestSpec type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSpec{} - -// TestSpec struct for TestSpec -type TestSpec struct { - Name *string `json:"name,omitempty"` - Selector *string `json:"selector,omitempty"` - SelectorParsed *Selector `json:"selectorParsed,omitempty"` - Assertions []string `json:"assertions,omitempty"` -} - -// NewTestSpec instantiates a new TestSpec object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSpec() *TestSpec { - this := TestSpec{} - return &this -} - -// NewTestSpecWithDefaults instantiates a new TestSpec object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSpecWithDefaults() *TestSpec { - this := TestSpec{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *TestSpec) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSpec) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *TestSpec) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *TestSpec) SetName(v string) { - o.Name = &v -} - -// GetSelector returns the Selector field value if set, zero value otherwise. -func (o *TestSpec) GetSelector() string { - if o == nil || isNil(o.Selector) { - var ret string - return ret - } - return *o.Selector -} - -// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSpec) GetSelectorOk() (*string, bool) { - if o == nil || isNil(o.Selector) { - return nil, false - } - return o.Selector, true -} - -// HasSelector returns a boolean if a field has been set. -func (o *TestSpec) HasSelector() bool { - if o != nil && !isNil(o.Selector) { - return true - } - - return false -} - -// SetSelector gets a reference to the given string and assigns it to the Selector field. -func (o *TestSpec) SetSelector(v string) { - o.Selector = &v -} - -// GetSelectorParsed returns the SelectorParsed field value if set, zero value otherwise. -func (o *TestSpec) GetSelectorParsed() Selector { - if o == nil || isNil(o.SelectorParsed) { - var ret Selector - return ret - } - return *o.SelectorParsed -} - -// GetSelectorParsedOk returns a tuple with the SelectorParsed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSpec) GetSelectorParsedOk() (*Selector, bool) { - if o == nil || isNil(o.SelectorParsed) { - return nil, false - } - return o.SelectorParsed, true -} - -// HasSelectorParsed returns a boolean if a field has been set. -func (o *TestSpec) HasSelectorParsed() bool { - if o != nil && !isNil(o.SelectorParsed) { - return true - } - - return false -} - -// SetSelectorParsed gets a reference to the given Selector and assigns it to the SelectorParsed field. -func (o *TestSpec) SetSelectorParsed(v Selector) { - o.SelectorParsed = &v -} - -// GetAssertions returns the Assertions field value if set, zero value otherwise. -func (o *TestSpec) GetAssertions() []string { - if o == nil || isNil(o.Assertions) { - var ret []string - return ret - } - return o.Assertions -} - -// GetAssertionsOk returns a tuple with the Assertions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSpec) GetAssertionsOk() ([]string, bool) { - if o == nil || isNil(o.Assertions) { - return nil, false - } - return o.Assertions, true -} - -// HasAssertions returns a boolean if a field has been set. -func (o *TestSpec) HasAssertions() bool { - if o != nil && !isNil(o.Assertions) { - return true - } - - return false -} - -// SetAssertions gets a reference to the given []string and assigns it to the Assertions field. -func (o *TestSpec) SetAssertions(v []string) { - o.Assertions = v -} - -func (o TestSpec) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSpec) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Selector) { - toSerialize["selector"] = o.Selector - } - if !isNil(o.SelectorParsed) { - toSerialize["selectorParsed"] = o.SelectorParsed - } - if !isNil(o.Assertions) { - toSerialize["assertions"] = o.Assertions - } - return toSerialize, nil -} - -type NullableTestSpec struct { - value *TestSpec - isSet bool -} - -func (v NullableTestSpec) Get() *TestSpec { - return v.value -} - -func (v *NullableTestSpec) Set(val *TestSpec) { - v.value = val - v.isSet = true -} - -func (v NullableTestSpec) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSpec) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSpec(val *TestSpec) *NullableTestSpec { - return &NullableTestSpec{value: val, isSet: true} -} - -func (v NullableTestSpec) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSpec) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_specs.go b/openapi/model_test_specs.go deleted file mode 100644 index 0104065..0000000 --- a/openapi/model_test_specs.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestSpecs type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSpecs{} - -// TestSpecs struct for TestSpecs -type TestSpecs struct { - Specs []TestSpec `json:"specs,omitempty"` -} - -// NewTestSpecs instantiates a new TestSpecs object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSpecs() *TestSpecs { - this := TestSpecs{} - return &this -} - -// NewTestSpecsWithDefaults instantiates a new TestSpecs object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSpecsWithDefaults() *TestSpecs { - this := TestSpecs{} - return &this -} - -// GetSpecs returns the Specs field value if set, zero value otherwise. -func (o *TestSpecs) GetSpecs() []TestSpec { - if o == nil || isNil(o.Specs) { - var ret []TestSpec - return ret - } - return o.Specs -} - -// GetSpecsOk returns a tuple with the Specs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSpecs) GetSpecsOk() ([]TestSpec, bool) { - if o == nil || isNil(o.Specs) { - return nil, false - } - return o.Specs, true -} - -// HasSpecs returns a boolean if a field has been set. -func (o *TestSpecs) HasSpecs() bool { - if o != nil && !isNil(o.Specs) { - return true - } - - return false -} - -// SetSpecs gets a reference to the given []TestSpec and assigns it to the Specs field. -func (o *TestSpecs) SetSpecs(v []TestSpec) { - o.Specs = v -} - -func (o TestSpecs) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSpecs) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Specs) { - toSerialize["specs"] = o.Specs - } - return toSerialize, nil -} - -type NullableTestSpecs struct { - value *TestSpecs - isSet bool -} - -func (v NullableTestSpecs) Get() *TestSpecs { - return v.value -} - -func (v *NullableTestSpecs) Set(val *TestSpecs) { - v.value = val - v.isSet = true -} - -func (v NullableTestSpecs) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSpecs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSpecs(val *TestSpecs) *NullableTestSpecs { - return &NullableTestSpecs{value: val, isSet: true} -} - -func (v NullableTestSpecs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSpecs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_suite.go b/openapi/model_test_suite.go deleted file mode 100644 index b04e9ef..0000000 --- a/openapi/model_test_suite.go +++ /dev/null @@ -1,380 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the TestSuite type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSuite{} - -// TestSuite struct for TestSuite -type TestSuite struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - // version number of the test - Version *int32 `json:"version,omitempty"` - // list of steps of the TestSuite containing just each test id - Steps []string `json:"steps,omitempty"` - // list of steps of the TestSuite containing the whole test object - FullSteps []Test `json:"fullSteps,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Summary *TestSummary `json:"summary,omitempty"` -} - -// NewTestSuite instantiates a new TestSuite object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSuite() *TestSuite { - this := TestSuite{} - return &this -} - -// NewTestSuiteWithDefaults instantiates a new TestSuite object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSuiteWithDefaults() *TestSuite { - this := TestSuite{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *TestSuite) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TestSuite) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *TestSuite) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *TestSuite) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *TestSuite) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *TestSuite) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *TestSuite) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *TestSuite) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *TestSuite) SetDescription(v string) { - o.Description = &v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *TestSuite) GetVersion() int32 { - if o == nil || isNil(o.Version) { - var ret int32 - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetVersionOk() (*int32, bool) { - if o == nil || isNil(o.Version) { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *TestSuite) HasVersion() bool { - if o != nil && !isNil(o.Version) { - return true - } - - return false -} - -// SetVersion gets a reference to the given int32 and assigns it to the Version field. -func (o *TestSuite) SetVersion(v int32) { - o.Version = &v -} - -// GetSteps returns the Steps field value if set, zero value otherwise. -func (o *TestSuite) GetSteps() []string { - if o == nil || isNil(o.Steps) { - var ret []string - return ret - } - return o.Steps -} - -// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetStepsOk() ([]string, bool) { - if o == nil || isNil(o.Steps) { - return nil, false - } - return o.Steps, true -} - -// HasSteps returns a boolean if a field has been set. -func (o *TestSuite) HasSteps() bool { - if o != nil && !isNil(o.Steps) { - return true - } - - return false -} - -// SetSteps gets a reference to the given []string and assigns it to the Steps field. -func (o *TestSuite) SetSteps(v []string) { - o.Steps = v -} - -// GetFullSteps returns the FullSteps field value if set, zero value otherwise. -func (o *TestSuite) GetFullSteps() []Test { - if o == nil || isNil(o.FullSteps) { - var ret []Test - return ret - } - return o.FullSteps -} - -// GetFullStepsOk returns a tuple with the FullSteps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetFullStepsOk() ([]Test, bool) { - if o == nil || isNil(o.FullSteps) { - return nil, false - } - return o.FullSteps, true -} - -// HasFullSteps returns a boolean if a field has been set. -func (o *TestSuite) HasFullSteps() bool { - if o != nil && !isNil(o.FullSteps) { - return true - } - - return false -} - -// SetFullSteps gets a reference to the given []Test and assigns it to the FullSteps field. -func (o *TestSuite) SetFullSteps(v []Test) { - o.FullSteps = v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *TestSuite) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *TestSuite) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *TestSuite) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetSummary returns the Summary field value if set, zero value otherwise. -func (o *TestSuite) GetSummary() TestSummary { - if o == nil || isNil(o.Summary) { - var ret TestSummary - return ret - } - return *o.Summary -} - -// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuite) GetSummaryOk() (*TestSummary, bool) { - if o == nil || isNil(o.Summary) { - return nil, false - } - return o.Summary, true -} - -// HasSummary returns a boolean if a field has been set. -func (o *TestSuite) HasSummary() bool { - if o != nil && !isNil(o.Summary) { - return true - } - - return false -} - -// SetSummary gets a reference to the given TestSummary and assigns it to the Summary field. -func (o *TestSuite) SetSummary(v TestSummary) { - o.Summary = &v -} - -func (o TestSuite) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSuite) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.Version) { - toSerialize["version"] = o.Version - } - if !isNil(o.Steps) { - toSerialize["steps"] = o.Steps - } - if !isNil(o.FullSteps) { - toSerialize["fullSteps"] = o.FullSteps - } - if !isNil(o.CreatedAt) { - toSerialize["createdAt"] = o.CreatedAt - } - if !isNil(o.Summary) { - toSerialize["summary"] = o.Summary - } - return toSerialize, nil -} - -type NullableTestSuite struct { - value *TestSuite - isSet bool -} - -func (v NullableTestSuite) Get() *TestSuite { - return v.value -} - -func (v *NullableTestSuite) Set(val *TestSuite) { - v.value = val - v.isSet = true -} - -func (v NullableTestSuite) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSuite) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSuite(val *TestSuite) *NullableTestSuite { - return &NullableTestSuite{value: val, isSet: true} -} - -func (v NullableTestSuite) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSuite) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_suite_resource.go b/openapi/model_test_suite_resource.go deleted file mode 100644 index 2315158..0000000 --- a/openapi/model_test_suite_resource.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestSuiteResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSuiteResource{} - -// TestSuiteResource Represents a TestSuite structured into the Resources format. -type TestSuiteResource struct { - // Represents the type of this resource. It should always be set as 'TestSuite'. - Type *string `json:"type,omitempty"` - Spec *TestSuite `json:"spec,omitempty"` -} - -// NewTestSuiteResource instantiates a new TestSuiteResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSuiteResource() *TestSuiteResource { - this := TestSuiteResource{} - return &this -} - -// NewTestSuiteResourceWithDefaults instantiates a new TestSuiteResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSuiteResourceWithDefaults() *TestSuiteResource { - this := TestSuiteResource{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *TestSuiteResource) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteResource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *TestSuiteResource) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *TestSuiteResource) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *TestSuiteResource) GetSpec() TestSuite { - if o == nil || isNil(o.Spec) { - var ret TestSuite - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteResource) GetSpecOk() (*TestSuite, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *TestSuiteResource) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given TestSuite and assigns it to the Spec field. -func (o *TestSuiteResource) SetSpec(v TestSuite) { - o.Spec = &v -} - -func (o TestSuiteResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSuiteResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableTestSuiteResource struct { - value *TestSuiteResource - isSet bool -} - -func (v NullableTestSuiteResource) Get() *TestSuiteResource { - return v.value -} - -func (v *NullableTestSuiteResource) Set(val *TestSuiteResource) { - v.value = val - v.isSet = true -} - -func (v NullableTestSuiteResource) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSuiteResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSuiteResource(val *TestSuiteResource) *NullableTestSuiteResource { - return &NullableTestSuiteResource{value: val, isSet: true} -} - -func (v NullableTestSuiteResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSuiteResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_suite_resource_list.go b/openapi/model_test_suite_resource_list.go deleted file mode 100644 index ea24909..0000000 --- a/openapi/model_test_suite_resource_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestSuiteResourceList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSuiteResourceList{} - -// TestSuiteResourceList struct for TestSuiteResourceList -type TestSuiteResourceList struct { - Count *int32 `json:"count,omitempty"` - Items []TestSuiteResource `json:"items,omitempty"` -} - -// NewTestSuiteResourceList instantiates a new TestSuiteResourceList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSuiteResourceList() *TestSuiteResourceList { - this := TestSuiteResourceList{} - return &this -} - -// NewTestSuiteResourceListWithDefaults instantiates a new TestSuiteResourceList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSuiteResourceListWithDefaults() *TestSuiteResourceList { - this := TestSuiteResourceList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *TestSuiteResourceList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteResourceList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *TestSuiteResourceList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *TestSuiteResourceList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *TestSuiteResourceList) GetItems() []TestSuiteResource { - if o == nil || isNil(o.Items) { - var ret []TestSuiteResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteResourceList) GetItemsOk() ([]TestSuiteResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *TestSuiteResourceList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []TestSuiteResource and assigns it to the Items field. -func (o *TestSuiteResourceList) SetItems(v []TestSuiteResource) { - o.Items = v -} - -func (o TestSuiteResourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSuiteResourceList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableTestSuiteResourceList struct { - value *TestSuiteResourceList - isSet bool -} - -func (v NullableTestSuiteResourceList) Get() *TestSuiteResourceList { - return v.value -} - -func (v *NullableTestSuiteResourceList) Set(val *TestSuiteResourceList) { - v.value = val - v.isSet = true -} - -func (v NullableTestSuiteResourceList) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSuiteResourceList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSuiteResourceList(val *TestSuiteResourceList) *NullableTestSuiteResourceList { - return &NullableTestSuiteResourceList{value: val, isSet: true} -} - -func (v NullableTestSuiteResourceList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSuiteResourceList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_suite_run.go b/openapi/model_test_suite_run.go deleted file mode 100644 index 3099d3b..0000000 --- a/openapi/model_test_suite_run.go +++ /dev/null @@ -1,481 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the TestSuiteRun type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSuiteRun{} - -// TestSuiteRun struct for TestSuiteRun -type TestSuiteRun struct { - Id *int32 `json:"id,omitempty"` - Version *int32 `json:"version,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - CompletedAt *time.Time `json:"completedAt,omitempty"` - State *string `json:"state,omitempty"` - Steps []TestRun `json:"steps,omitempty"` - VariableSet *VariableSet `json:"variableSet,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` - Pass *int32 `json:"pass,omitempty"` - Fail *int32 `json:"fail,omitempty"` - AllStepsRequiredGatesPassed *bool `json:"allStepsRequiredGatesPassed,omitempty"` -} - -// NewTestSuiteRun instantiates a new TestSuiteRun object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSuiteRun() *TestSuiteRun { - this := TestSuiteRun{} - return &this -} - -// NewTestSuiteRunWithDefaults instantiates a new TestSuiteRun object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSuiteRunWithDefaults() *TestSuiteRun { - this := TestSuiteRun{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *TestSuiteRun) GetId() int32 { - if o == nil || isNil(o.Id) { - var ret int32 - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetIdOk() (*int32, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TestSuiteRun) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given int32 and assigns it to the Id field. -func (o *TestSuiteRun) SetId(v int32) { - o.Id = &v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *TestSuiteRun) GetVersion() int32 { - if o == nil || isNil(o.Version) { - var ret int32 - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetVersionOk() (*int32, bool) { - if o == nil || isNil(o.Version) { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *TestSuiteRun) HasVersion() bool { - if o != nil && !isNil(o.Version) { - return true - } - - return false -} - -// SetVersion gets a reference to the given int32 and assigns it to the Version field. -func (o *TestSuiteRun) SetVersion(v int32) { - o.Version = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *TestSuiteRun) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *TestSuiteRun) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *TestSuiteRun) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise. -func (o *TestSuiteRun) GetCompletedAt() time.Time { - if o == nil || isNil(o.CompletedAt) { - var ret time.Time - return ret - } - return *o.CompletedAt -} - -// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetCompletedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CompletedAt) { - return nil, false - } - return o.CompletedAt, true -} - -// HasCompletedAt returns a boolean if a field has been set. -func (o *TestSuiteRun) HasCompletedAt() bool { - if o != nil && !isNil(o.CompletedAt) { - return true - } - - return false -} - -// SetCompletedAt gets a reference to the given time.Time and assigns it to the CompletedAt field. -func (o *TestSuiteRun) SetCompletedAt(v time.Time) { - o.CompletedAt = &v -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *TestSuiteRun) GetState() string { - if o == nil || isNil(o.State) { - var ret string - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *TestSuiteRun) HasState() bool { - if o != nil && !isNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given string and assigns it to the State field. -func (o *TestSuiteRun) SetState(v string) { - o.State = &v -} - -// GetSteps returns the Steps field value if set, zero value otherwise. -func (o *TestSuiteRun) GetSteps() []TestRun { - if o == nil || isNil(o.Steps) { - var ret []TestRun - return ret - } - return o.Steps -} - -// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetStepsOk() ([]TestRun, bool) { - if o == nil || isNil(o.Steps) { - return nil, false - } - return o.Steps, true -} - -// HasSteps returns a boolean if a field has been set. -func (o *TestSuiteRun) HasSteps() bool { - if o != nil && !isNil(o.Steps) { - return true - } - - return false -} - -// SetSteps gets a reference to the given []TestRun and assigns it to the Steps field. -func (o *TestSuiteRun) SetSteps(v []TestRun) { - o.Steps = v -} - -// GetVariableSet returns the VariableSet field value if set, zero value otherwise. -func (o *TestSuiteRun) GetVariableSet() VariableSet { - if o == nil || isNil(o.VariableSet) { - var ret VariableSet - return ret - } - return *o.VariableSet -} - -// GetVariableSetOk returns a tuple with the VariableSet field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetVariableSetOk() (*VariableSet, bool) { - if o == nil || isNil(o.VariableSet) { - return nil, false - } - return o.VariableSet, true -} - -// HasVariableSet returns a boolean if a field has been set. -func (o *TestSuiteRun) HasVariableSet() bool { - if o != nil && !isNil(o.VariableSet) { - return true - } - - return false -} - -// SetVariableSet gets a reference to the given VariableSet and assigns it to the VariableSet field. -func (o *TestSuiteRun) SetVariableSet(v VariableSet) { - o.VariableSet = &v -} - -// GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *TestSuiteRun) GetMetadata() map[string]string { - if o == nil || isNil(o.Metadata) { - var ret map[string]string - return ret - } - return *o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Metadata) { - return nil, false - } - return o.Metadata, true -} - -// HasMetadata returns a boolean if a field has been set. -func (o *TestSuiteRun) HasMetadata() bool { - if o != nil && !isNil(o.Metadata) { - return true - } - - return false -} - -// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. -func (o *TestSuiteRun) SetMetadata(v map[string]string) { - o.Metadata = &v -} - -// GetPass returns the Pass field value if set, zero value otherwise. -func (o *TestSuiteRun) GetPass() int32 { - if o == nil || isNil(o.Pass) { - var ret int32 - return ret - } - return *o.Pass -} - -// GetPassOk returns a tuple with the Pass field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetPassOk() (*int32, bool) { - if o == nil || isNil(o.Pass) { - return nil, false - } - return o.Pass, true -} - -// HasPass returns a boolean if a field has been set. -func (o *TestSuiteRun) HasPass() bool { - if o != nil && !isNil(o.Pass) { - return true - } - - return false -} - -// SetPass gets a reference to the given int32 and assigns it to the Pass field. -func (o *TestSuiteRun) SetPass(v int32) { - o.Pass = &v -} - -// GetFail returns the Fail field value if set, zero value otherwise. -func (o *TestSuiteRun) GetFail() int32 { - if o == nil || isNil(o.Fail) { - var ret int32 - return ret - } - return *o.Fail -} - -// GetFailOk returns a tuple with the Fail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetFailOk() (*int32, bool) { - if o == nil || isNil(o.Fail) { - return nil, false - } - return o.Fail, true -} - -// HasFail returns a boolean if a field has been set. -func (o *TestSuiteRun) HasFail() bool { - if o != nil && !isNil(o.Fail) { - return true - } - - return false -} - -// SetFail gets a reference to the given int32 and assigns it to the Fail field. -func (o *TestSuiteRun) SetFail(v int32) { - o.Fail = &v -} - -// GetAllStepsRequiredGatesPassed returns the AllStepsRequiredGatesPassed field value if set, zero value otherwise. -func (o *TestSuiteRun) GetAllStepsRequiredGatesPassed() bool { - if o == nil || isNil(o.AllStepsRequiredGatesPassed) { - var ret bool - return ret - } - return *o.AllStepsRequiredGatesPassed -} - -// GetAllStepsRequiredGatesPassedOk returns a tuple with the AllStepsRequiredGatesPassed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSuiteRun) GetAllStepsRequiredGatesPassedOk() (*bool, bool) { - if o == nil || isNil(o.AllStepsRequiredGatesPassed) { - return nil, false - } - return o.AllStepsRequiredGatesPassed, true -} - -// HasAllStepsRequiredGatesPassed returns a boolean if a field has been set. -func (o *TestSuiteRun) HasAllStepsRequiredGatesPassed() bool { - if o != nil && !isNil(o.AllStepsRequiredGatesPassed) { - return true - } - - return false -} - -// SetAllStepsRequiredGatesPassed gets a reference to the given bool and assigns it to the AllStepsRequiredGatesPassed field. -func (o *TestSuiteRun) SetAllStepsRequiredGatesPassed(v bool) { - o.AllStepsRequiredGatesPassed = &v -} - -func (o TestSuiteRun) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSuiteRun) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: version is readOnly - if !isNil(o.CreatedAt) { - toSerialize["createdAt"] = o.CreatedAt - } - if !isNil(o.CompletedAt) { - toSerialize["completedAt"] = o.CompletedAt - } - if !isNil(o.State) { - toSerialize["state"] = o.State - } - if !isNil(o.Steps) { - toSerialize["steps"] = o.Steps - } - if !isNil(o.VariableSet) { - toSerialize["variableSet"] = o.VariableSet - } - if !isNil(o.Metadata) { - toSerialize["metadata"] = o.Metadata - } - if !isNil(o.Pass) { - toSerialize["pass"] = o.Pass - } - if !isNil(o.Fail) { - toSerialize["fail"] = o.Fail - } - if !isNil(o.AllStepsRequiredGatesPassed) { - toSerialize["allStepsRequiredGatesPassed"] = o.AllStepsRequiredGatesPassed - } - return toSerialize, nil -} - -type NullableTestSuiteRun struct { - value *TestSuiteRun - isSet bool -} - -func (v NullableTestSuiteRun) Get() *TestSuiteRun { - return v.value -} - -func (v *NullableTestSuiteRun) Set(val *TestSuiteRun) { - v.value = val - v.isSet = true -} - -func (v NullableTestSuiteRun) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSuiteRun) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSuiteRun(val *TestSuiteRun) *NullableTestSuiteRun { - return &NullableTestSuiteRun{value: val, isSet: true} -} - -func (v NullableTestSuiteRun) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSuiteRun) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_summary.go b/openapi/model_test_summary.go deleted file mode 100644 index fa2b51d..0000000 --- a/openapi/model_test_summary.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TestSummary type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSummary{} - -// TestSummary struct for TestSummary -type TestSummary struct { - Runs *int32 `json:"runs,omitempty"` - LastRun *TestSummaryLastRun `json:"lastRun,omitempty"` -} - -// NewTestSummary instantiates a new TestSummary object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSummary() *TestSummary { - this := TestSummary{} - return &this -} - -// NewTestSummaryWithDefaults instantiates a new TestSummary object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSummaryWithDefaults() *TestSummary { - this := TestSummary{} - return &this -} - -// GetRuns returns the Runs field value if set, zero value otherwise. -func (o *TestSummary) GetRuns() int32 { - if o == nil || isNil(o.Runs) { - var ret int32 - return ret - } - return *o.Runs -} - -// GetRunsOk returns a tuple with the Runs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSummary) GetRunsOk() (*int32, bool) { - if o == nil || isNil(o.Runs) { - return nil, false - } - return o.Runs, true -} - -// HasRuns returns a boolean if a field has been set. -func (o *TestSummary) HasRuns() bool { - if o != nil && !isNil(o.Runs) { - return true - } - - return false -} - -// SetRuns gets a reference to the given int32 and assigns it to the Runs field. -func (o *TestSummary) SetRuns(v int32) { - o.Runs = &v -} - -// GetLastRun returns the LastRun field value if set, zero value otherwise. -func (o *TestSummary) GetLastRun() TestSummaryLastRun { - if o == nil || isNil(o.LastRun) { - var ret TestSummaryLastRun - return ret - } - return *o.LastRun -} - -// GetLastRunOk returns a tuple with the LastRun field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSummary) GetLastRunOk() (*TestSummaryLastRun, bool) { - if o == nil || isNil(o.LastRun) { - return nil, false - } - return o.LastRun, true -} - -// HasLastRun returns a boolean if a field has been set. -func (o *TestSummary) HasLastRun() bool { - if o != nil && !isNil(o.LastRun) { - return true - } - - return false -} - -// SetLastRun gets a reference to the given TestSummaryLastRun and assigns it to the LastRun field. -func (o *TestSummary) SetLastRun(v TestSummaryLastRun) { - o.LastRun = &v -} - -func (o TestSummary) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSummary) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - // skip: runs is readOnly - if !isNil(o.LastRun) { - toSerialize["lastRun"] = o.LastRun - } - return toSerialize, nil -} - -type NullableTestSummary struct { - value *TestSummary - isSet bool -} - -func (v NullableTestSummary) Get() *TestSummary { - return v.value -} - -func (v *NullableTestSummary) Set(val *TestSummary) { - v.value = val - v.isSet = true -} - -func (v NullableTestSummary) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSummary) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSummary(val *TestSummary) *NullableTestSummary { - return &NullableTestSummary{value: val, isSet: true} -} - -func (v NullableTestSummary) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSummary) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_test_summary_last_run.go b/openapi/model_test_summary_last_run.go deleted file mode 100644 index 2d42718..0000000 --- a/openapi/model_test_summary_last_run.go +++ /dev/null @@ -1,238 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "time" -) - -// checks if the TestSummaryLastRun type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TestSummaryLastRun{} - -// TestSummaryLastRun struct for TestSummaryLastRun -type TestSummaryLastRun struct { - Time NullableTime `json:"time,omitempty"` - Passes *int32 `json:"passes,omitempty"` - Fails *int32 `json:"fails,omitempty"` - AnalyzerScore *int32 `json:"analyzerScore,omitempty"` -} - -// NewTestSummaryLastRun instantiates a new TestSummaryLastRun object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTestSummaryLastRun() *TestSummaryLastRun { - this := TestSummaryLastRun{} - return &this -} - -// NewTestSummaryLastRunWithDefaults instantiates a new TestSummaryLastRun object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTestSummaryLastRunWithDefaults() *TestSummaryLastRun { - this := TestSummaryLastRun{} - return &this -} - -// GetTime returns the Time field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TestSummaryLastRun) GetTime() time.Time { - if o == nil || isNil(o.Time.Get()) { - var ret time.Time - return ret - } - return *o.Time.Get() -} - -// GetTimeOk returns a tuple with the Time field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TestSummaryLastRun) GetTimeOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Time.Get(), o.Time.IsSet() -} - -// HasTime returns a boolean if a field has been set. -func (o *TestSummaryLastRun) HasTime() bool { - if o != nil && o.Time.IsSet() { - return true - } - - return false -} - -// SetTime gets a reference to the given NullableTime and assigns it to the Time field. -func (o *TestSummaryLastRun) SetTime(v time.Time) { - o.Time.Set(&v) -} - -// SetTimeNil sets the value for Time to be an explicit nil -func (o *TestSummaryLastRun) SetTimeNil() { - o.Time.Set(nil) -} - -// UnsetTime ensures that no value is present for Time, not even an explicit nil -func (o *TestSummaryLastRun) UnsetTime() { - o.Time.Unset() -} - -// GetPasses returns the Passes field value if set, zero value otherwise. -func (o *TestSummaryLastRun) GetPasses() int32 { - if o == nil || isNil(o.Passes) { - var ret int32 - return ret - } - return *o.Passes -} - -// GetPassesOk returns a tuple with the Passes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSummaryLastRun) GetPassesOk() (*int32, bool) { - if o == nil || isNil(o.Passes) { - return nil, false - } - return o.Passes, true -} - -// HasPasses returns a boolean if a field has been set. -func (o *TestSummaryLastRun) HasPasses() bool { - if o != nil && !isNil(o.Passes) { - return true - } - - return false -} - -// SetPasses gets a reference to the given int32 and assigns it to the Passes field. -func (o *TestSummaryLastRun) SetPasses(v int32) { - o.Passes = &v -} - -// GetFails returns the Fails field value if set, zero value otherwise. -func (o *TestSummaryLastRun) GetFails() int32 { - if o == nil || isNil(o.Fails) { - var ret int32 - return ret - } - return *o.Fails -} - -// GetFailsOk returns a tuple with the Fails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSummaryLastRun) GetFailsOk() (*int32, bool) { - if o == nil || isNil(o.Fails) { - return nil, false - } - return o.Fails, true -} - -// HasFails returns a boolean if a field has been set. -func (o *TestSummaryLastRun) HasFails() bool { - if o != nil && !isNil(o.Fails) { - return true - } - - return false -} - -// SetFails gets a reference to the given int32 and assigns it to the Fails field. -func (o *TestSummaryLastRun) SetFails(v int32) { - o.Fails = &v -} - -// GetAnalyzerScore returns the AnalyzerScore field value if set, zero value otherwise. -func (o *TestSummaryLastRun) GetAnalyzerScore() int32 { - if o == nil || isNil(o.AnalyzerScore) { - var ret int32 - return ret - } - return *o.AnalyzerScore -} - -// GetAnalyzerScoreOk returns a tuple with the AnalyzerScore field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TestSummaryLastRun) GetAnalyzerScoreOk() (*int32, bool) { - if o == nil || isNil(o.AnalyzerScore) { - return nil, false - } - return o.AnalyzerScore, true -} - -// HasAnalyzerScore returns a boolean if a field has been set. -func (o *TestSummaryLastRun) HasAnalyzerScore() bool { - if o != nil && !isNil(o.AnalyzerScore) { - return true - } - - return false -} - -// SetAnalyzerScore gets a reference to the given int32 and assigns it to the AnalyzerScore field. -func (o *TestSummaryLastRun) SetAnalyzerScore(v int32) { - o.AnalyzerScore = &v -} - -func (o TestSummaryLastRun) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TestSummaryLastRun) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Time.IsSet() { - toSerialize["time"] = o.Time.Get() - } - // skip: passes is readOnly - // skip: fails is readOnly - // skip: analyzerScore is readOnly - return toSerialize, nil -} - -type NullableTestSummaryLastRun struct { - value *TestSummaryLastRun - isSet bool -} - -func (v NullableTestSummaryLastRun) Get() *TestSummaryLastRun { - return v.value -} - -func (v *NullableTestSummaryLastRun) Set(val *TestSummaryLastRun) { - v.value = val - v.isSet = true -} - -func (v NullableTestSummaryLastRun) IsSet() bool { - return v.isSet -} - -func (v *NullableTestSummaryLastRun) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTestSummaryLastRun(val *TestSummaryLastRun) *NullableTestSummaryLastRun { - return &NullableTestSummaryLastRun{value: val, isSet: true} -} - -func (v NullableTestSummaryLastRun) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTestSummaryLastRun) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_tls.go b/openapi/model_tls.go deleted file mode 100644 index cf08bb3..0000000 --- a/openapi/model_tls.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TLS type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TLS{} - -// TLS struct for TLS -type TLS struct { - Insecure *bool `json:"insecure,omitempty"` - InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` - ServerName *string `json:"serverName,omitempty"` - Settings *TLSSetting `json:"settings,omitempty"` -} - -// NewTLS instantiates a new TLS object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTLS() *TLS { - this := TLS{} - return &this -} - -// NewTLSWithDefaults instantiates a new TLS object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTLSWithDefaults() *TLS { - this := TLS{} - return &this -} - -// GetInsecure returns the Insecure field value if set, zero value otherwise. -func (o *TLS) GetInsecure() bool { - if o == nil || isNil(o.Insecure) { - var ret bool - return ret - } - return *o.Insecure -} - -// GetInsecureOk returns a tuple with the Insecure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLS) GetInsecureOk() (*bool, bool) { - if o == nil || isNil(o.Insecure) { - return nil, false - } - return o.Insecure, true -} - -// HasInsecure returns a boolean if a field has been set. -func (o *TLS) HasInsecure() bool { - if o != nil && !isNil(o.Insecure) { - return true - } - - return false -} - -// SetInsecure gets a reference to the given bool and assigns it to the Insecure field. -func (o *TLS) SetInsecure(v bool) { - o.Insecure = &v -} - -// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. -func (o *TLS) GetInsecureSkipVerify() bool { - if o == nil || isNil(o.InsecureSkipVerify) { - var ret bool - return ret - } - return *o.InsecureSkipVerify -} - -// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLS) GetInsecureSkipVerifyOk() (*bool, bool) { - if o == nil || isNil(o.InsecureSkipVerify) { - return nil, false - } - return o.InsecureSkipVerify, true -} - -// HasInsecureSkipVerify returns a boolean if a field has been set. -func (o *TLS) HasInsecureSkipVerify() bool { - if o != nil && !isNil(o.InsecureSkipVerify) { - return true - } - - return false -} - -// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. -func (o *TLS) SetInsecureSkipVerify(v bool) { - o.InsecureSkipVerify = &v -} - -// GetServerName returns the ServerName field value if set, zero value otherwise. -func (o *TLS) GetServerName() string { - if o == nil || isNil(o.ServerName) { - var ret string - return ret - } - return *o.ServerName -} - -// GetServerNameOk returns a tuple with the ServerName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLS) GetServerNameOk() (*string, bool) { - if o == nil || isNil(o.ServerName) { - return nil, false - } - return o.ServerName, true -} - -// HasServerName returns a boolean if a field has been set. -func (o *TLS) HasServerName() bool { - if o != nil && !isNil(o.ServerName) { - return true - } - - return false -} - -// SetServerName gets a reference to the given string and assigns it to the ServerName field. -func (o *TLS) SetServerName(v string) { - o.ServerName = &v -} - -// GetSettings returns the Settings field value if set, zero value otherwise. -func (o *TLS) GetSettings() TLSSetting { - if o == nil || isNil(o.Settings) { - var ret TLSSetting - return ret - } - return *o.Settings -} - -// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLS) GetSettingsOk() (*TLSSetting, bool) { - if o == nil || isNil(o.Settings) { - return nil, false - } - return o.Settings, true -} - -// HasSettings returns a boolean if a field has been set. -func (o *TLS) HasSettings() bool { - if o != nil && !isNil(o.Settings) { - return true - } - - return false -} - -// SetSettings gets a reference to the given TLSSetting and assigns it to the Settings field. -func (o *TLS) SetSettings(v TLSSetting) { - o.Settings = &v -} - -func (o TLS) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TLS) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Insecure) { - toSerialize["insecure"] = o.Insecure - } - if !isNil(o.InsecureSkipVerify) { - toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify - } - if !isNil(o.ServerName) { - toSerialize["serverName"] = o.ServerName - } - if !isNil(o.Settings) { - toSerialize["settings"] = o.Settings - } - return toSerialize, nil -} - -type NullableTLS struct { - value *TLS - isSet bool -} - -func (v NullableTLS) Get() *TLS { - return v.value -} - -func (v *NullableTLS) Set(val *TLS) { - v.value = val - v.isSet = true -} - -func (v NullableTLS) IsSet() bool { - return v.isSet -} - -func (v *NullableTLS) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTLS(val *TLS) *NullableTLS { - return &NullableTLS{value: val, isSet: true} -} - -func (v NullableTLS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTLS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_tls_setting.go b/openapi/model_tls_setting.go deleted file mode 100644 index 7960cbd..0000000 --- a/openapi/model_tls_setting.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TLSSetting type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TLSSetting{} - -// TLSSetting struct for TLSSetting -type TLSSetting struct { - CAFile *string `json:"cAFile,omitempty"` - CertFile *string `json:"certFile,omitempty"` - KeyFile *string `json:"keyFile,omitempty"` - MinVersion *string `json:"minVersion,omitempty"` - MaxVersion *string `json:"maxVersion,omitempty"` -} - -// NewTLSSetting instantiates a new TLSSetting object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTLSSetting() *TLSSetting { - this := TLSSetting{} - return &this -} - -// NewTLSSettingWithDefaults instantiates a new TLSSetting object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTLSSettingWithDefaults() *TLSSetting { - this := TLSSetting{} - return &this -} - -// GetCAFile returns the CAFile field value if set, zero value otherwise. -func (o *TLSSetting) GetCAFile() string { - if o == nil || isNil(o.CAFile) { - var ret string - return ret - } - return *o.CAFile -} - -// GetCAFileOk returns a tuple with the CAFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLSSetting) GetCAFileOk() (*string, bool) { - if o == nil || isNil(o.CAFile) { - return nil, false - } - return o.CAFile, true -} - -// HasCAFile returns a boolean if a field has been set. -func (o *TLSSetting) HasCAFile() bool { - if o != nil && !isNil(o.CAFile) { - return true - } - - return false -} - -// SetCAFile gets a reference to the given string and assigns it to the CAFile field. -func (o *TLSSetting) SetCAFile(v string) { - o.CAFile = &v -} - -// GetCertFile returns the CertFile field value if set, zero value otherwise. -func (o *TLSSetting) GetCertFile() string { - if o == nil || isNil(o.CertFile) { - var ret string - return ret - } - return *o.CertFile -} - -// GetCertFileOk returns a tuple with the CertFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLSSetting) GetCertFileOk() (*string, bool) { - if o == nil || isNil(o.CertFile) { - return nil, false - } - return o.CertFile, true -} - -// HasCertFile returns a boolean if a field has been set. -func (o *TLSSetting) HasCertFile() bool { - if o != nil && !isNil(o.CertFile) { - return true - } - - return false -} - -// SetCertFile gets a reference to the given string and assigns it to the CertFile field. -func (o *TLSSetting) SetCertFile(v string) { - o.CertFile = &v -} - -// GetKeyFile returns the KeyFile field value if set, zero value otherwise. -func (o *TLSSetting) GetKeyFile() string { - if o == nil || isNil(o.KeyFile) { - var ret string - return ret - } - return *o.KeyFile -} - -// GetKeyFileOk returns a tuple with the KeyFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLSSetting) GetKeyFileOk() (*string, bool) { - if o == nil || isNil(o.KeyFile) { - return nil, false - } - return o.KeyFile, true -} - -// HasKeyFile returns a boolean if a field has been set. -func (o *TLSSetting) HasKeyFile() bool { - if o != nil && !isNil(o.KeyFile) { - return true - } - - return false -} - -// SetKeyFile gets a reference to the given string and assigns it to the KeyFile field. -func (o *TLSSetting) SetKeyFile(v string) { - o.KeyFile = &v -} - -// GetMinVersion returns the MinVersion field value if set, zero value otherwise. -func (o *TLSSetting) GetMinVersion() string { - if o == nil || isNil(o.MinVersion) { - var ret string - return ret - } - return *o.MinVersion -} - -// GetMinVersionOk returns a tuple with the MinVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLSSetting) GetMinVersionOk() (*string, bool) { - if o == nil || isNil(o.MinVersion) { - return nil, false - } - return o.MinVersion, true -} - -// HasMinVersion returns a boolean if a field has been set. -func (o *TLSSetting) HasMinVersion() bool { - if o != nil && !isNil(o.MinVersion) { - return true - } - - return false -} - -// SetMinVersion gets a reference to the given string and assigns it to the MinVersion field. -func (o *TLSSetting) SetMinVersion(v string) { - o.MinVersion = &v -} - -// GetMaxVersion returns the MaxVersion field value if set, zero value otherwise. -func (o *TLSSetting) GetMaxVersion() string { - if o == nil || isNil(o.MaxVersion) { - var ret string - return ret - } - return *o.MaxVersion -} - -// GetMaxVersionOk returns a tuple with the MaxVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TLSSetting) GetMaxVersionOk() (*string, bool) { - if o == nil || isNil(o.MaxVersion) { - return nil, false - } - return o.MaxVersion, true -} - -// HasMaxVersion returns a boolean if a field has been set. -func (o *TLSSetting) HasMaxVersion() bool { - if o != nil && !isNil(o.MaxVersion) { - return true - } - - return false -} - -// SetMaxVersion gets a reference to the given string and assigns it to the MaxVersion field. -func (o *TLSSetting) SetMaxVersion(v string) { - o.MaxVersion = &v -} - -func (o TLSSetting) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TLSSetting) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.CAFile) { - toSerialize["cAFile"] = o.CAFile - } - if !isNil(o.CertFile) { - toSerialize["certFile"] = o.CertFile - } - if !isNil(o.KeyFile) { - toSerialize["keyFile"] = o.KeyFile - } - if !isNil(o.MinVersion) { - toSerialize["minVersion"] = o.MinVersion - } - if !isNil(o.MaxVersion) { - toSerialize["maxVersion"] = o.MaxVersion - } - return toSerialize, nil -} - -type NullableTLSSetting struct { - value *TLSSetting - isSet bool -} - -func (v NullableTLSSetting) Get() *TLSSetting { - return v.value -} - -func (v *NullableTLSSetting) Set(val *TLSSetting) { - v.value = val - v.isSet = true -} - -func (v NullableTLSSetting) IsSet() bool { - return v.isSet -} - -func (v *NullableTLSSetting) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTLSSetting(val *TLSSetting) *NullableTLSSetting { - return &NullableTLSSetting{value: val, isSet: true} -} - -func (v NullableTLSSetting) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTLSSetting) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_trace.go b/openapi/model_trace.go deleted file mode 100644 index 59e8af3..0000000 --- a/openapi/model_trace.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Trace type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Trace{} - -// Trace struct for Trace -type Trace struct { - TraceId *string `json:"traceId,omitempty"` - Tree *Span `json:"tree,omitempty"` - // falttened version, mapped as spanId -> span{} - Flat *map[string]Span `json:"flat,omitempty"` -} - -// NewTrace instantiates a new Trace object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTrace() *Trace { - this := Trace{} - return &this -} - -// NewTraceWithDefaults instantiates a new Trace object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceWithDefaults() *Trace { - this := Trace{} - return &this -} - -// GetTraceId returns the TraceId field value if set, zero value otherwise. -func (o *Trace) GetTraceId() string { - if o == nil || isNil(o.TraceId) { - var ret string - return ret - } - return *o.TraceId -} - -// GetTraceIdOk returns a tuple with the TraceId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trace) GetTraceIdOk() (*string, bool) { - if o == nil || isNil(o.TraceId) { - return nil, false - } - return o.TraceId, true -} - -// HasTraceId returns a boolean if a field has been set. -func (o *Trace) HasTraceId() bool { - if o != nil && !isNil(o.TraceId) { - return true - } - - return false -} - -// SetTraceId gets a reference to the given string and assigns it to the TraceId field. -func (o *Trace) SetTraceId(v string) { - o.TraceId = &v -} - -// GetTree returns the Tree field value if set, zero value otherwise. -func (o *Trace) GetTree() Span { - if o == nil || isNil(o.Tree) { - var ret Span - return ret - } - return *o.Tree -} - -// GetTreeOk returns a tuple with the Tree field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trace) GetTreeOk() (*Span, bool) { - if o == nil || isNil(o.Tree) { - return nil, false - } - return o.Tree, true -} - -// HasTree returns a boolean if a field has been set. -func (o *Trace) HasTree() bool { - if o != nil && !isNil(o.Tree) { - return true - } - - return false -} - -// SetTree gets a reference to the given Span and assigns it to the Tree field. -func (o *Trace) SetTree(v Span) { - o.Tree = &v -} - -// GetFlat returns the Flat field value if set, zero value otherwise. -func (o *Trace) GetFlat() map[string]Span { - if o == nil || isNil(o.Flat) { - var ret map[string]Span - return ret - } - return *o.Flat -} - -// GetFlatOk returns a tuple with the Flat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trace) GetFlatOk() (*map[string]Span, bool) { - if o == nil || isNil(o.Flat) { - return nil, false - } - return o.Flat, true -} - -// HasFlat returns a boolean if a field has been set. -func (o *Trace) HasFlat() bool { - if o != nil && !isNil(o.Flat) { - return true - } - - return false -} - -// SetFlat gets a reference to the given map[string]Span and assigns it to the Flat field. -func (o *Trace) SetFlat(v map[string]Span) { - o.Flat = &v -} - -func (o Trace) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Trace) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.TraceId) { - toSerialize["traceId"] = o.TraceId - } - if !isNil(o.Tree) { - toSerialize["tree"] = o.Tree - } - if !isNil(o.Flat) { - toSerialize["flat"] = o.Flat - } - return toSerialize, nil -} - -type NullableTrace struct { - value *Trace - isSet bool -} - -func (v NullableTrace) Get() *Trace { - return v.value -} - -func (v *NullableTrace) Set(val *Trace) { - v.value = val - v.isSet = true -} - -func (v NullableTrace) IsSet() bool { - return v.isSet -} - -func (v *NullableTrace) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrace(val *Trace) *NullableTrace { - return &NullableTrace{value: val, isSet: true} -} - -func (v NullableTrace) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTrace) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_traceid_request.go b/openapi/model_traceid_request.go deleted file mode 100644 index e63ab5c..0000000 --- a/openapi/model_traceid_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TRACEIDRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TRACEIDRequest{} - -// TRACEIDRequest struct for TRACEIDRequest -type TRACEIDRequest struct { - Id *string `json:"id,omitempty"` -} - -// NewTRACEIDRequest instantiates a new TRACEIDRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTRACEIDRequest() *TRACEIDRequest { - this := TRACEIDRequest{} - return &this -} - -// NewTRACEIDRequestWithDefaults instantiates a new TRACEIDRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTRACEIDRequestWithDefaults() *TRACEIDRequest { - this := TRACEIDRequest{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *TRACEIDRequest) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TRACEIDRequest) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TRACEIDRequest) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *TRACEIDRequest) SetId(v string) { - o.Id = &v -} - -func (o TRACEIDRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TRACEIDRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableTRACEIDRequest struct { - value *TRACEIDRequest - isSet bool -} - -func (v NullableTRACEIDRequest) Get() *TRACEIDRequest { - return v.value -} - -func (v *NullableTRACEIDRequest) Set(val *TRACEIDRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTRACEIDRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTRACEIDRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTRACEIDRequest(val *TRACEIDRequest) *NullableTRACEIDRequest { - return &NullableTRACEIDRequest{value: val, isSet: true} -} - -func (v NullableTRACEIDRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTRACEIDRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_traceid_response.go b/openapi/model_traceid_response.go deleted file mode 100644 index 1ed992c..0000000 --- a/openapi/model_traceid_response.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TRACEIDResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TRACEIDResponse{} - -// TRACEIDResponse struct for TRACEIDResponse -type TRACEIDResponse struct { - Id *string `json:"id,omitempty"` -} - -// NewTRACEIDResponse instantiates a new TRACEIDResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTRACEIDResponse() *TRACEIDResponse { - this := TRACEIDResponse{} - return &this -} - -// NewTRACEIDResponseWithDefaults instantiates a new TRACEIDResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTRACEIDResponseWithDefaults() *TRACEIDResponse { - this := TRACEIDResponse{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *TRACEIDResponse) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TRACEIDResponse) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TRACEIDResponse) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *TRACEIDResponse) SetId(v string) { - o.Id = &v -} - -func (o TRACEIDResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TRACEIDResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableTRACEIDResponse struct { - value *TRACEIDResponse - isSet bool -} - -func (v NullableTRACEIDResponse) Get() *TRACEIDResponse { - return v.value -} - -func (v *NullableTRACEIDResponse) Set(val *TRACEIDResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTRACEIDResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTRACEIDResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTRACEIDResponse(val *TRACEIDResponse) *NullableTRACEIDResponse { - return &NullableTRACEIDResponse{value: val, isSet: true} -} - -func (v NullableTRACEIDResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTRACEIDResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_trigger.go b/openapi/model_trigger.go deleted file mode 100644 index afd9579..0000000 --- a/openapi/model_trigger.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Trigger type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Trigger{} - -// Trigger struct for Trigger -type Trigger struct { - Type *string `json:"type,omitempty"` - HttpRequest *HTTPRequest `json:"httpRequest,omitempty"` - Grpc *GRPCRequest `json:"grpc,omitempty"` - Traceid *TRACEIDRequest `json:"traceid,omitempty"` - Kafka *KafkaRequest `json:"kafka,omitempty"` -} - -// NewTrigger instantiates a new Trigger object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTrigger() *Trigger { - this := Trigger{} - return &this -} - -// NewTriggerWithDefaults instantiates a new Trigger object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTriggerWithDefaults() *Trigger { - this := Trigger{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *Trigger) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trigger) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *Trigger) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *Trigger) SetType(v string) { - o.Type = &v -} - -// GetHttpRequest returns the HttpRequest field value if set, zero value otherwise. -func (o *Trigger) GetHttpRequest() HTTPRequest { - if o == nil || isNil(o.HttpRequest) { - var ret HTTPRequest - return ret - } - return *o.HttpRequest -} - -// GetHttpRequestOk returns a tuple with the HttpRequest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trigger) GetHttpRequestOk() (*HTTPRequest, bool) { - if o == nil || isNil(o.HttpRequest) { - return nil, false - } - return o.HttpRequest, true -} - -// HasHttpRequest returns a boolean if a field has been set. -func (o *Trigger) HasHttpRequest() bool { - if o != nil && !isNil(o.HttpRequest) { - return true - } - - return false -} - -// SetHttpRequest gets a reference to the given HTTPRequest and assigns it to the HttpRequest field. -func (o *Trigger) SetHttpRequest(v HTTPRequest) { - o.HttpRequest = &v -} - -// GetGrpc returns the Grpc field value if set, zero value otherwise. -func (o *Trigger) GetGrpc() GRPCRequest { - if o == nil || isNil(o.Grpc) { - var ret GRPCRequest - return ret - } - return *o.Grpc -} - -// GetGrpcOk returns a tuple with the Grpc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trigger) GetGrpcOk() (*GRPCRequest, bool) { - if o == nil || isNil(o.Grpc) { - return nil, false - } - return o.Grpc, true -} - -// HasGrpc returns a boolean if a field has been set. -func (o *Trigger) HasGrpc() bool { - if o != nil && !isNil(o.Grpc) { - return true - } - - return false -} - -// SetGrpc gets a reference to the given GRPCRequest and assigns it to the Grpc field. -func (o *Trigger) SetGrpc(v GRPCRequest) { - o.Grpc = &v -} - -// GetTraceid returns the Traceid field value if set, zero value otherwise. -func (o *Trigger) GetTraceid() TRACEIDRequest { - if o == nil || isNil(o.Traceid) { - var ret TRACEIDRequest - return ret - } - return *o.Traceid -} - -// GetTraceidOk returns a tuple with the Traceid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trigger) GetTraceidOk() (*TRACEIDRequest, bool) { - if o == nil || isNil(o.Traceid) { - return nil, false - } - return o.Traceid, true -} - -// HasTraceid returns a boolean if a field has been set. -func (o *Trigger) HasTraceid() bool { - if o != nil && !isNil(o.Traceid) { - return true - } - - return false -} - -// SetTraceid gets a reference to the given TRACEIDRequest and assigns it to the Traceid field. -func (o *Trigger) SetTraceid(v TRACEIDRequest) { - o.Traceid = &v -} - -// GetKafka returns the Kafka field value if set, zero value otherwise. -func (o *Trigger) GetKafka() KafkaRequest { - if o == nil || isNil(o.Kafka) { - var ret KafkaRequest - return ret - } - return *o.Kafka -} - -// GetKafkaOk returns a tuple with the Kafka field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Trigger) GetKafkaOk() (*KafkaRequest, bool) { - if o == nil || isNil(o.Kafka) { - return nil, false - } - return o.Kafka, true -} - -// HasKafka returns a boolean if a field has been set. -func (o *Trigger) HasKafka() bool { - if o != nil && !isNil(o.Kafka) { - return true - } - - return false -} - -// SetKafka gets a reference to the given KafkaRequest and assigns it to the Kafka field. -func (o *Trigger) SetKafka(v KafkaRequest) { - o.Kafka = &v -} - -func (o Trigger) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Trigger) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.HttpRequest) { - toSerialize["httpRequest"] = o.HttpRequest - } - if !isNil(o.Grpc) { - toSerialize["grpc"] = o.Grpc - } - if !isNil(o.Traceid) { - toSerialize["traceid"] = o.Traceid - } - if !isNil(o.Kafka) { - toSerialize["kafka"] = o.Kafka - } - return toSerialize, nil -} - -type NullableTrigger struct { - value *Trigger - isSet bool -} - -func (v NullableTrigger) Get() *Trigger { - return v.value -} - -func (v *NullableTrigger) Set(val *Trigger) { - v.value = val - v.isSet = true -} - -func (v NullableTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrigger(val *Trigger) *NullableTrigger { - return &NullableTrigger{value: val, isSet: true} -} - -func (v NullableTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_trigger_result.go b/openapi/model_trigger_result.go deleted file mode 100644 index 740fb67..0000000 --- a/openapi/model_trigger_result.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TriggerResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TriggerResult{} - -// TriggerResult struct for TriggerResult -type TriggerResult struct { - Type *string `json:"type,omitempty"` - TriggerResult *TriggerResultTriggerResult `json:"triggerResult,omitempty"` -} - -// NewTriggerResult instantiates a new TriggerResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTriggerResult() *TriggerResult { - this := TriggerResult{} - return &this -} - -// NewTriggerResultWithDefaults instantiates a new TriggerResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTriggerResultWithDefaults() *TriggerResult { - this := TriggerResult{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *TriggerResult) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TriggerResult) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *TriggerResult) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *TriggerResult) SetType(v string) { - o.Type = &v -} - -// GetTriggerResult returns the TriggerResult field value if set, zero value otherwise. -func (o *TriggerResult) GetTriggerResult() TriggerResultTriggerResult { - if o == nil || isNil(o.TriggerResult) { - var ret TriggerResultTriggerResult - return ret - } - return *o.TriggerResult -} - -// GetTriggerResultOk returns a tuple with the TriggerResult field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TriggerResult) GetTriggerResultOk() (*TriggerResultTriggerResult, bool) { - if o == nil || isNil(o.TriggerResult) { - return nil, false - } - return o.TriggerResult, true -} - -// HasTriggerResult returns a boolean if a field has been set. -func (o *TriggerResult) HasTriggerResult() bool { - if o != nil && !isNil(o.TriggerResult) { - return true - } - - return false -} - -// SetTriggerResult gets a reference to the given TriggerResultTriggerResult and assigns it to the TriggerResult field. -func (o *TriggerResult) SetTriggerResult(v TriggerResultTriggerResult) { - o.TriggerResult = &v -} - -func (o TriggerResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TriggerResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.TriggerResult) { - toSerialize["triggerResult"] = o.TriggerResult - } - return toSerialize, nil -} - -type NullableTriggerResult struct { - value *TriggerResult - isSet bool -} - -func (v NullableTriggerResult) Get() *TriggerResult { - return v.value -} - -func (v *NullableTriggerResult) Set(val *TriggerResult) { - v.value = val - v.isSet = true -} - -func (v NullableTriggerResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTriggerResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTriggerResult(val *TriggerResult) *NullableTriggerResult { - return &NullableTriggerResult{value: val, isSet: true} -} - -func (v NullableTriggerResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTriggerResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_trigger_result_trigger_result.go b/openapi/model_trigger_result_trigger_result.go deleted file mode 100644 index 918571c..0000000 --- a/openapi/model_trigger_result_trigger_result.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the TriggerResultTriggerResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TriggerResultTriggerResult{} - -// TriggerResultTriggerResult struct for TriggerResultTriggerResult -type TriggerResultTriggerResult struct { - Http *HTTPResponse `json:"http,omitempty"` - Grpc *GRPCResponse `json:"grpc,omitempty"` - Traceid *TRACEIDResponse `json:"traceid,omitempty"` - Kafka *KafkaResponse `json:"kafka,omitempty"` -} - -// NewTriggerResultTriggerResult instantiates a new TriggerResultTriggerResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTriggerResultTriggerResult() *TriggerResultTriggerResult { - this := TriggerResultTriggerResult{} - return &this -} - -// NewTriggerResultTriggerResultWithDefaults instantiates a new TriggerResultTriggerResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTriggerResultTriggerResultWithDefaults() *TriggerResultTriggerResult { - this := TriggerResultTriggerResult{} - return &this -} - -// GetHttp returns the Http field value if set, zero value otherwise. -func (o *TriggerResultTriggerResult) GetHttp() HTTPResponse { - if o == nil || isNil(o.Http) { - var ret HTTPResponse - return ret - } - return *o.Http -} - -// GetHttpOk returns a tuple with the Http field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TriggerResultTriggerResult) GetHttpOk() (*HTTPResponse, bool) { - if o == nil || isNil(o.Http) { - return nil, false - } - return o.Http, true -} - -// HasHttp returns a boolean if a field has been set. -func (o *TriggerResultTriggerResult) HasHttp() bool { - if o != nil && !isNil(o.Http) { - return true - } - - return false -} - -// SetHttp gets a reference to the given HTTPResponse and assigns it to the Http field. -func (o *TriggerResultTriggerResult) SetHttp(v HTTPResponse) { - o.Http = &v -} - -// GetGrpc returns the Grpc field value if set, zero value otherwise. -func (o *TriggerResultTriggerResult) GetGrpc() GRPCResponse { - if o == nil || isNil(o.Grpc) { - var ret GRPCResponse - return ret - } - return *o.Grpc -} - -// GetGrpcOk returns a tuple with the Grpc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TriggerResultTriggerResult) GetGrpcOk() (*GRPCResponse, bool) { - if o == nil || isNil(o.Grpc) { - return nil, false - } - return o.Grpc, true -} - -// HasGrpc returns a boolean if a field has been set. -func (o *TriggerResultTriggerResult) HasGrpc() bool { - if o != nil && !isNil(o.Grpc) { - return true - } - - return false -} - -// SetGrpc gets a reference to the given GRPCResponse and assigns it to the Grpc field. -func (o *TriggerResultTriggerResult) SetGrpc(v GRPCResponse) { - o.Grpc = &v -} - -// GetTraceid returns the Traceid field value if set, zero value otherwise. -func (o *TriggerResultTriggerResult) GetTraceid() TRACEIDResponse { - if o == nil || isNil(o.Traceid) { - var ret TRACEIDResponse - return ret - } - return *o.Traceid -} - -// GetTraceidOk returns a tuple with the Traceid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TriggerResultTriggerResult) GetTraceidOk() (*TRACEIDResponse, bool) { - if o == nil || isNil(o.Traceid) { - return nil, false - } - return o.Traceid, true -} - -// HasTraceid returns a boolean if a field has been set. -func (o *TriggerResultTriggerResult) HasTraceid() bool { - if o != nil && !isNil(o.Traceid) { - return true - } - - return false -} - -// SetTraceid gets a reference to the given TRACEIDResponse and assigns it to the Traceid field. -func (o *TriggerResultTriggerResult) SetTraceid(v TRACEIDResponse) { - o.Traceid = &v -} - -// GetKafka returns the Kafka field value if set, zero value otherwise. -func (o *TriggerResultTriggerResult) GetKafka() KafkaResponse { - if o == nil || isNil(o.Kafka) { - var ret KafkaResponse - return ret - } - return *o.Kafka -} - -// GetKafkaOk returns a tuple with the Kafka field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TriggerResultTriggerResult) GetKafkaOk() (*KafkaResponse, bool) { - if o == nil || isNil(o.Kafka) { - return nil, false - } - return o.Kafka, true -} - -// HasKafka returns a boolean if a field has been set. -func (o *TriggerResultTriggerResult) HasKafka() bool { - if o != nil && !isNil(o.Kafka) { - return true - } - - return false -} - -// SetKafka gets a reference to the given KafkaResponse and assigns it to the Kafka field. -func (o *TriggerResultTriggerResult) SetKafka(v KafkaResponse) { - o.Kafka = &v -} - -func (o TriggerResultTriggerResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TriggerResultTriggerResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Http) { - toSerialize["http"] = o.Http - } - if !isNil(o.Grpc) { - toSerialize["grpc"] = o.Grpc - } - if !isNil(o.Traceid) { - toSerialize["traceid"] = o.Traceid - } - if !isNil(o.Kafka) { - toSerialize["kafka"] = o.Kafka - } - return toSerialize, nil -} - -type NullableTriggerResultTriggerResult struct { - value *TriggerResultTriggerResult - isSet bool -} - -func (v NullableTriggerResultTriggerResult) Get() *TriggerResultTriggerResult { - return v.value -} - -func (v *NullableTriggerResultTriggerResult) Set(val *TriggerResultTriggerResult) { - v.value = val - v.isSet = true -} - -func (v NullableTriggerResultTriggerResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTriggerResultTriggerResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTriggerResultTriggerResult(val *TriggerResultTriggerResult) *NullableTriggerResultTriggerResult { - return &NullableTriggerResultTriggerResult{value: val, isSet: true} -} - -func (v NullableTriggerResultTriggerResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTriggerResultTriggerResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_variable.go b/openapi/model_variable.go deleted file mode 100644 index 3355eb9..0000000 --- a/openapi/model_variable.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Variable type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Variable{} - -// Variable struct for Variable -type Variable struct { - Key *string `json:"key,omitempty"` - DefaultValue *string `json:"defaultValue,omitempty"` -} - -// NewVariable instantiates a new Variable object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewVariable() *Variable { - this := Variable{} - return &this -} - -// NewVariableWithDefaults instantiates a new Variable object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewVariableWithDefaults() *Variable { - this := Variable{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *Variable) GetKey() string { - if o == nil || isNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Variable) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *Variable) HasKey() bool { - if o != nil && !isNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *Variable) SetKey(v string) { - o.Key = &v -} - -// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. -func (o *Variable) GetDefaultValue() string { - if o == nil || isNil(o.DefaultValue) { - var ret string - return ret - } - return *o.DefaultValue -} - -// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Variable) GetDefaultValueOk() (*string, bool) { - if o == nil || isNil(o.DefaultValue) { - return nil, false - } - return o.DefaultValue, true -} - -// HasDefaultValue returns a boolean if a field has been set. -func (o *Variable) HasDefaultValue() bool { - if o != nil && !isNil(o.DefaultValue) { - return true - } - - return false -} - -// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. -func (o *Variable) SetDefaultValue(v string) { - o.DefaultValue = &v -} - -func (o Variable) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Variable) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Key) { - toSerialize["key"] = o.Key - } - if !isNil(o.DefaultValue) { - toSerialize["defaultValue"] = o.DefaultValue - } - return toSerialize, nil -} - -type NullableVariable struct { - value *Variable - isSet bool -} - -func (v NullableVariable) Get() *Variable { - return v.value -} - -func (v *NullableVariable) Set(val *Variable) { - v.value = val - v.isSet = true -} - -func (v NullableVariable) IsSet() bool { - return v.isSet -} - -func (v *NullableVariable) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVariable(val *Variable) *NullableVariable { - return &NullableVariable{value: val, isSet: true} -} - -func (v NullableVariable) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVariable) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_variable_set.go b/openapi/model_variable_set.go deleted file mode 100644 index 9b59b29..0000000 --- a/openapi/model_variable_set.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the VariableSet type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VariableSet{} - -// VariableSet struct for VariableSet -type VariableSet struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Values []VariableSetValue `json:"values,omitempty"` -} - -// NewVariableSet instantiates a new VariableSet object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewVariableSet() *VariableSet { - this := VariableSet{} - return &this -} - -// NewVariableSetWithDefaults instantiates a new VariableSet object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewVariableSetWithDefaults() *VariableSet { - this := VariableSet{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *VariableSet) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSet) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *VariableSet) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *VariableSet) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *VariableSet) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSet) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *VariableSet) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *VariableSet) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *VariableSet) GetDescription() string { - if o == nil || isNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSet) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *VariableSet) HasDescription() bool { - if o != nil && !isNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *VariableSet) SetDescription(v string) { - o.Description = &v -} - -// GetValues returns the Values field value if set, zero value otherwise. -func (o *VariableSet) GetValues() []VariableSetValue { - if o == nil || isNil(o.Values) { - var ret []VariableSetValue - return ret - } - return o.Values -} - -// GetValuesOk returns a tuple with the Values field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSet) GetValuesOk() ([]VariableSetValue, bool) { - if o == nil || isNil(o.Values) { - return nil, false - } - return o.Values, true -} - -// HasValues returns a boolean if a field has been set. -func (o *VariableSet) HasValues() bool { - if o != nil && !isNil(o.Values) { - return true - } - - return false -} - -// SetValues gets a reference to the given []VariableSetValue and assigns it to the Values field. -func (o *VariableSet) SetValues(v []VariableSetValue) { - o.Values = v -} - -func (o VariableSet) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o VariableSet) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Description) { - toSerialize["description"] = o.Description - } - if !isNil(o.Values) { - toSerialize["values"] = o.Values - } - return toSerialize, nil -} - -type NullableVariableSet struct { - value *VariableSet - isSet bool -} - -func (v NullableVariableSet) Get() *VariableSet { - return v.value -} - -func (v *NullableVariableSet) Set(val *VariableSet) { - v.value = val - v.isSet = true -} - -func (v NullableVariableSet) IsSet() bool { - return v.isSet -} - -func (v *NullableVariableSet) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVariableSet(val *VariableSet) *NullableVariableSet { - return &NullableVariableSet{value: val, isSet: true} -} - -func (v NullableVariableSet) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVariableSet) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_variable_set_resource.go b/openapi/model_variable_set_resource.go deleted file mode 100644 index d8e0bb9..0000000 --- a/openapi/model_variable_set_resource.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the VariableSetResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VariableSetResource{} - -// VariableSetResource Represents a VariableSet structured into the Resources format. -type VariableSetResource struct { - // Represents the type of this resource. It should always be set as 'VariableSet'. - Type *string `json:"type,omitempty"` - Spec *VariableSet `json:"spec,omitempty"` -} - -// NewVariableSetResource instantiates a new VariableSetResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewVariableSetResource() *VariableSetResource { - this := VariableSetResource{} - return &this -} - -// NewVariableSetResourceWithDefaults instantiates a new VariableSetResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewVariableSetResourceWithDefaults() *VariableSetResource { - this := VariableSetResource{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *VariableSetResource) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSetResource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *VariableSetResource) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *VariableSetResource) SetType(v string) { - o.Type = &v -} - -// GetSpec returns the Spec field value if set, zero value otherwise. -func (o *VariableSetResource) GetSpec() VariableSet { - if o == nil || isNil(o.Spec) { - var ret VariableSet - return ret - } - return *o.Spec -} - -// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSetResource) GetSpecOk() (*VariableSet, bool) { - if o == nil || isNil(o.Spec) { - return nil, false - } - return o.Spec, true -} - -// HasSpec returns a boolean if a field has been set. -func (o *VariableSetResource) HasSpec() bool { - if o != nil && !isNil(o.Spec) { - return true - } - - return false -} - -// SetSpec gets a reference to the given VariableSet and assigns it to the Spec field. -func (o *VariableSetResource) SetSpec(v VariableSet) { - o.Spec = &v -} - -func (o VariableSetResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o VariableSetResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Spec) { - toSerialize["spec"] = o.Spec - } - return toSerialize, nil -} - -type NullableVariableSetResource struct { - value *VariableSetResource - isSet bool -} - -func (v NullableVariableSetResource) Get() *VariableSetResource { - return v.value -} - -func (v *NullableVariableSetResource) Set(val *VariableSetResource) { - v.value = val - v.isSet = true -} - -func (v NullableVariableSetResource) IsSet() bool { - return v.isSet -} - -func (v *NullableVariableSetResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVariableSetResource(val *VariableSetResource) *NullableVariableSetResource { - return &NullableVariableSetResource{value: val, isSet: true} -} - -func (v NullableVariableSetResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVariableSetResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_variable_set_resource_list.go b/openapi/model_variable_set_resource_list.go deleted file mode 100644 index 18eb9f8..0000000 --- a/openapi/model_variable_set_resource_list.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the VariableSetResourceList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VariableSetResourceList{} - -// VariableSetResourceList struct for VariableSetResourceList -type VariableSetResourceList struct { - Count *int32 `json:"count,omitempty"` - Items []VariableSetResource `json:"items,omitempty"` -} - -// NewVariableSetResourceList instantiates a new VariableSetResourceList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewVariableSetResourceList() *VariableSetResourceList { - this := VariableSetResourceList{} - return &this -} - -// NewVariableSetResourceListWithDefaults instantiates a new VariableSetResourceList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewVariableSetResourceListWithDefaults() *VariableSetResourceList { - this := VariableSetResourceList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *VariableSetResourceList) GetCount() int32 { - if o == nil || isNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSetResourceList) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *VariableSetResourceList) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *VariableSetResourceList) SetCount(v int32) { - o.Count = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *VariableSetResourceList) GetItems() []VariableSetResource { - if o == nil || isNil(o.Items) { - var ret []VariableSetResource - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSetResourceList) GetItemsOk() ([]VariableSetResource, bool) { - if o == nil || isNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *VariableSetResourceList) HasItems() bool { - if o != nil && !isNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []VariableSetResource and assigns it to the Items field. -func (o *VariableSetResourceList) SetItems(v []VariableSetResource) { - o.Items = v -} - -func (o VariableSetResourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o VariableSetResourceList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Items) { - toSerialize["items"] = o.Items - } - return toSerialize, nil -} - -type NullableVariableSetResourceList struct { - value *VariableSetResourceList - isSet bool -} - -func (v NullableVariableSetResourceList) Get() *VariableSetResourceList { - return v.value -} - -func (v *NullableVariableSetResourceList) Set(val *VariableSetResourceList) { - v.value = val - v.isSet = true -} - -func (v NullableVariableSetResourceList) IsSet() bool { - return v.isSet -} - -func (v *NullableVariableSetResourceList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVariableSetResourceList(val *VariableSetResourceList) *NullableVariableSetResourceList { - return &NullableVariableSetResourceList{value: val, isSet: true} -} - -func (v NullableVariableSetResourceList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVariableSetResourceList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_variable_set_value.go b/openapi/model_variable_set_value.go deleted file mode 100644 index 5d809f5..0000000 --- a/openapi/model_variable_set_value.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the VariableSetValue type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VariableSetValue{} - -// VariableSetValue struct for VariableSetValue -type VariableSetValue struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewVariableSetValue instantiates a new VariableSetValue object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewVariableSetValue() *VariableSetValue { - this := VariableSetValue{} - return &this -} - -// NewVariableSetValueWithDefaults instantiates a new VariableSetValue object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewVariableSetValueWithDefaults() *VariableSetValue { - this := VariableSetValue{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *VariableSetValue) GetKey() string { - if o == nil || isNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSetValue) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *VariableSetValue) HasKey() bool { - if o != nil && !isNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *VariableSetValue) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *VariableSetValue) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VariableSetValue) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *VariableSetValue) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *VariableSetValue) SetValue(v string) { - o.Value = &v -} - -func (o VariableSetValue) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o VariableSetValue) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Key) { - toSerialize["key"] = o.Key - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableVariableSetValue struct { - value *VariableSetValue - isSet bool -} - -func (v NullableVariableSetValue) Get() *VariableSetValue { - return v.value -} - -func (v *NullableVariableSetValue) Set(val *VariableSetValue) { - v.value = val - v.isSet = true -} - -func (v NullableVariableSetValue) IsSet() bool { - return v.isSet -} - -func (v *NullableVariableSetValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVariableSetValue(val *VariableSetValue) *NullableVariableSetValue { - return &NullableVariableSetValue{value: val, isSet: true} -} - -func (v NullableVariableSetValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVariableSetValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/model_version.go b/openapi/model_version.go deleted file mode 100644 index 336e8dd..0000000 --- a/openapi/model_version.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the Version type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Version{} - -// Version struct for Version -type Version struct { - Version *string `json:"version,omitempty"` - Type *string `json:"type,omitempty"` - UiEndpoint *string `json:"uiEndpoint,omitempty"` - AgentEndpoint *string `json:"agentEndpoint,omitempty"` - ApiEndpoint *string `json:"apiEndpoint,omitempty"` -} - -// NewVersion instantiates a new Version object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewVersion() *Version { - this := Version{} - return &this -} - -// NewVersionWithDefaults instantiates a new Version object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewVersionWithDefaults() *Version { - this := Version{} - return &this -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *Version) GetVersion() string { - if o == nil || isNil(o.Version) { - var ret string - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Version) GetVersionOk() (*string, bool) { - if o == nil || isNil(o.Version) { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *Version) HasVersion() bool { - if o != nil && !isNil(o.Version) { - return true - } - - return false -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *Version) SetVersion(v string) { - o.Version = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *Version) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Version) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *Version) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *Version) SetType(v string) { - o.Type = &v -} - -// GetUiEndpoint returns the UiEndpoint field value if set, zero value otherwise. -func (o *Version) GetUiEndpoint() string { - if o == nil || isNil(o.UiEndpoint) { - var ret string - return ret - } - return *o.UiEndpoint -} - -// GetUiEndpointOk returns a tuple with the UiEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Version) GetUiEndpointOk() (*string, bool) { - if o == nil || isNil(o.UiEndpoint) { - return nil, false - } - return o.UiEndpoint, true -} - -// HasUiEndpoint returns a boolean if a field has been set. -func (o *Version) HasUiEndpoint() bool { - if o != nil && !isNil(o.UiEndpoint) { - return true - } - - return false -} - -// SetUiEndpoint gets a reference to the given string and assigns it to the UiEndpoint field. -func (o *Version) SetUiEndpoint(v string) { - o.UiEndpoint = &v -} - -// GetAgentEndpoint returns the AgentEndpoint field value if set, zero value otherwise. -func (o *Version) GetAgentEndpoint() string { - if o == nil || isNil(o.AgentEndpoint) { - var ret string - return ret - } - return *o.AgentEndpoint -} - -// GetAgentEndpointOk returns a tuple with the AgentEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Version) GetAgentEndpointOk() (*string, bool) { - if o == nil || isNil(o.AgentEndpoint) { - return nil, false - } - return o.AgentEndpoint, true -} - -// HasAgentEndpoint returns a boolean if a field has been set. -func (o *Version) HasAgentEndpoint() bool { - if o != nil && !isNil(o.AgentEndpoint) { - return true - } - - return false -} - -// SetAgentEndpoint gets a reference to the given string and assigns it to the AgentEndpoint field. -func (o *Version) SetAgentEndpoint(v string) { - o.AgentEndpoint = &v -} - -// GetApiEndpoint returns the ApiEndpoint field value if set, zero value otherwise. -func (o *Version) GetApiEndpoint() string { - if o == nil || isNil(o.ApiEndpoint) { - var ret string - return ret - } - return *o.ApiEndpoint -} - -// GetApiEndpointOk returns a tuple with the ApiEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Version) GetApiEndpointOk() (*string, bool) { - if o == nil || isNil(o.ApiEndpoint) { - return nil, false - } - return o.ApiEndpoint, true -} - -// HasApiEndpoint returns a boolean if a field has been set. -func (o *Version) HasApiEndpoint() bool { - if o != nil && !isNil(o.ApiEndpoint) { - return true - } - - return false -} - -// SetApiEndpoint gets a reference to the given string and assigns it to the ApiEndpoint field. -func (o *Version) SetApiEndpoint(v string) { - o.ApiEndpoint = &v -} - -func (o Version) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Version) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Version) { - toSerialize["version"] = o.Version - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.UiEndpoint) { - toSerialize["uiEndpoint"] = o.UiEndpoint - } - if !isNil(o.AgentEndpoint) { - toSerialize["agentEndpoint"] = o.AgentEndpoint - } - if !isNil(o.ApiEndpoint) { - toSerialize["apiEndpoint"] = o.ApiEndpoint - } - return toSerialize, nil -} - -type NullableVersion struct { - value *Version - isSet bool -} - -func (v NullableVersion) Get() *Version { - return v.value -} - -func (v *NullableVersion) Set(val *Version) { - v.value = val - v.isSet = true -} - -func (v NullableVersion) IsSet() bool { - return v.isSet -} - -func (v *NullableVersion) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVersion(val *Version) *NullableVersion { - return &NullableVersion{value: val, isSet: true} -} - -func (v NullableVersion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVersion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/openapi/response.go b/openapi/response.go deleted file mode 100644 index 3dd21ce..0000000 --- a/openapi/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/openapi/utils.go b/openapi/utils.go deleted file mode 100644 index 2854f53..0000000 --- a/openapi/utils.go +++ /dev/null @@ -1,347 +0,0 @@ -/* -TraceTest - -OpenAPI definition for TraceTest endpoint and resources - -API version: 0.2.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// isNil checks if an input is nil -func isNil(i interface{}) bool { - if i == nil { - return true - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -}