From 1f1cd54ff5c533886066c0bd38368ebb5d6569c3 Mon Sep 17 00:00:00 2001 From: Alejandro Acevedo Date: Mon, 5 Jan 2026 16:01:17 +0100 Subject: [PATCH] STAC-24106: Pin the openapi generator to the version we used to have before the update of the flake.nix file --- flake.lock | 31 ++- flake.nix | 20 +- generated/stackstate_api/api_agent_leases.go | 9 +- .../stackstate_api/api_agent_registrations.go | 7 +- generated/stackstate_api/api_api_token.go | 7 +- generated/stackstate_api/api_component.go | 9 +- generated/stackstate_api/api_dashboards.go | 47 ++-- generated/stackstate_api/api_dummy.go | 6 +- generated/stackstate_api/api_event.go | 44 ++-- generated/stackstate_api/api_export.go | 7 +- .../api_health_synchronization.go | 68 +++--- generated/stackstate_api/api_import.go | 7 +- .../stackstate_api/api_kubernetes_logs.go | 21 +- generated/stackstate_api/api_layout.go | 7 +- generated/stackstate_api/api_metric.go | 102 +++++---- generated/stackstate_api/api_monitor.go | 114 +++++----- .../api_monitor_check_status.go | 27 ++- generated/stackstate_api/api_node.go | 57 ++--- .../api_notification_channels.go | 209 ++++++++++-------- .../api_notification_configurations.go | 47 ++-- generated/stackstate_api/api_otel_mapping.go | 32 +-- generated/stackstate_api/api_permissions.go | 28 +-- generated/stackstate_api/api_problem.go | 9 +- generated/stackstate_api/api_scripting.go | 7 +- generated/stackstate_api/api_server.go | 7 +- generated/stackstate_api/api_service_token.go | 20 +- generated/stackstate_api/api_stackpack.go | 54 +++-- generated/stackstate_api/api_subject.go | 28 +-- generated/stackstate_api/api_subscription.go | 14 +- .../api_system_notifications.go | 7 +- generated/stackstate_api/api_timeline.go | 7 +- generated/stackstate_api/api_topic.go | 16 +- .../api_topology_synchronization.go | 18 +- generated/stackstate_api/api_traces.go | 66 +++--- .../stackstate_api/api_user_authorization.go | 4 +- generated/stackstate_api/api_user_profile.go | 14 +- generated/stackstate_api/api_user_session.go | 21 +- 37 files changed, 672 insertions(+), 526 deletions(-) diff --git a/flake.lock b/flake.lock index 5844fda8..4eda8e88 100644 --- a/flake.lock +++ b/flake.lock @@ -1,12 +1,15 @@ { "nodes": { "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -17,16 +20,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1735563628, - "narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=", + "lastModified": 1767624437, + "narHash": "sha256-/sOujfJKdNROJuzF4NThvPyUWResswQ5XfHl2bVH41k=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798", + "rev": "7635cc4cbb0f6f7cef50f7504631a99233c036a6", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } @@ -36,6 +38,21 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 0021e363..5ddf6dd8 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ nixConfig.bash-prompt = "STS CLI 2 $ "; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + nixpkgs.url = "github:nixos/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; }; @@ -14,14 +14,22 @@ pkgs = import nixpkgs { inherit system; overlays = [ ]; }; pkgs-linux = import nixpkgs { system = "x86_64-linux"; overlays = [ ]; }; + # Pin ONLY openapi-generator-cli to the old nixpkgs commit + openapiPinnedPkgs = import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/4baef62b8eef25c97ac3e00804dce6920b2b850e.tar.gz"; + sha256 = "sha256-uIcstZ0D5lEi6pDYupfsKLRLgC6ZmwdxsWzCE3li+IQ="; + }) { + inherit system; + }; + # Dependencies used for both development and CI/CD sharedDeps = pkgs: (with pkgs; [ bash - go_1_22 + go_1_24 gotools diffutils # Required for golangci-lint golangci-lint - openapi-generator-cli + openapiPinnedPkgs.openapi-generator-cli ]); # Dependencies used only by CI/CD @@ -54,16 +62,16 @@ devShell = self.devShells."${system}".dev; packages = { - sts = pkgs.buildGo122Module { + sts = pkgs.buildGo124Module { pname = "sts"; version = "2.0.0"; src = ./.; - vendorHash = "sha256-2WKvk8eD5nhq1QEgKsZZrRs8yHv1YkbVjoTzrTqvmb4="; + vendorHash = "sha256-aXTDHT1N+4Qpkuxb8vvBvP2VPyS5ofCgX6XFhJ5smUQ="; postInstall = '' - mv $out/bin/stackstate-cli $out/bin/sts + mv $out/bin/stackstate-cli2 $out/bin/sts ''; }; diff --git a/generated/stackstate_api/api_agent_leases.go b/generated/stackstate_api/api_agent_leases.go index 41774faf..5d5a2b6f 100644 --- a/generated/stackstate_api/api_agent_leases.go +++ b/generated/stackstate_api/api_agent_leases.go @@ -62,9 +62,9 @@ AgentCheckLease Check the lease of an agent. Checks the lease of an agent and might register it if it does not exist yet. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param agentId The identifier of an agent - @return ApiAgentCheckLeaseRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param agentId The identifier of an agent + @return ApiAgentCheckLeaseRequest */ func (a *AgentLeasesApiService) AgentCheckLease(ctx context.Context, agentId string) ApiAgentCheckLeaseRequest { return ApiAgentCheckLeaseRequest{ @@ -75,7 +75,8 @@ func (a *AgentLeasesApiService) AgentCheckLease(ctx context.Context, agentId str } // Execute executes the request -// @return AgentRegistration +// +// @return AgentRegistration func (a *AgentLeasesApiService) AgentCheckLeaseExecute(r ApiAgentCheckLeaseRequest) (*AgentRegistration, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_agent_registrations.go b/generated/stackstate_api/api_agent_registrations.go index b810e295..03166da7 100644 --- a/generated/stackstate_api/api_agent_registrations.go +++ b/generated/stackstate_api/api_agent_registrations.go @@ -53,8 +53,8 @@ AllAgentRegistrations Overview of registered agents Give an overview of all registered agents - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAllAgentRegistrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAllAgentRegistrationsRequest */ func (a *AgentRegistrationsApiService) AllAgentRegistrations(ctx context.Context) ApiAllAgentRegistrationsRequest { return ApiAllAgentRegistrationsRequest{ @@ -64,7 +64,8 @@ func (a *AgentRegistrationsApiService) AllAgentRegistrations(ctx context.Context } // Execute executes the request -// @return AgentRegistrations +// +// @return AgentRegistrations func (a *AgentRegistrationsApiService) AllAgentRegistrationsExecute(r ApiAllAgentRegistrationsRequest) (*AgentRegistrations, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_api_token.go b/generated/stackstate_api/api_api_token.go index a854f8e1..765a795b 100644 --- a/generated/stackstate_api/api_api_token.go +++ b/generated/stackstate_api/api_api_token.go @@ -53,8 +53,8 @@ GetCurrentUserApiTokens Get current user's API tokens Get all API token of the logged-in user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetCurrentUserApiTokensRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCurrentUserApiTokensRequest */ func (a *ApiTokenApiService) GetCurrentUserApiTokens(ctx context.Context) ApiGetCurrentUserApiTokensRequest { return ApiGetCurrentUserApiTokensRequest{ @@ -64,7 +64,8 @@ func (a *ApiTokenApiService) GetCurrentUserApiTokens(ctx context.Context) ApiGet } // Execute executes the request -// @return []ApiToken +// +// @return []ApiToken func (a *ApiTokenApiService) GetCurrentUserApiTokensExecute(r ApiGetCurrentUserApiTokensRequest) ([]ApiToken, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_component.go b/generated/stackstate_api/api_component.go index 39b03374..93401a4f 100644 --- a/generated/stackstate_api/api_component.go +++ b/generated/stackstate_api/api_component.go @@ -77,9 +77,9 @@ GetComponentHealthHistory Get a component health history Get a component health history for a defined period of time by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param componentIdOrUrn The id or identifier (urn) of a component - @return ApiGetComponentHealthHistoryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param componentIdOrUrn The id or identifier (urn) of a component + @return ApiGetComponentHealthHistoryRequest */ func (a *ComponentApiService) GetComponentHealthHistory(ctx context.Context, componentIdOrUrn string) ApiGetComponentHealthHistoryRequest { return ApiGetComponentHealthHistoryRequest{ @@ -90,7 +90,8 @@ func (a *ComponentApiService) GetComponentHealthHistory(ctx context.Context, com } // Execute executes the request -// @return ComponentHealthHistory +// +// @return ComponentHealthHistory func (a *ComponentApiService) GetComponentHealthHistoryExecute(r ApiGetComponentHealthHistoryRequest) (*ComponentHealthHistory, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_dashboards.go b/generated/stackstate_api/api_dashboards.go index 385c6626..97af228c 100644 --- a/generated/stackstate_api/api_dashboards.go +++ b/generated/stackstate_api/api_dashboards.go @@ -134,9 +134,9 @@ CloneDashboard Clone a dashboard Clone a dashboard by its identifier. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardIdOrUrn The identifier of a dashboard - @return ApiCloneDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardIdOrUrn The identifier of a dashboard + @return ApiCloneDashboardRequest */ func (a *DashboardsApiService) CloneDashboard(ctx context.Context, dashboardIdOrUrn string) ApiCloneDashboardRequest { return ApiCloneDashboardRequest{ @@ -147,7 +147,8 @@ func (a *DashboardsApiService) CloneDashboard(ctx context.Context, dashboardIdOr } // Execute executes the request -// @return DashboardReadFullSchema +// +// @return DashboardReadFullSchema func (a *DashboardsApiService) CloneDashboardExecute(r ApiCloneDashboardRequest) (*DashboardReadFullSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -328,8 +329,8 @@ CreateDashboard Create a new dashboard Create a new dashboard. The dashboard can be private or public based on the scope parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDashboardRequest */ func (a *DashboardsApiService) CreateDashboard(ctx context.Context) ApiCreateDashboardRequest { return ApiCreateDashboardRequest{ @@ -339,7 +340,8 @@ func (a *DashboardsApiService) CreateDashboard(ctx context.Context) ApiCreateDas } // Execute executes the request -// @return DashboardReadFullSchema +// +// @return DashboardReadFullSchema func (a *DashboardsApiService) CreateDashboardExecute(r ApiCreateDashboardRequest) (*DashboardReadFullSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -494,9 +496,9 @@ DeleteDashboard Delete a dashboard Delete a dashboard by its identifier. Only user-owned dashboards can be deleted. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardIdOrUrn The identifier of a dashboard - @return ApiDeleteDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardIdOrUrn The identifier of a dashboard + @return ApiDeleteDashboardRequest */ func (a *DashboardsApiService) DeleteDashboard(ctx context.Context, dashboardIdOrUrn string) ApiDeleteDashboardRequest { return ApiDeleteDashboardRequest{ @@ -674,9 +676,9 @@ GetDashboard Get a single dashboard Get a dashboard by its identifier. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardIdOrUrn The identifier of a dashboard - @return ApiGetDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardIdOrUrn The identifier of a dashboard + @return ApiGetDashboardRequest */ func (a *DashboardsApiService) GetDashboard(ctx context.Context, dashboardIdOrUrn string) ApiGetDashboardRequest { return ApiGetDashboardRequest{ @@ -687,7 +689,8 @@ func (a *DashboardsApiService) GetDashboard(ctx context.Context, dashboardIdOrUr } // Execute executes the request -// @return DashboardReadSchema +// +// @return DashboardReadSchema func (a *DashboardsApiService) GetDashboardExecute(r ApiGetDashboardRequest) (*DashboardReadSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -857,8 +860,8 @@ GetDashboards Get a list of dashboards Get a list of dashboards, optionally filtered by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetDashboardsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetDashboardsRequest */ func (a *DashboardsApiService) GetDashboards(ctx context.Context) ApiGetDashboardsRequest { return ApiGetDashboardsRequest{ @@ -868,7 +871,8 @@ func (a *DashboardsApiService) GetDashboards(ctx context.Context) ApiGetDashboar } // Execute executes the request -// @return DashboardList +// +// @return DashboardList func (a *DashboardsApiService) GetDashboardsExecute(r ApiGetDashboardsRequest) (*DashboardList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1017,9 +1021,9 @@ PatchDashboard Patch a dashboard Patch an existing dashboard by its identifier. Only user-owned dashboard can be patched. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardIdOrUrn The identifier of a dashboard - @return ApiPatchDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardIdOrUrn The identifier of a dashboard + @return ApiPatchDashboardRequest */ func (a *DashboardsApiService) PatchDashboard(ctx context.Context, dashboardIdOrUrn string) ApiPatchDashboardRequest { return ApiPatchDashboardRequest{ @@ -1030,7 +1034,8 @@ func (a *DashboardsApiService) PatchDashboard(ctx context.Context, dashboardIdOr } // Execute executes the request -// @return DashboardReadFullSchema +// +// @return DashboardReadFullSchema func (a *DashboardsApiService) PatchDashboardExecute(r ApiPatchDashboardRequest) (*DashboardReadFullSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch diff --git a/generated/stackstate_api/api_dummy.go b/generated/stackstate_api/api_dummy.go index 610d4091..fd847173 100644 --- a/generated/stackstate_api/api_dummy.go +++ b/generated/stackstate_api/api_dummy.go @@ -50,10 +50,8 @@ func (r ApiDummyRequest) Execute() (*http.Response, error) { /* Dummy Dummy path to fix omission in openapi generation when a type is not included. - - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDummyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDummyRequest */ func (a *DummyApiService) Dummy(ctx context.Context) ApiDummyRequest { return ApiDummyRequest{ diff --git a/generated/stackstate_api/api_event.go b/generated/stackstate_api/api_event.go index aeb993f4..85903f99 100644 --- a/generated/stackstate_api/api_event.go +++ b/generated/stackstate_api/api_event.go @@ -144,9 +144,9 @@ GetEvent Get single event Retrieves a specific event by its identifier. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventId The Identifier of an event. - @return ApiGetEventRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The Identifier of an event. + @return ApiGetEventRequest */ func (a *EventApiService) GetEvent(ctx context.Context, eventId string) ApiGetEventRequest { return ApiGetEventRequest{ @@ -157,7 +157,8 @@ func (a *EventApiService) GetEvent(ctx context.Context, eventId string) ApiGetEv } // Execute executes the request -// @return TopologyEvent +// +// @return TopologyEvent func (a *EventApiService) GetEventExecute(r ApiGetEventRequest) (*TopologyEvent, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -395,8 +396,8 @@ GetEventSources Get event sources Get a list of event sources. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetEventSourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventSourcesRequest */ func (a *EventApiService) GetEventSources(ctx context.Context) ApiGetEventSourcesRequest { return ApiGetEventSourcesRequest{ @@ -406,7 +407,8 @@ func (a *EventApiService) GetEventSources(ctx context.Context) ApiGetEventSource } // Execute executes the request -// @return StringItemsWithTotal +// +// @return StringItemsWithTotal func (a *EventApiService) GetEventSourcesExecute(r ApiGetEventSourcesRequest) (*StringItemsWithTotal, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -659,8 +661,8 @@ GetEventTags Get event tags Gets a list of tags that exist in a list of events. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetEventTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventTagsRequest */ func (a *EventApiService) GetEventTags(ctx context.Context) ApiGetEventTagsRequest { return ApiGetEventTagsRequest{ @@ -670,7 +672,8 @@ func (a *EventApiService) GetEventTags(ctx context.Context) ApiGetEventTagsReque } // Execute executes the request -// @return StringItemsWithTotal +// +// @return StringItemsWithTotal func (a *EventApiService) GetEventTagsExecute(r ApiGetEventTagsRequest) (*StringItemsWithTotal, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -923,8 +926,8 @@ GetEventTypes Get event types Get a list of event types for a certain STQL query. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetEventTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventTypesRequest */ func (a *EventApiService) GetEventTypes(ctx context.Context) ApiGetEventTypesRequest { return ApiGetEventTypesRequest{ @@ -934,7 +937,8 @@ func (a *EventApiService) GetEventTypes(ctx context.Context) ApiGetEventTypesReq } // Execute executes the request -// @return StringItemsWithTotal +// +// @return StringItemsWithTotal func (a *EventApiService) GetEventTypesExecute(r ApiGetEventTypesRequest) (*StringItemsWithTotal, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1126,8 +1130,8 @@ GetEvents Get events Gets you a list of events that exist for topology and time selections. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetEventsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventsRequest */ func (a *EventApiService) GetEvents(ctx context.Context) ApiGetEventsRequest { return ApiGetEventsRequest{ @@ -1137,7 +1141,8 @@ func (a *EventApiService) GetEvents(ctx context.Context) ApiGetEventsRequest { } // Execute executes the request -// @return EventItemsWithTotal +// +// @return EventItemsWithTotal func (a *EventApiService) GetEventsExecute(r ApiGetEventsRequest) (*EventItemsWithTotal, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1297,8 +1302,8 @@ GetEventsHistogram Get events histogram Gets you a histogram of events that exist for topology and time selections. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetEventsHistogramRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventsHistogramRequest */ func (a *EventApiService) GetEventsHistogram(ctx context.Context) ApiGetEventsHistogramRequest { return ApiGetEventsHistogramRequest{ @@ -1308,7 +1313,8 @@ func (a *EventApiService) GetEventsHistogram(ctx context.Context) ApiGetEventsHi } // Execute executes the request -// @return EventsHistogram +// +// @return EventsHistogram func (a *EventApiService) GetEventsHistogramExecute(r ApiGetEventsHistogramRequest) (*EventsHistogram, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_export.go b/generated/stackstate_api/api_export.go index 422362af..1c18e4aa 100644 --- a/generated/stackstate_api/api_export.go +++ b/generated/stackstate_api/api_export.go @@ -59,8 +59,8 @@ ExportSettings Export settings Export setting nodes as StackState Templated YAML (STY). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExportSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExportSettingsRequest */ func (a *ExportApiService) ExportSettings(ctx context.Context) ApiExportSettingsRequest { return ApiExportSettingsRequest{ @@ -70,7 +70,8 @@ func (a *ExportApiService) ExportSettings(ctx context.Context) ApiExportSettings } // Execute executes the request -// @return string +// +// @return string func (a *ExportApiService) ExportSettingsExecute(r ApiExportSettingsRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_health_synchronization.go b/generated/stackstate_api/api_health_synchronization.go index 043d0280..50c38310 100644 --- a/generated/stackstate_api/api_health_synchronization.go +++ b/generated/stackstate_api/api_health_synchronization.go @@ -160,9 +160,9 @@ DeleteHealthSynchronizationStream Delete health sync stream Delete a health synchronization stream. Deletion will not be immediate. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @return ApiDeleteHealthSynchronizationStreamRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @return ApiDeleteHealthSynchronizationStreamRequest */ func (a *HealthSynchronizationApiService) DeleteHealthSynchronizationStream(ctx context.Context, healthStreamUrn string) ApiDeleteHealthSynchronizationStreamRequest { return ApiDeleteHealthSynchronizationStreamRequest{ @@ -313,9 +313,9 @@ GetHealthSynchronizationStreamStatus Get health sync stream status Status overview of a single health synchronization stream - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @return ApiGetHealthSynchronizationStreamStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @return ApiGetHealthSynchronizationStreamStatusRequest */ func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamStatus(ctx context.Context, healthStreamUrn string) ApiGetHealthSynchronizationStreamStatusRequest { return ApiGetHealthSynchronizationStreamStatusRequest{ @@ -326,7 +326,8 @@ func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamStatus(c } // Execute executes the request -// @return HealthStreamStatus +// +// @return HealthStreamStatus func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamStatusExecute(r ApiGetHealthSynchronizationStreamStatusRequest) (*HealthStreamStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -477,9 +478,9 @@ GetHealthSynchronizationStreamTopologyMatches List health sync stream check-stat Overview of check-states matched to topology on the main stream. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @return ApiGetHealthSynchronizationStreamTopologyMatchesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @return ApiGetHealthSynchronizationStreamTopologyMatchesRequest */ func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamTopologyMatches(ctx context.Context, healthStreamUrn string) ApiGetHealthSynchronizationStreamTopologyMatchesRequest { return ApiGetHealthSynchronizationStreamTopologyMatchesRequest{ @@ -490,7 +491,8 @@ func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamTopology } // Execute executes the request -// @return TopologyMatchResult +// +// @return TopologyMatchResult func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamTopologyMatchesExecute(r ApiGetHealthSynchronizationStreamTopologyMatchesRequest) (*TopologyMatchResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -640,8 +642,8 @@ GetHealthSynchronizationStreamsOverview List health sync streams Status overview of the health synchronization streams. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetHealthSynchronizationStreamsOverviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetHealthSynchronizationStreamsOverviewRequest */ func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamsOverview(ctx context.Context) ApiGetHealthSynchronizationStreamsOverviewRequest { return ApiGetHealthSynchronizationStreamsOverviewRequest{ @@ -651,7 +653,8 @@ func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamsOvervie } // Execute executes the request -// @return StreamList +// +// @return StreamList func (a *HealthSynchronizationApiService) GetHealthSynchronizationStreamsOverviewExecute(r ApiGetHealthSynchronizationStreamsOverviewRequest) (*StreamList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -782,9 +785,9 @@ GetHealthSynchronizationSubStreamOverview List health sync sub-streams Overview of all sub-streams in a certain health stream. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @return ApiGetHealthSynchronizationSubStreamOverviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @return ApiGetHealthSynchronizationSubStreamOverviewRequest */ func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamOverview(ctx context.Context, healthStreamUrn string) ApiGetHealthSynchronizationSubStreamOverviewRequest { return ApiGetHealthSynchronizationSubStreamOverviewRequest{ @@ -795,7 +798,8 @@ func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamOverv } // Execute executes the request -// @return SubStreamList +// +// @return SubStreamList func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamOverviewExecute(r ApiGetHealthSynchronizationSubStreamOverviewRequest) (*SubStreamList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -947,10 +951,10 @@ GetHealthSynchronizationSubStreamStatus Get health sync sub-stream status Status overview of a single health synchronization sub stream - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @param healthSyncSubStreamId Health synchronization sub stream id. - @return ApiGetHealthSynchronizationSubStreamStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @param healthSyncSubStreamId Health synchronization sub stream id. + @return ApiGetHealthSynchronizationSubStreamStatusRequest */ func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamStatus(ctx context.Context, healthStreamUrn string, healthSyncSubStreamId string) ApiGetHealthSynchronizationSubStreamStatusRequest { return ApiGetHealthSynchronizationSubStreamStatusRequest{ @@ -962,7 +966,8 @@ func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamStatu } // Execute executes the request -// @return HealthSubStreamStatus +// +// @return HealthSubStreamStatus func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamStatusExecute(r ApiGetHealthSynchronizationSubStreamStatusRequest) (*HealthSubStreamStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1115,10 +1120,10 @@ GetHealthSynchronizationSubStreamTopologyMatches List health sync sub-stream che Overview of check-states matched to topology on the main stream. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @param healthSyncSubStreamId Health synchronization sub stream id. - @return ApiGetHealthSynchronizationSubStreamTopologyMatchesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @param healthSyncSubStreamId Health synchronization sub stream id. + @return ApiGetHealthSynchronizationSubStreamTopologyMatchesRequest */ func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamTopologyMatches(ctx context.Context, healthStreamUrn string, healthSyncSubStreamId string) ApiGetHealthSynchronizationSubStreamTopologyMatchesRequest { return ApiGetHealthSynchronizationSubStreamTopologyMatchesRequest{ @@ -1130,7 +1135,8 @@ func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamTopol } // Execute executes the request -// @return TopologyMatchResult +// +// @return TopologyMatchResult func (a *HealthSynchronizationApiService) GetHealthSynchronizationSubStreamTopologyMatchesExecute(r ApiGetHealthSynchronizationSubStreamTopologyMatchesRequest) (*TopologyMatchResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1282,9 +1288,9 @@ PostHealthSynchronizationStreamClearErrors Clear health sync stream errors Clear all errors for a stream and its sub-streams. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param healthStreamUrn Urn of the health stream. - @return ApiPostHealthSynchronizationStreamClearErrorsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param healthStreamUrn Urn of the health stream. + @return ApiPostHealthSynchronizationStreamClearErrorsRequest */ func (a *HealthSynchronizationApiService) PostHealthSynchronizationStreamClearErrors(ctx context.Context, healthStreamUrn string) ApiPostHealthSynchronizationStreamClearErrorsRequest { return ApiPostHealthSynchronizationStreamClearErrorsRequest{ diff --git a/generated/stackstate_api/api_import.go b/generated/stackstate_api/api_import.go index be3821e1..831ef9ab 100644 --- a/generated/stackstate_api/api_import.go +++ b/generated/stackstate_api/api_import.go @@ -83,8 +83,8 @@ ImportSettings Import settings Import setting nodes from STY or STJ definitions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiImportSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiImportSettingsRequest */ func (a *ImportApiService) ImportSettings(ctx context.Context) ApiImportSettingsRequest { return ApiImportSettingsRequest{ @@ -94,7 +94,8 @@ func (a *ImportApiService) ImportSettings(ctx context.Context) ApiImportSettings } // Execute executes the request -// @return []map[string]interface{} +// +// @return []map[string]interface{} func (a *ImportApiService) ImportSettingsExecute(r ApiImportSettingsRequest) ([]map[string]interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_kubernetes_logs.go b/generated/stackstate_api/api_kubernetes_logs.go index 74efe79d..bf54b795 100644 --- a/generated/stackstate_api/api_kubernetes_logs.go +++ b/generated/stackstate_api/api_kubernetes_logs.go @@ -150,8 +150,8 @@ func (r ApiGetKubernetesLogsRequest) Execute() (*GetKubernetesLogsResult, *http. /* GetKubernetesLogs Get Kubernetes logs - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetKubernetesLogsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKubernetesLogsRequest */ func (a *KubernetesLogsApiService) GetKubernetesLogs(ctx context.Context) ApiGetKubernetesLogsRequest { return ApiGetKubernetesLogsRequest{ @@ -161,7 +161,8 @@ func (a *KubernetesLogsApiService) GetKubernetesLogs(ctx context.Context) ApiGet } // Execute executes the request -// @return GetKubernetesLogsResult +// +// @return GetKubernetesLogsResult func (a *KubernetesLogsApiService) GetKubernetesLogsExecute(r ApiGetKubernetesLogsRequest) (*GetKubernetesLogsResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -380,8 +381,8 @@ func (r ApiGetKubernetesLogsAutocompleteRequest) Execute() (*GetKubernetesLogsAu /* GetKubernetesLogsAutocomplete Get Kubernetes logs autocomplete values - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetKubernetesLogsAutocompleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKubernetesLogsAutocompleteRequest */ func (a *KubernetesLogsApiService) GetKubernetesLogsAutocomplete(ctx context.Context) ApiGetKubernetesLogsAutocompleteRequest { return ApiGetKubernetesLogsAutocompleteRequest{ @@ -391,7 +392,8 @@ func (a *KubernetesLogsApiService) GetKubernetesLogsAutocomplete(ctx context.Con } // Execute executes the request -// @return GetKubernetesLogsAutocompleteResult +// +// @return GetKubernetesLogsAutocompleteResult func (a *KubernetesLogsApiService) GetKubernetesLogsAutocompleteExecute(r ApiGetKubernetesLogsAutocompleteRequest) (*GetKubernetesLogsAutocompleteResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -620,8 +622,8 @@ func (r ApiGetKubernetesLogsHistogramRequest) Execute() (*GetKubernetesLogsHisto /* GetKubernetesLogsHistogram Get Kubernetes logs histogram - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetKubernetesLogsHistogramRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetKubernetesLogsHistogramRequest */ func (a *KubernetesLogsApiService) GetKubernetesLogsHistogram(ctx context.Context) ApiGetKubernetesLogsHistogramRequest { return ApiGetKubernetesLogsHistogramRequest{ @@ -631,7 +633,8 @@ func (a *KubernetesLogsApiService) GetKubernetesLogsHistogram(ctx context.Contex } // Execute executes the request -// @return GetKubernetesLogsHistogramResult +// +// @return GetKubernetesLogsHistogramResult func (a *KubernetesLogsApiService) GetKubernetesLogsHistogramExecute(r ApiGetKubernetesLogsHistogramRequest) (*GetKubernetesLogsHistogramResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_layout.go b/generated/stackstate_api/api_layout.go index 034d01b2..f109fef5 100644 --- a/generated/stackstate_api/api_layout.go +++ b/generated/stackstate_api/api_layout.go @@ -53,8 +53,8 @@ GetAllLayouts List layout hints List all available layout hints in the system - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAllLayoutsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAllLayoutsRequest */ func (a *LayoutApiService) GetAllLayouts(ctx context.Context) ApiGetAllLayoutsRequest { return ApiGetAllLayoutsRequest{ @@ -64,7 +64,8 @@ func (a *LayoutApiService) GetAllLayouts(ctx context.Context) ApiGetAllLayoutsRe } // Execute executes the request -// @return LayoutList +// +// @return LayoutList func (a *LayoutApiService) GetAllLayoutsExecute(r ApiGetAllLayoutsRequest) (*LayoutList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_metric.go b/generated/stackstate_api/api_metric.go index 5ecbec6e..96001824 100644 --- a/generated/stackstate_api/api_metric.go +++ b/generated/stackstate_api/api_metric.go @@ -259,8 +259,8 @@ GetExemplarsQuery Experimental: Exemplars for a specific time range Experimental: The returns a list of exemplars for a valid PromQL query for a specific time range - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetExemplarsQueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetExemplarsQueryRequest */ func (a *MetricApiService) GetExemplarsQuery(ctx context.Context) ApiGetExemplarsQueryRequest { return ApiGetExemplarsQueryRequest{ @@ -270,7 +270,8 @@ func (a *MetricApiService) GetExemplarsQuery(ctx context.Context) ApiGetExemplar } // Execute executes the request -// @return PromExemplarEnvelope +// +// @return PromExemplarEnvelope func (a *MetricApiService) GetExemplarsQueryExecute(r ApiGetExemplarsQueryRequest) (*PromExemplarEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -484,8 +485,8 @@ GetInstantQuery Instant query at a single point in time The endpoint evaluates an instant query at a single point in time - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetInstantQueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetInstantQueryRequest */ func (a *MetricApiService) GetInstantQuery(ctx context.Context) ApiGetInstantQueryRequest { return ApiGetInstantQueryRequest{ @@ -495,7 +496,8 @@ func (a *MetricApiService) GetInstantQuery(ctx context.Context) ApiGetInstantQue } // Execute executes the request -// @return PromEnvelope +// +// @return PromEnvelope func (a *MetricApiService) GetInstantQueryExecute(r ApiGetInstantQueryRequest) (*PromEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -702,9 +704,9 @@ GetLabelValues List of label values for a provided label name The endpoint returns a list of label values for a provided label name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param label Prometheus query label - @return ApiGetLabelValuesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param label Prometheus query label + @return ApiGetLabelValuesRequest */ func (a *MetricApiService) GetLabelValues(ctx context.Context, label string) ApiGetLabelValuesRequest { return ApiGetLabelValuesRequest{ @@ -715,7 +717,8 @@ func (a *MetricApiService) GetLabelValues(ctx context.Context, label string) Api } // Execute executes the request -// @return PromLabelsEnvelope +// +// @return PromLabelsEnvelope func (a *MetricApiService) GetLabelValuesExecute(r ApiGetLabelValuesRequest) (*PromLabelsEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -915,8 +918,8 @@ GetLabels List of label names The endpoint returns a list of label names - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetLabelsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetLabelsRequest */ func (a *MetricApiService) GetLabels(ctx context.Context) ApiGetLabelsRequest { return ApiGetLabelsRequest{ @@ -926,7 +929,8 @@ func (a *MetricApiService) GetLabels(ctx context.Context) ApiGetLabelsRequest { } // Execute executes the request -// @return PromLabelsEnvelope +// +// @return PromLabelsEnvelope func (a *MetricApiService) GetLabelsExecute(r ApiGetLabelsRequest) (*PromLabelsEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1118,8 +1122,8 @@ GetMetadata Metadata about metrics currently scraped from targets The endpoint returns metadata about metrics currently scraped from targets. However, it does not provide any target information. This is considered experimental and might change in the future - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetMetadataRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMetadataRequest */ func (a *MetricApiService) GetMetadata(ctx context.Context) ApiGetMetadataRequest { return ApiGetMetadataRequest{ @@ -1129,7 +1133,8 @@ func (a *MetricApiService) GetMetadata(ctx context.Context) ApiGetMetadataReques } // Execute executes the request -// @return PromMetadataEnvelope +// +// @return PromMetadataEnvelope func (a *MetricApiService) GetMetadataExecute(r ApiGetMetadataRequest) (*PromMetadataEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1360,8 +1365,8 @@ GetRangeQuery Query over a range of time The endpoint evaluates an expression query over a range of time - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRangeQueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRangeQueryRequest */ func (a *MetricApiService) GetRangeQuery(ctx context.Context) ApiGetRangeQueryRequest { return ApiGetRangeQueryRequest{ @@ -1371,7 +1376,8 @@ func (a *MetricApiService) GetRangeQuery(ctx context.Context) ApiGetRangeQueryRe } // Execute executes the request -// @return PromEnvelope +// +// @return PromEnvelope func (a *MetricApiService) GetRangeQueryExecute(r ApiGetRangeQueryRequest) (*PromEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1589,8 +1595,8 @@ GetSeries List of time series that match a certain label set The endpoint returns the list of time series that match a certain label set - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSeriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSeriesRequest */ func (a *MetricApiService) GetSeries(ctx context.Context) ApiGetSeriesRequest { return ApiGetSeriesRequest{ @@ -1600,7 +1606,8 @@ func (a *MetricApiService) GetSeries(ctx context.Context) ApiGetSeriesRequest { } // Execute executes the request -// @return PromSeriesEnvelope +// +// @return PromSeriesEnvelope func (a *MetricApiService) GetSeriesExecute(r ApiGetSeriesRequest) (*PromSeriesEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1800,8 +1807,8 @@ PostExemplarsQuery Experimental: Exemplars for a specific time range Experimental: The returns a list of exemplars for a valid PromQL query for a specific time range - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostExemplarsQueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostExemplarsQueryRequest */ func (a *MetricApiService) PostExemplarsQuery(ctx context.Context) ApiPostExemplarsQueryRequest { return ApiPostExemplarsQueryRequest{ @@ -1811,7 +1818,8 @@ func (a *MetricApiService) PostExemplarsQuery(ctx context.Context) ApiPostExempl } // Execute executes the request -// @return PromExemplarEnvelope +// +// @return PromExemplarEnvelope func (a *MetricApiService) PostExemplarsQueryExecute(r ApiPostExemplarsQueryRequest) (*PromExemplarEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2020,8 +2028,8 @@ PostInstantQuery Instant query at a single point in time The endpoint evaluates an instant query at a single point in time - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostInstantQueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostInstantQueryRequest */ func (a *MetricApiService) PostInstantQuery(ctx context.Context) ApiPostInstantQueryRequest { return ApiPostInstantQueryRequest{ @@ -2031,7 +2039,8 @@ func (a *MetricApiService) PostInstantQuery(ctx context.Context) ApiPostInstantQ } // Execute executes the request -// @return PromEnvelope +// +// @return PromEnvelope func (a *MetricApiService) PostInstantQueryExecute(r ApiPostInstantQueryRequest) (*PromEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2235,9 +2244,9 @@ PostLabelValues List of label values for a provided label name The endpoint returns a list of label values for a provided label name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param label Prometheus query label - @return ApiPostLabelValuesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param label Prometheus query label + @return ApiPostLabelValuesRequest */ func (a *MetricApiService) PostLabelValues(ctx context.Context, label string) ApiPostLabelValuesRequest { return ApiPostLabelValuesRequest{ @@ -2248,7 +2257,8 @@ func (a *MetricApiService) PostLabelValues(ctx context.Context, label string) Ap } // Execute executes the request -// @return PromLabelsEnvelope +// +// @return PromLabelsEnvelope func (a *MetricApiService) PostLabelValuesExecute(r ApiPostLabelValuesRequest) (*PromLabelsEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2445,8 +2455,8 @@ PostLabels List of label names The endpoint returns a list of label names - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostLabelsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostLabelsRequest */ func (a *MetricApiService) PostLabels(ctx context.Context) ApiPostLabelsRequest { return ApiPostLabelsRequest{ @@ -2456,7 +2466,8 @@ func (a *MetricApiService) PostLabels(ctx context.Context) ApiPostLabelsRequest } // Execute executes the request -// @return PromLabelsEnvelope +// +// @return PromLabelsEnvelope func (a *MetricApiService) PostLabelsExecute(r ApiPostLabelsRequest) (*PromLabelsEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2646,8 +2657,8 @@ PostMetadata Metadata about metrics currently scraped from targets The endpoint returns metadata about metrics currently scraped from targets. However, it does not provide any target information. This is considered experimental and might change in the future - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostMetadataRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostMetadataRequest */ func (a *MetricApiService) PostMetadata(ctx context.Context) ApiPostMetadataRequest { return ApiPostMetadataRequest{ @@ -2657,7 +2668,8 @@ func (a *MetricApiService) PostMetadata(ctx context.Context) ApiPostMetadataRequ } // Execute executes the request -// @return PromMetadataEnvelope +// +// @return PromMetadataEnvelope func (a *MetricApiService) PostMetadataExecute(r ApiPostMetadataRequest) (*PromMetadataEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2880,8 +2892,8 @@ PostRangeQuery Query over a range of time The endpoint evaluates an expression query over a range of time - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostRangeQueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostRangeQueryRequest */ func (a *MetricApiService) PostRangeQuery(ctx context.Context) ApiPostRangeQueryRequest { return ApiPostRangeQueryRequest{ @@ -2891,7 +2903,8 @@ func (a *MetricApiService) PostRangeQuery(ctx context.Context) ApiPostRangeQuery } // Execute executes the request -// @return PromEnvelope +// +// @return PromEnvelope func (a *MetricApiService) PostRangeQueryExecute(r ApiPostRangeQueryRequest) (*PromEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3106,8 +3119,8 @@ PostSeries List of time series that match a certain label set The endpoint returns the list of time series that match a certain label set - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostSeriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostSeriesRequest */ func (a *MetricApiService) PostSeries(ctx context.Context) ApiPostSeriesRequest { return ApiPostSeriesRequest{ @@ -3117,7 +3130,8 @@ func (a *MetricApiService) PostSeries(ctx context.Context) ApiPostSeriesRequest } // Execute executes the request -// @return PromSeriesEnvelope +// +// @return PromSeriesEnvelope func (a *MetricApiService) PostSeriesExecute(r ApiPostSeriesRequest) (*PromSeriesEnvelope, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_monitor.go b/generated/stackstate_api/api_monitor.go index 7bc474ad..76789029 100644 --- a/generated/stackstate_api/api_monitor.go +++ b/generated/stackstate_api/api_monitor.go @@ -246,9 +246,9 @@ DeleteMonitor Delete a monitor Deletes existing monitor - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiDeleteMonitorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiDeleteMonitorRequest */ func (a *MonitorApiService) DeleteMonitor(ctx context.Context, monitorIdOrUrn string) ApiDeleteMonitorRequest { return ApiDeleteMonitorRequest{ @@ -408,8 +408,8 @@ GetAllMonitors List monitors List all available monitor in the system - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAllMonitorsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAllMonitorsRequest */ func (a *MonitorApiService) GetAllMonitors(ctx context.Context) ApiGetAllMonitorsRequest { return ApiGetAllMonitorsRequest{ @@ -419,7 +419,8 @@ func (a *MonitorApiService) GetAllMonitors(ctx context.Context) ApiGetAllMonitor } // Execute executes the request -// @return MonitorList +// +// @return MonitorList func (a *MonitorApiService) GetAllMonitorsExecute(r ApiGetAllMonitorsRequest) (*MonitorList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -559,9 +560,9 @@ GetMonitor Get a monitor Returns a monitor full representation - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiGetMonitorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiGetMonitorRequest */ func (a *MonitorApiService) GetMonitor(ctx context.Context, monitorIdOrUrn string) ApiGetMonitorRequest { return ApiGetMonitorRequest{ @@ -572,7 +573,8 @@ func (a *MonitorApiService) GetMonitor(ctx context.Context, monitorIdOrUrn strin } // Execute executes the request -// @return Monitor +// +// @return Monitor func (a *MonitorApiService) GetMonitorExecute(r ApiGetMonitorRequest) (*Monitor, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -752,9 +754,9 @@ GetMonitorCheckStates Get the check states for a monitor Returns the checkstates that a monitor generated - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiGetMonitorCheckStatesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiGetMonitorCheckStatesRequest */ func (a *MonitorApiService) GetMonitorCheckStates(ctx context.Context, monitorIdOrUrn string) ApiGetMonitorCheckStatesRequest { return ApiGetMonitorCheckStatesRequest{ @@ -765,7 +767,8 @@ func (a *MonitorApiService) GetMonitorCheckStates(ctx context.Context, monitorId } // Execute executes the request -// @return MonitorCheckStates +// +// @return MonitorCheckStates func (a *MonitorApiService) GetMonitorCheckStatesExecute(r ApiGetMonitorCheckStatesRequest) (*MonitorCheckStates, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -941,9 +944,9 @@ GetMonitorWithStatus Get a monitor with stream information Returns a monitor full representation with the stream status information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiGetMonitorWithStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiGetMonitorWithStatusRequest */ func (a *MonitorApiService) GetMonitorWithStatus(ctx context.Context, monitorIdOrUrn string) ApiGetMonitorWithStatusRequest { return ApiGetMonitorWithStatusRequest{ @@ -954,7 +957,8 @@ func (a *MonitorApiService) GetMonitorWithStatus(ctx context.Context, monitorIdO } // Execute executes the request -// @return MonitorStatus +// +// @return MonitorStatus func (a *MonitorApiService) GetMonitorWithStatusExecute(r ApiGetMonitorWithStatusRequest) (*MonitorStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1117,8 +1121,8 @@ GetMonitorsOverview List monitors overview List all available monitor in the system with their function and runtime data - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetMonitorsOverviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMonitorsOverviewRequest */ func (a *MonitorApiService) GetMonitorsOverview(ctx context.Context) ApiGetMonitorsOverviewRequest { return ApiGetMonitorsOverviewRequest{ @@ -1128,7 +1132,8 @@ func (a *MonitorApiService) GetMonitorsOverview(ctx context.Context) ApiGetMonit } // Execute executes the request -// @return MonitorOverviewList +// +// @return MonitorOverviewList func (a *MonitorApiService) GetMonitorsOverviewExecute(r ApiGetMonitorsOverviewRequest) (*MonitorOverviewList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1274,8 +1279,8 @@ LookupIdentifier Multiple component identifier lookup Find identifier templates using a component type and a metrics query - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLookupIdentifierRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLookupIdentifierRequest */ func (a *MonitorApiService) LookupIdentifier(ctx context.Context) ApiLookupIdentifierRequest { return ApiLookupIdentifierRequest{ @@ -1285,7 +1290,8 @@ func (a *MonitorApiService) LookupIdentifier(ctx context.Context) ApiLookupIdent } // Execute executes the request -// @return MonitorIdentifierSuggestions +// +// @return MonitorIdentifierSuggestions func (a *MonitorApiService) LookupIdentifierExecute(r ApiLookupIdentifierRequest) (*MonitorIdentifierSuggestions, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1447,9 +1453,9 @@ PatchMonitor Update some monitor properties Performs a patch on the monitor base properties. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiPatchMonitorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiPatchMonitorRequest */ func (a *MonitorApiService) PatchMonitor(ctx context.Context, monitorIdOrUrn string) ApiPatchMonitorRequest { return ApiPatchMonitorRequest{ @@ -1460,7 +1466,8 @@ func (a *MonitorApiService) PatchMonitor(ctx context.Context, monitorIdOrUrn str } // Execute executes the request -// @return Monitor +// +// @return Monitor func (a *MonitorApiService) PatchMonitorExecute(r ApiPatchMonitorRequest) (*Monitor, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -1633,9 +1640,9 @@ PreviewMonitor Preview a monitor Performs a run of a monitor allowing to test it with new arguments and delivers a summary of the health states produced - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiPreviewMonitorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiPreviewMonitorRequest */ func (a *MonitorApiService) PreviewMonitor(ctx context.Context, monitorIdOrUrn string) ApiPreviewMonitorRequest { return ApiPreviewMonitorRequest{ @@ -1646,7 +1653,8 @@ func (a *MonitorApiService) PreviewMonitor(ctx context.Context, monitorIdOrUrn s } // Execute executes the request -// @return MonitorPreviewResult +// +// @return MonitorPreviewResult func (a *MonitorApiService) PreviewMonitorExecute(r ApiPreviewMonitorRequest) (*MonitorPreviewResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1832,9 +1840,9 @@ PreviewMonitorCheckStates Preview a monitor Performs a run of a monitor allowing to test it with new arguments and returns the health states produced - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiPreviewMonitorCheckStatesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiPreviewMonitorCheckStatesRequest */ func (a *MonitorApiService) PreviewMonitorCheckStates(ctx context.Context, monitorIdOrUrn string) ApiPreviewMonitorCheckStatesRequest { return ApiPreviewMonitorCheckStatesRequest{ @@ -1845,7 +1853,8 @@ func (a *MonitorApiService) PreviewMonitorCheckStates(ctx context.Context, monit } // Execute executes the request -// @return MonitorCheckStates +// +// @return MonitorCheckStates func (a *MonitorApiService) PreviewMonitorCheckStatesExecute(r ApiPreviewMonitorCheckStatesRequest) (*MonitorCheckStates, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2024,9 +2033,9 @@ PublishHealthStates Post monitor health states Publish health states for monitor - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiPublishHealthStatesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiPublishHealthStatesRequest */ func (a *MonitorApiService) PublishHealthStates(ctx context.Context, monitorIdOrUrn string) ApiPublishHealthStatesRequest { return ApiPublishHealthStatesRequest{ @@ -2199,9 +2208,9 @@ RunMonitor Run a monitor Performs a run of a monitor. If 'dryRun' is set, topology state will not be modified. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorIdOrUrn The id or identifier (urn) of a monitor - @return ApiRunMonitorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorIdOrUrn The id or identifier (urn) of a monitor + @return ApiRunMonitorRequest */ func (a *MonitorApiService) RunMonitor(ctx context.Context, monitorIdOrUrn string) ApiRunMonitorRequest { return ApiRunMonitorRequest{ @@ -2212,7 +2221,8 @@ func (a *MonitorApiService) RunMonitor(ctx context.Context, monitorIdOrUrn strin } // Execute executes the request -// @return MonitorRunResult +// +// @return MonitorRunResult func (a *MonitorApiService) RunMonitorExecute(r ApiRunMonitorRequest) (*MonitorRunResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2383,9 +2393,9 @@ TestMonitorFunction Test a monitor Performs a run of a monitor function to test arguments and delivers a summary of the health states produced - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorFunctionIdOrUrn The id or identifier (urn) of a monitor function - @return ApiTestMonitorFunctionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorFunctionIdOrUrn The id or identifier (urn) of a monitor function + @return ApiTestMonitorFunctionRequest */ func (a *MonitorApiService) TestMonitorFunction(ctx context.Context, monitorFunctionIdOrUrn string) ApiTestMonitorFunctionRequest { return ApiTestMonitorFunctionRequest{ @@ -2396,7 +2406,8 @@ func (a *MonitorApiService) TestMonitorFunction(ctx context.Context, monitorFunc } // Execute executes the request -// @return MonitorPreviewResult +// +// @return MonitorPreviewResult func (a *MonitorApiService) TestMonitorFunctionExecute(r ApiTestMonitorFunctionRequest) (*MonitorPreviewResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2582,9 +2593,9 @@ TestMonitorFunctionCheckStates Test a monitor Performs a run of a monitor function to test arguments and returns the health states produced - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param monitorFunctionIdOrUrn The id or identifier (urn) of a monitor function - @return ApiTestMonitorFunctionCheckStatesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param monitorFunctionIdOrUrn The id or identifier (urn) of a monitor function + @return ApiTestMonitorFunctionCheckStatesRequest */ func (a *MonitorApiService) TestMonitorFunctionCheckStates(ctx context.Context, monitorFunctionIdOrUrn string) ApiTestMonitorFunctionCheckStatesRequest { return ApiTestMonitorFunctionCheckStatesRequest{ @@ -2595,7 +2606,8 @@ func (a *MonitorApiService) TestMonitorFunctionCheckStates(ctx context.Context, } // Execute executes the request -// @return MonitorCheckStates +// +// @return MonitorCheckStates func (a *MonitorApiService) TestMonitorFunctionCheckStatesExecute(r ApiTestMonitorFunctionCheckStatesRequest) (*MonitorCheckStates, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_monitor_check_status.go b/generated/stackstate_api/api_monitor_check_status.go index 510be71c..c0f2d2e9 100644 --- a/generated/stackstate_api/api_monitor_check_status.go +++ b/generated/stackstate_api/api_monitor_check_status.go @@ -93,9 +93,9 @@ GetMonitorCheckStatus Get a monitor check status Get a monitor check status by check state id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The id of a monitor check status - @return ApiGetMonitorCheckStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of a monitor check status + @return ApiGetMonitorCheckStatusRequest */ func (a *MonitorCheckStatusApiService) GetMonitorCheckStatus(ctx context.Context, id int64) ApiGetMonitorCheckStatusRequest { return ApiGetMonitorCheckStatusRequest{ @@ -106,7 +106,8 @@ func (a *MonitorCheckStatusApiService) GetMonitorCheckStatus(ctx context.Context } // Execute executes the request -// @return MonitorCheckStatus +// +// @return MonitorCheckStatus func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusExecute(r ApiGetMonitorCheckStatusRequest) (*MonitorCheckStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -291,9 +292,9 @@ GetMonitorCheckStatusHealthHistory Get a monitor check health history Get a monitor check status health history for a defined period of time by the check state id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The id of a monitor check status - @return ApiGetMonitorCheckStatusHealthHistoryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of a monitor check status + @return ApiGetMonitorCheckStatusHealthHistoryRequest */ func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusHealthHistory(ctx context.Context, id int64) ApiGetMonitorCheckStatusHealthHistoryRequest { return ApiGetMonitorCheckStatusHealthHistoryRequest{ @@ -304,7 +305,8 @@ func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusHealthHistory(ctx co } // Execute executes the request -// @return MonitorCheckStatusHealthHistory +// +// @return MonitorCheckStatusHealthHistory func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusHealthHistoryExecute(r ApiGetMonitorCheckStatusHealthHistoryRequest) (*MonitorCheckStatusHealthHistory, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -472,9 +474,9 @@ GetMonitorCheckStatusRelatedFailures Get a monitor check related failures Get a monitor check status related failures by the check state id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The id of a monitor check status - @return ApiGetMonitorCheckStatusRelatedFailuresRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of a monitor check status + @return ApiGetMonitorCheckStatusRelatedFailuresRequest */ func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusRelatedFailures(ctx context.Context, id int64) ApiGetMonitorCheckStatusRelatedFailuresRequest { return ApiGetMonitorCheckStatusRelatedFailuresRequest{ @@ -485,7 +487,8 @@ func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusRelatedFailures(ctx } // Execute executes the request -// @return MonitorCheckStatusRelatedFailures +// +// @return MonitorCheckStatusRelatedFailures func (a *MonitorCheckStatusApiService) GetMonitorCheckStatusRelatedFailuresExecute(r ApiGetMonitorCheckStatusRelatedFailuresRequest) (*MonitorCheckStatusRelatedFailures, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_node.go b/generated/stackstate_api/api_node.go index ce056fef..e42acc4a 100644 --- a/generated/stackstate_api/api_node.go +++ b/generated/stackstate_api/api_node.go @@ -141,10 +141,10 @@ Clone Clone a node with a new name Clone a node with a new name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param nodeType - @param nodeIdOrUrn - @return ApiCloneRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param nodeType + @param nodeIdOrUrn + @return ApiCloneRequest */ func (a *NodeApiService) Clone(ctx context.Context, nodeType string, nodeIdOrUrn string) ApiCloneRequest { return ApiCloneRequest{ @@ -156,7 +156,8 @@ func (a *NodeApiService) Clone(ctx context.Context, nodeType string, nodeIdOrUrn } // Execute executes the request -// @return Node +// +// @return Node func (a *NodeApiService) CloneExecute(r ApiCloneRequest) (*Node, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -310,10 +311,10 @@ Delete Node deletion API Delete a locked node - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param nodeType - @param nodeId - @return ApiDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param nodeType + @param nodeId + @return ApiDeleteRequest */ func (a *NodeApiService) Delete(ctx context.Context, nodeType string, nodeId int64) ApiDeleteRequest { return ApiDeleteRequest{ @@ -470,10 +471,10 @@ Lock Retrieve if a node is locked Retrieve if a node is locked - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param nodeType - @param nodeId - @return ApiLockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param nodeType + @param nodeId + @return ApiLockRequest */ func (a *NodeApiService) Lock(ctx context.Context, nodeType string, nodeId int64) ApiLockRequest { return ApiLockRequest{ @@ -485,7 +486,8 @@ func (a *NodeApiService) Lock(ctx context.Context, nodeType string, nodeId int64 } // Execute executes the request -// @return LockedResponse +// +// @return LockedResponse func (a *NodeApiService) LockExecute(r ApiLockRequest) (*LockedResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -626,8 +628,8 @@ NodeListTypes Node API list all node types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiNodeListTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiNodeListTypesRequest */ func (a *NodeApiService) NodeListTypes(ctx context.Context) ApiNodeListTypesRequest { return ApiNodeListTypesRequest{ @@ -637,7 +639,8 @@ func (a *NodeApiService) NodeListTypes(ctx context.Context) ApiNodeListTypesRequ } // Execute executes the request -// @return NodeTypes +// +// @return NodeTypes func (a *NodeApiService) NodeListTypesExecute(r ApiNodeListTypesRequest) (*NodeTypes, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -789,9 +792,9 @@ TypeList Node type API list all nodes of that type - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param nodeType - @return ApiTypeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param nodeType + @return ApiTypeListRequest */ func (a *NodeApiService) TypeList(ctx context.Context, nodeType string) ApiTypeListRequest { return ApiTypeListRequest{ @@ -802,7 +805,8 @@ func (a *NodeApiService) TypeList(ctx context.Context, nodeType string) ApiTypeL } // Execute executes the request -// @return []Node +// +// @return []Node func (a *NodeApiService) TypeListExecute(r ApiTypeListRequest) ([]Node, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -950,10 +954,10 @@ Unlock Node unlock API Unlock a locked node - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param nodeType - @param nodeId - @return ApiUnlockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param nodeType + @param nodeId + @return ApiUnlockRequest */ func (a *NodeApiService) Unlock(ctx context.Context, nodeType string, nodeId int64) ApiUnlockRequest { return ApiUnlockRequest{ @@ -965,7 +969,8 @@ func (a *NodeApiService) Unlock(ctx context.Context, nodeType string, nodeId int } // Execute executes the request -// @return Node +// +// @return Node func (a *NodeApiService) UnlockExecute(r ApiUnlockRequest) (*Node, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_notification_channels.go b/generated/stackstate_api/api_notification_channels.go index 3265d626..0014a605 100644 --- a/generated/stackstate_api/api_notification_channels.go +++ b/generated/stackstate_api/api_notification_channels.go @@ -462,8 +462,8 @@ CreateEmailNotificationChannel Create a Email Notification channel Create Email Notification channel - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateEmailNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEmailNotificationChannelRequest */ func (a *NotificationChannelsApiService) CreateEmailNotificationChannel(ctx context.Context) ApiCreateEmailNotificationChannelRequest { return ApiCreateEmailNotificationChannelRequest{ @@ -473,7 +473,8 @@ func (a *NotificationChannelsApiService) CreateEmailNotificationChannel(ctx cont } // Execute executes the request -// @return EmailNotificationChannel +// +// @return EmailNotificationChannel func (a *NotificationChannelsApiService) CreateEmailNotificationChannelExecute(r ApiCreateEmailNotificationChannelRequest) (*EmailNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -634,8 +635,8 @@ CreateOpsgenieNotificationChannel Create a Opsgenie Notification channel Create a Opsgenie Notification channel - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateOpsgenieNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOpsgenieNotificationChannelRequest */ func (a *NotificationChannelsApiService) CreateOpsgenieNotificationChannel(ctx context.Context) ApiCreateOpsgenieNotificationChannelRequest { return ApiCreateOpsgenieNotificationChannelRequest{ @@ -645,7 +646,8 @@ func (a *NotificationChannelsApiService) CreateOpsgenieNotificationChannel(ctx c } // Execute executes the request -// @return OpsgenieNotificationChannel +// +// @return OpsgenieNotificationChannel func (a *NotificationChannelsApiService) CreateOpsgenieNotificationChannelExecute(r ApiCreateOpsgenieNotificationChannelRequest) (*OpsgenieNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -806,8 +808,8 @@ CreateTeamsNotificationChannel Create a Teams Notification channel Create a Teams Notification channel - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateTeamsNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateTeamsNotificationChannelRequest */ func (a *NotificationChannelsApiService) CreateTeamsNotificationChannel(ctx context.Context) ApiCreateTeamsNotificationChannelRequest { return ApiCreateTeamsNotificationChannelRequest{ @@ -817,7 +819,8 @@ func (a *NotificationChannelsApiService) CreateTeamsNotificationChannel(ctx cont } // Execute executes the request -// @return TeamsNotificationChannel +// +// @return TeamsNotificationChannel func (a *NotificationChannelsApiService) CreateTeamsNotificationChannelExecute(r ApiCreateTeamsNotificationChannelRequest) (*TeamsNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -978,8 +981,8 @@ CreateWebhookNotificationChannel Create a Webhook Notification channel Create a Webhook Notification channel - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateWebhookNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateWebhookNotificationChannelRequest */ func (a *NotificationChannelsApiService) CreateWebhookNotificationChannel(ctx context.Context) ApiCreateWebhookNotificationChannelRequest { return ApiCreateWebhookNotificationChannelRequest{ @@ -989,7 +992,8 @@ func (a *NotificationChannelsApiService) CreateWebhookNotificationChannel(ctx co } // Execute executes the request -// @return WebhookNotificationChannel +// +// @return WebhookNotificationChannel func (a *NotificationChannelsApiService) CreateWebhookNotificationChannelExecute(r ApiCreateWebhookNotificationChannelRequest) (*WebhookNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1144,9 +1148,9 @@ DeleteEmailNotificationChannel Delete the Email Notification channel by id Delete the email notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiDeleteEmailNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiDeleteEmailNotificationChannelRequest */ func (a *NotificationChannelsApiService) DeleteEmailNotificationChannel(ctx context.Context, channelId int64) ApiDeleteEmailNotificationChannelRequest { return ApiDeleteEmailNotificationChannelRequest{ @@ -1307,9 +1311,9 @@ DeleteOpsgenieNotificationChannel Delete the Opsgenie Notification channel by id Delete the opsgenie notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiDeleteOpsgenieNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiDeleteOpsgenieNotificationChannelRequest */ func (a *NotificationChannelsApiService) DeleteOpsgenieNotificationChannel(ctx context.Context, channelId int64) ApiDeleteOpsgenieNotificationChannelRequest { return ApiDeleteOpsgenieNotificationChannelRequest{ @@ -1470,9 +1474,9 @@ DeleteSlackNotificationChannel Delete the Slack Notification channel by id Delete the slack notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiDeleteSlackNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiDeleteSlackNotificationChannelRequest */ func (a *NotificationChannelsApiService) DeleteSlackNotificationChannel(ctx context.Context, channelId int64) ApiDeleteSlackNotificationChannelRequest { return ApiDeleteSlackNotificationChannelRequest{ @@ -1633,9 +1637,9 @@ DeleteTeamsNotificationChannel Delete the Teams Notification channel by id Delete the teams notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiDeleteTeamsNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiDeleteTeamsNotificationChannelRequest */ func (a *NotificationChannelsApiService) DeleteTeamsNotificationChannel(ctx context.Context, channelId int64) ApiDeleteTeamsNotificationChannelRequest { return ApiDeleteTeamsNotificationChannelRequest{ @@ -1796,9 +1800,9 @@ DeleteWebhookNotificationChannel Delete the Webhook Notification channel by id Delete the webhook notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiDeleteWebhookNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiDeleteWebhookNotificationChannelRequest */ func (a *NotificationChannelsApiService) DeleteWebhookNotificationChannel(ctx context.Context, channelId int64) ApiDeleteWebhookNotificationChannelRequest { return ApiDeleteWebhookNotificationChannelRequest{ @@ -1959,9 +1963,9 @@ GetEmailNotificationChannel Get the Email Notification channel by id Get the email notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiGetEmailNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiGetEmailNotificationChannelRequest */ func (a *NotificationChannelsApiService) GetEmailNotificationChannel(ctx context.Context, channelId int64) ApiGetEmailNotificationChannelRequest { return ApiGetEmailNotificationChannelRequest{ @@ -1972,7 +1976,8 @@ func (a *NotificationChannelsApiService) GetEmailNotificationChannel(ctx context } // Execute executes the request -// @return EmailNotificationChannel +// +// @return EmailNotificationChannel func (a *NotificationChannelsApiService) GetEmailNotificationChannelExecute(r ApiGetEmailNotificationChannelRequest) (*EmailNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2132,8 +2137,8 @@ GetEmailNotificationStatus Email Notification channel status Email Notification channel status, test whether it can be used - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetEmailNotificationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEmailNotificationStatusRequest */ func (a *NotificationChannelsApiService) GetEmailNotificationStatus(ctx context.Context) ApiGetEmailNotificationStatusRequest { return ApiGetEmailNotificationStatusRequest{ @@ -2143,7 +2148,8 @@ func (a *NotificationChannelsApiService) GetEmailNotificationStatus(ctx context. } // Execute executes the request -// @return EmailNotificationStatus +// +// @return EmailNotificationStatus func (a *NotificationChannelsApiService) GetEmailNotificationStatusExecute(r ApiGetEmailNotificationStatusRequest) (*EmailNotificationStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2293,9 +2299,9 @@ GetOpsgenieNotificationChannel Get the Opsgenie Notification channel by id Get the opsgenie notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiGetOpsgenieNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiGetOpsgenieNotificationChannelRequest */ func (a *NotificationChannelsApiService) GetOpsgenieNotificationChannel(ctx context.Context, channelId int64) ApiGetOpsgenieNotificationChannelRequest { return ApiGetOpsgenieNotificationChannelRequest{ @@ -2306,7 +2312,8 @@ func (a *NotificationChannelsApiService) GetOpsgenieNotificationChannel(ctx cont } // Execute executes the request -// @return OpsgenieNotificationChannel +// +// @return OpsgenieNotificationChannel func (a *NotificationChannelsApiService) GetOpsgenieNotificationChannelExecute(r ApiGetOpsgenieNotificationChannelRequest) (*OpsgenieNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2467,9 +2474,9 @@ GetSlackNotificationChannel Get the Slack Notification channel by id Get the slack notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiGetSlackNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiGetSlackNotificationChannelRequest */ func (a *NotificationChannelsApiService) GetSlackNotificationChannel(ctx context.Context, channelId int64) ApiGetSlackNotificationChannelRequest { return ApiGetSlackNotificationChannelRequest{ @@ -2480,7 +2487,8 @@ func (a *NotificationChannelsApiService) GetSlackNotificationChannel(ctx context } // Execute executes the request -// @return SlackNotificationChannel +// +// @return SlackNotificationChannel func (a *NotificationChannelsApiService) GetSlackNotificationChannelExecute(r ApiGetSlackNotificationChannelRequest) (*SlackNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2641,9 +2649,9 @@ GetTeamsNotificationChannel Get the Teams Notification channel by id Get the teams notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiGetTeamsNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiGetTeamsNotificationChannelRequest */ func (a *NotificationChannelsApiService) GetTeamsNotificationChannel(ctx context.Context, channelId int64) ApiGetTeamsNotificationChannelRequest { return ApiGetTeamsNotificationChannelRequest{ @@ -2654,7 +2662,8 @@ func (a *NotificationChannelsApiService) GetTeamsNotificationChannel(ctx context } // Execute executes the request -// @return TeamsNotificationChannel +// +// @return TeamsNotificationChannel func (a *NotificationChannelsApiService) GetTeamsNotificationChannelExecute(r ApiGetTeamsNotificationChannelRequest) (*TeamsNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2815,9 +2824,9 @@ GetWebhookNotificationChannel Get the Webhook Notification channel by id Get the webhook notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiGetWebhookNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiGetWebhookNotificationChannelRequest */ func (a *NotificationChannelsApiService) GetWebhookNotificationChannel(ctx context.Context, channelId int64) ApiGetWebhookNotificationChannelRequest { return ApiGetWebhookNotificationChannelRequest{ @@ -2828,7 +2837,8 @@ func (a *NotificationChannelsApiService) GetWebhookNotificationChannel(ctx conte } // Execute executes the request -// @return WebhookNotificationChannel +// +// @return WebhookNotificationChannel func (a *NotificationChannelsApiService) GetWebhookNotificationChannelExecute(r ApiGetWebhookNotificationChannelRequest) (*WebhookNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2996,9 +3006,9 @@ JoinSlackChannel Join the specified Slack channel to send notifications Join the specified Slack channel and configure this notifiation channel to post notifications to the specified slack channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiJoinSlackChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiJoinSlackChannelRequest */ func (a *NotificationChannelsApiService) JoinSlackChannel(ctx context.Context, channelId int64) ApiJoinSlackChannelRequest { return ApiJoinSlackChannelRequest{ @@ -3009,7 +3019,8 @@ func (a *NotificationChannelsApiService) JoinSlackChannel(ctx context.Context, c } // Execute executes the request -// @return SlackNotificationChannel +// +// @return SlackNotificationChannel func (a *NotificationChannelsApiService) JoinSlackChannelExecute(r ApiJoinSlackChannelRequest) (*SlackNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3188,8 +3199,8 @@ ListOpsgenieResponders List Opsgenie responders List Opsgenie responders - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListOpsgenieRespondersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListOpsgenieRespondersRequest */ func (a *NotificationChannelsApiService) ListOpsgenieResponders(ctx context.Context) ApiListOpsgenieRespondersRequest { return ApiListOpsgenieRespondersRequest{ @@ -3199,7 +3210,8 @@ func (a *NotificationChannelsApiService) ListOpsgenieResponders(ctx context.Cont } // Execute executes the request -// @return []OpsgenieResponder +// +// @return []OpsgenieResponder func (a *NotificationChannelsApiService) ListOpsgenieRespondersExecute(r ApiListOpsgenieRespondersRequest) ([]OpsgenieResponder, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3357,9 +3369,9 @@ ListSlackChannels List all public Slack channels List all public Slack channels, used for selecting a channel for the notifications - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiListSlackChannelsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiListSlackChannelsRequest */ func (a *NotificationChannelsApiService) ListSlackChannels(ctx context.Context, channelId int64) ApiListSlackChannelsRequest { return ApiListSlackChannelsRequest{ @@ -3370,7 +3382,8 @@ func (a *NotificationChannelsApiService) ListSlackChannels(ctx context.Context, } // Execute executes the request -// @return []SlackChannel +// +// @return []SlackChannel func (a *NotificationChannelsApiService) ListSlackChannelsExecute(r ApiListSlackChannelsRequest) ([]SlackChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3551,8 +3564,8 @@ SlackOAuthCallback The OAuth callback for Slack The OAuth callback for Slack, which is used to obtain the access token for the Slack channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSlackOAuthCallbackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSlackOAuthCallbackRequest */ func (a *NotificationChannelsApiService) SlackOAuthCallback(ctx context.Context) ApiSlackOAuthCallbackRequest { return ApiSlackOAuthCallbackRequest{ @@ -3698,8 +3711,8 @@ SlackOauthRedirect Starts Slack OAuth2 flow Redirects to Slack to start an OAuth2 flow. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSlackOauthRedirectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSlackOauthRedirectRequest */ func (a *NotificationChannelsApiService) SlackOauthRedirect(ctx context.Context) ApiSlackOauthRedirectRequest { return ApiSlackOauthRedirectRequest{ @@ -3833,9 +3846,9 @@ TestEmailChannel Test the Email notification channel Test the email notification channel by sending a test message to the notification channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiTestEmailChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiTestEmailChannelRequest */ func (a *NotificationChannelsApiService) TestEmailChannel(ctx context.Context, channelId int64) ApiTestEmailChannelRequest { return ApiTestEmailChannelRequest{ @@ -3996,9 +4009,9 @@ TestOpsgenieChannel Test the Opsgenie notification channel Test the opsgenie notification channel by sending a test message to the notification channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiTestOpsgenieChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiTestOpsgenieChannelRequest */ func (a *NotificationChannelsApiService) TestOpsgenieChannel(ctx context.Context, channelId int64) ApiTestOpsgenieChannelRequest { return ApiTestOpsgenieChannelRequest{ @@ -4159,9 +4172,9 @@ TestSlackChannel Test the Notification channel Test the Notification channel by sending a test message to the notification channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiTestSlackChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiTestSlackChannelRequest */ func (a *NotificationChannelsApiService) TestSlackChannel(ctx context.Context, channelId int64) ApiTestSlackChannelRequest { return ApiTestSlackChannelRequest{ @@ -4322,9 +4335,9 @@ TestTeamsChannel Test the Teams notification channel Test the teams notification channel by sending a test message to the notification channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiTestTeamsChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiTestTeamsChannelRequest */ func (a *NotificationChannelsApiService) TestTeamsChannel(ctx context.Context, channelId int64) ApiTestTeamsChannelRequest { return ApiTestTeamsChannelRequest{ @@ -4485,9 +4498,9 @@ TestWebhookChannel Test the Webhook notification channel Test the webhook notification channel by sending a test message to the notification channel. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiTestWebhookChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiTestWebhookChannelRequest */ func (a *NotificationChannelsApiService) TestWebhookChannel(ctx context.Context, channelId int64) ApiTestWebhookChannelRequest { return ApiTestWebhookChannelRequest{ @@ -4655,9 +4668,9 @@ UpdateEmailNotificationChannel Update the Email Notification channel by id Update the email notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiUpdateEmailNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiUpdateEmailNotificationChannelRequest */ func (a *NotificationChannelsApiService) UpdateEmailNotificationChannel(ctx context.Context, channelId int64) ApiUpdateEmailNotificationChannelRequest { return ApiUpdateEmailNotificationChannelRequest{ @@ -4668,7 +4681,8 @@ func (a *NotificationChannelsApiService) UpdateEmailNotificationChannel(ctx cont } // Execute executes the request -// @return EmailNotificationChannel +// +// @return EmailNotificationChannel func (a *NotificationChannelsApiService) UpdateEmailNotificationChannelExecute(r ApiUpdateEmailNotificationChannelRequest) (*EmailNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut @@ -4841,9 +4855,9 @@ UpdateOpsgenieNotificationChannel Update the Opsgenie Notification channel by id Update the opsgenie notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiUpdateOpsgenieNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiUpdateOpsgenieNotificationChannelRequest */ func (a *NotificationChannelsApiService) UpdateOpsgenieNotificationChannel(ctx context.Context, channelId int64) ApiUpdateOpsgenieNotificationChannelRequest { return ApiUpdateOpsgenieNotificationChannelRequest{ @@ -4854,7 +4868,8 @@ func (a *NotificationChannelsApiService) UpdateOpsgenieNotificationChannel(ctx c } // Execute executes the request -// @return OpsgenieNotificationChannel +// +// @return OpsgenieNotificationChannel func (a *NotificationChannelsApiService) UpdateOpsgenieNotificationChannelExecute(r ApiUpdateOpsgenieNotificationChannelRequest) (*OpsgenieNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut @@ -5027,9 +5042,9 @@ UpdateTeamsNotificationChannel Update the Teams Notification channel by id Update the teams notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiUpdateTeamsNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiUpdateTeamsNotificationChannelRequest */ func (a *NotificationChannelsApiService) UpdateTeamsNotificationChannel(ctx context.Context, channelId int64) ApiUpdateTeamsNotificationChannelRequest { return ApiUpdateTeamsNotificationChannelRequest{ @@ -5040,7 +5055,8 @@ func (a *NotificationChannelsApiService) UpdateTeamsNotificationChannel(ctx cont } // Execute executes the request -// @return TeamsNotificationChannel +// +// @return TeamsNotificationChannel func (a *NotificationChannelsApiService) UpdateTeamsNotificationChannelExecute(r ApiUpdateTeamsNotificationChannelRequest) (*TeamsNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut @@ -5213,9 +5229,9 @@ UpdateWebhookNotificationChannel Update the Webhook Notification channel by id Update the webhook notification channel by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param channelId Channel identifier - @return ApiUpdateWebhookNotificationChannelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param channelId Channel identifier + @return ApiUpdateWebhookNotificationChannelRequest */ func (a *NotificationChannelsApiService) UpdateWebhookNotificationChannel(ctx context.Context, channelId int64) ApiUpdateWebhookNotificationChannelRequest { return ApiUpdateWebhookNotificationChannelRequest{ @@ -5226,7 +5242,8 @@ func (a *NotificationChannelsApiService) UpdateWebhookNotificationChannel(ctx co } // Execute executes the request -// @return WebhookNotificationChannel +// +// @return WebhookNotificationChannel func (a *NotificationChannelsApiService) UpdateWebhookNotificationChannelExecute(r ApiUpdateWebhookNotificationChannelRequest) (*WebhookNotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/generated/stackstate_api/api_notification_configurations.go b/generated/stackstate_api/api_notification_configurations.go index e419b547..13972f4d 100644 --- a/generated/stackstate_api/api_notification_configurations.go +++ b/generated/stackstate_api/api_notification_configurations.go @@ -134,8 +134,8 @@ CreateNotificationConfiguration Create a new notification configuration Create a new notification configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateNotificationConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateNotificationConfigurationRequest */ func (a *NotificationConfigurationsApiService) CreateNotificationConfiguration(ctx context.Context) ApiCreateNotificationConfigurationRequest { return ApiCreateNotificationConfigurationRequest{ @@ -145,7 +145,8 @@ func (a *NotificationConfigurationsApiService) CreateNotificationConfiguration(c } // Execute executes the request -// @return NotificationConfigurationReadSchema +// +// @return NotificationConfigurationReadSchema func (a *NotificationConfigurationsApiService) CreateNotificationConfigurationExecute(r ApiCreateNotificationConfigurationRequest) (*NotificationConfigurationReadSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -300,9 +301,9 @@ DeleteNotificationConfiguration Delete the notification configuration Delete the notification configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param notificationConfigurationIdOrUrn Notification identifier - @return ApiDeleteNotificationConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param notificationConfigurationIdOrUrn Notification identifier + @return ApiDeleteNotificationConfigurationRequest */ func (a *NotificationConfigurationsApiService) DeleteNotificationConfiguration(ctx context.Context, notificationConfigurationIdOrUrn string) ApiDeleteNotificationConfigurationRequest { return ApiDeleteNotificationConfigurationRequest{ @@ -463,9 +464,9 @@ GetNotificationConfiguration Get the notification configuration Get the notification configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param notificationConfigurationIdOrUrn Notification identifier - @return ApiGetNotificationConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param notificationConfigurationIdOrUrn Notification identifier + @return ApiGetNotificationConfigurationRequest */ func (a *NotificationConfigurationsApiService) GetNotificationConfiguration(ctx context.Context, notificationConfigurationIdOrUrn string) ApiGetNotificationConfigurationRequest { return ApiGetNotificationConfigurationRequest{ @@ -476,7 +477,8 @@ func (a *NotificationConfigurationsApiService) GetNotificationConfiguration(ctx } // Execute executes the request -// @return NotificationConfigurationReadSchema +// +// @return NotificationConfigurationReadSchema func (a *NotificationConfigurationsApiService) GetNotificationConfigurationExecute(r ApiGetNotificationConfigurationRequest) (*NotificationConfigurationReadSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -637,9 +639,9 @@ GetNotificationConfigurationChannels Get the channels for the notification confi Get the channels for the notification configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param notificationConfigurationIdOrUrn Notification identifier - @return ApiGetNotificationConfigurationChannelsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param notificationConfigurationIdOrUrn Notification identifier + @return ApiGetNotificationConfigurationChannelsRequest */ func (a *NotificationConfigurationsApiService) GetNotificationConfigurationChannels(ctx context.Context, notificationConfigurationIdOrUrn string) ApiGetNotificationConfigurationChannelsRequest { return ApiGetNotificationConfigurationChannelsRequest{ @@ -650,7 +652,8 @@ func (a *NotificationConfigurationsApiService) GetNotificationConfigurationChann } // Execute executes the request -// @return []NotificationChannel +// +// @return []NotificationChannel func (a *NotificationConfigurationsApiService) GetNotificationConfigurationChannelsExecute(r ApiGetNotificationConfigurationChannelsRequest) ([]NotificationChannel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -810,8 +813,8 @@ GetNotificationConfigurations Get all notification configurations Get all notification configurations - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetNotificationConfigurationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetNotificationConfigurationsRequest */ func (a *NotificationConfigurationsApiService) GetNotificationConfigurations(ctx context.Context) ApiGetNotificationConfigurationsRequest { return ApiGetNotificationConfigurationsRequest{ @@ -821,7 +824,8 @@ func (a *NotificationConfigurationsApiService) GetNotificationConfigurations(ctx } // Execute executes the request -// @return []NotificationConfigurationReadSchema +// +// @return []NotificationConfigurationReadSchema func (a *NotificationConfigurationsApiService) GetNotificationConfigurationsExecute(r ApiGetNotificationConfigurationsRequest) ([]NotificationConfigurationReadSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -978,9 +982,9 @@ UpdateNotificationConfiguration Update the notification configuration Update the notification configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param notificationConfigurationIdOrUrn Notification identifier - @return ApiUpdateNotificationConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param notificationConfigurationIdOrUrn Notification identifier + @return ApiUpdateNotificationConfigurationRequest */ func (a *NotificationConfigurationsApiService) UpdateNotificationConfiguration(ctx context.Context, notificationConfigurationIdOrUrn string) ApiUpdateNotificationConfigurationRequest { return ApiUpdateNotificationConfigurationRequest{ @@ -991,7 +995,8 @@ func (a *NotificationConfigurationsApiService) UpdateNotificationConfiguration(c } // Execute executes the request -// @return NotificationConfigurationReadSchema +// +// @return NotificationConfigurationReadSchema func (a *NotificationConfigurationsApiService) UpdateNotificationConfigurationExecute(r ApiUpdateNotificationConfigurationRequest) (*NotificationConfigurationReadSchema, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/generated/stackstate_api/api_otel_mapping.go b/generated/stackstate_api/api_otel_mapping.go index 1b406d68..cbb629a3 100644 --- a/generated/stackstate_api/api_otel_mapping.go +++ b/generated/stackstate_api/api_otel_mapping.go @@ -89,9 +89,9 @@ func (r ApiGetOtelComponentMappingStatusRequest) Execute() (*OtelMappingStatus, /* GetOtelComponentMappingStatus Get the status of an otel component mapping synchronization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param identifier - @return ApiGetOtelComponentMappingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param identifier + @return ApiGetOtelComponentMappingStatusRequest */ func (a *OtelMappingApiService) GetOtelComponentMappingStatus(ctx context.Context, identifier string) ApiGetOtelComponentMappingStatusRequest { return ApiGetOtelComponentMappingStatusRequest{ @@ -102,7 +102,8 @@ func (a *OtelMappingApiService) GetOtelComponentMappingStatus(ctx context.Contex } // Execute executes the request -// @return OtelMappingStatus +// +// @return OtelMappingStatus func (a *OtelMappingApiService) GetOtelComponentMappingStatusExecute(r ApiGetOtelComponentMappingStatusRequest) (*OtelMappingStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -250,8 +251,8 @@ func (r ApiGetOtelComponentMappingsRequest) Execute() ([]OtelMappingItem, *http. /* GetOtelComponentMappings Get all otel component mappings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetOtelComponentMappingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOtelComponentMappingsRequest */ func (a *OtelMappingApiService) GetOtelComponentMappings(ctx context.Context) ApiGetOtelComponentMappingsRequest { return ApiGetOtelComponentMappingsRequest{ @@ -261,7 +262,8 @@ func (a *OtelMappingApiService) GetOtelComponentMappings(ctx context.Context) Ap } // Execute executes the request -// @return []OtelMappingItem +// +// @return []OtelMappingItem func (a *OtelMappingApiService) GetOtelComponentMappingsExecute(r ApiGetOtelComponentMappingsRequest) ([]OtelMappingItem, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -399,9 +401,9 @@ func (r ApiGetOtelRelationMappingStatusRequest) Execute() (*OtelMappingStatus, * /* GetOtelRelationMappingStatus Get the status of an otel relation mapping synchronization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param identifier - @return ApiGetOtelRelationMappingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param identifier + @return ApiGetOtelRelationMappingStatusRequest */ func (a *OtelMappingApiService) GetOtelRelationMappingStatus(ctx context.Context, identifier string) ApiGetOtelRelationMappingStatusRequest { return ApiGetOtelRelationMappingStatusRequest{ @@ -412,7 +414,8 @@ func (a *OtelMappingApiService) GetOtelRelationMappingStatus(ctx context.Context } // Execute executes the request -// @return OtelMappingStatus +// +// @return OtelMappingStatus func (a *OtelMappingApiService) GetOtelRelationMappingStatusExecute(r ApiGetOtelRelationMappingStatusRequest) (*OtelMappingStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -560,8 +563,8 @@ func (r ApiGetOtelRelationMappingsRequest) Execute() ([]OtelMappingItem, *http.R /* GetOtelRelationMappings Get all otel relation mappings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetOtelRelationMappingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOtelRelationMappingsRequest */ func (a *OtelMappingApiService) GetOtelRelationMappings(ctx context.Context) ApiGetOtelRelationMappingsRequest { return ApiGetOtelRelationMappingsRequest{ @@ -571,7 +574,8 @@ func (a *OtelMappingApiService) GetOtelRelationMappings(ctx context.Context) Api } // Execute executes the request -// @return []OtelMappingItem +// +// @return []OtelMappingItem func (a *OtelMappingApiService) GetOtelRelationMappingsExecute(r ApiGetOtelRelationMappingsRequest) ([]OtelMappingItem, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_permissions.go b/generated/stackstate_api/api_permissions.go index 71b98354..edd9b3fd 100644 --- a/generated/stackstate_api/api_permissions.go +++ b/generated/stackstate_api/api_permissions.go @@ -110,9 +110,9 @@ DescribePermissions Describe permissions Describe permissions granted to a subject - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subject - @return ApiDescribePermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subject + @return ApiDescribePermissionsRequest */ func (a *PermissionsApiService) DescribePermissions(ctx context.Context, subject string) ApiDescribePermissionsRequest { return ApiDescribePermissionsRequest{ @@ -123,7 +123,8 @@ func (a *PermissionsApiService) DescribePermissions(ctx context.Context, subject } // Execute executes the request -// @return PermissionDescription +// +// @return PermissionDescription func (a *PermissionsApiService) DescribePermissionsExecute(r ApiDescribePermissionsRequest) (*PermissionDescription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -279,8 +280,8 @@ GetPermissions List permissions Get a list of available permissions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPermissionsRequest */ func (a *PermissionsApiService) GetPermissions(ctx context.Context) ApiGetPermissionsRequest { return ApiGetPermissionsRequest{ @@ -290,7 +291,8 @@ func (a *PermissionsApiService) GetPermissions(ctx context.Context) ApiGetPermis } // Execute executes the request -// @return Permissions +// +// @return Permissions func (a *PermissionsApiService) GetPermissionsExecute(r ApiGetPermissionsRequest) (*Permissions, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -436,9 +438,9 @@ GrantPermissions Grant permissions Grant permissions to a subject - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subject - @return ApiGrantPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subject + @return ApiGrantPermissionsRequest */ func (a *PermissionsApiService) GrantPermissions(ctx context.Context, subject string) ApiGrantPermissionsRequest { return ApiGrantPermissionsRequest{ @@ -616,9 +618,9 @@ RevokePermissions Revoke permissions Revoke permissions of a subject - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subject - @return ApiRevokePermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subject + @return ApiRevokePermissionsRequest */ func (a *PermissionsApiService) RevokePermissions(ctx context.Context, subject string) ApiRevokePermissionsRequest { return ApiRevokePermissionsRequest{ diff --git a/generated/stackstate_api/api_problem.go b/generated/stackstate_api/api_problem.go index af7d68fa..330f0ee4 100644 --- a/generated/stackstate_api/api_problem.go +++ b/generated/stackstate_api/api_problem.go @@ -70,9 +70,9 @@ GetProblemCausingEvents List possible events which led to the problem Resulting events are ordered by likeness to be an actual problem cause - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param problemId The problem id number. - @return ApiGetProblemCausingEventsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param problemId The problem id number. + @return ApiGetProblemCausingEventsRequest */ func (a *ProblemApiService) GetProblemCausingEvents(ctx context.Context, problemId int64) ApiGetProblemCausingEventsRequest { return ApiGetProblemCausingEventsRequest{ @@ -83,7 +83,8 @@ func (a *ProblemApiService) GetProblemCausingEvents(ctx context.Context, problem } // Execute executes the request -// @return GetCausingEventsResult +// +// @return GetCausingEventsResult func (a *ProblemApiService) GetProblemCausingEventsExecute(r ApiGetProblemCausingEventsRequest) (*GetCausingEventsResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_scripting.go b/generated/stackstate_api/api_scripting.go index 7864dcef..46b22669 100644 --- a/generated/stackstate_api/api_scripting.go +++ b/generated/stackstate_api/api_scripting.go @@ -59,8 +59,8 @@ ScriptExecute Execute script Execute a StackState Scripting Language or Template Language script with arbitrary arguments. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiScriptExecuteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiScriptExecuteRequest */ func (a *ScriptingApiService) ScriptExecute(ctx context.Context) ApiScriptExecuteRequest { return ApiScriptExecuteRequest{ @@ -70,7 +70,8 @@ func (a *ScriptingApiService) ScriptExecute(ctx context.Context) ApiScriptExecut } // Execute executes the request -// @return ExecuteScriptResponse +// +// @return ExecuteScriptResponse func (a *ScriptingApiService) ScriptExecuteExecute(r ApiScriptExecuteRequest) (*ExecuteScriptResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_server.go b/generated/stackstate_api/api_server.go index bde36c39..dd29c1a0 100644 --- a/generated/stackstate_api/api_server.go +++ b/generated/stackstate_api/api_server.go @@ -53,8 +53,8 @@ ServerInfo Get server info Get information of the StackState information, such as version, deployment mode, etc. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerInfoRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerInfoRequest */ func (a *ServerApiService) ServerInfo(ctx context.Context) ApiServerInfoRequest { return ApiServerInfoRequest{ @@ -64,7 +64,8 @@ func (a *ServerApiService) ServerInfo(ctx context.Context) ApiServerInfoRequest } // Execute executes the request -// @return ServerInfo +// +// @return ServerInfo func (a *ServerApiService) ServerInfoExecute(r ApiServerInfoRequest) (*ServerInfo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_service_token.go b/generated/stackstate_api/api_service_token.go index 07f23a4b..c8427296 100644 --- a/generated/stackstate_api/api_service_token.go +++ b/generated/stackstate_api/api_service_token.go @@ -88,8 +88,8 @@ CreateNewServiceToken Create new service token Create new service token. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateNewServiceTokenRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateNewServiceTokenRequest */ func (a *ServiceTokenApiService) CreateNewServiceToken(ctx context.Context) ApiCreateNewServiceTokenRequest { return ApiCreateNewServiceTokenRequest{ @@ -99,7 +99,8 @@ func (a *ServiceTokenApiService) CreateNewServiceToken(ctx context.Context) ApiC } // Execute executes the request -// @return ServiceTokenCreatedResponse +// +// @return ServiceTokenCreatedResponse func (a *ServiceTokenApiService) CreateNewServiceTokenExecute(r ApiCreateNewServiceTokenRequest) (*ServiceTokenCreatedResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -254,9 +255,9 @@ DeleteServiceToken Delete service token Delete service token. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceTokenId The identifier of a service token - @return ApiDeleteServiceTokenRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceTokenId The identifier of a service token + @return ApiDeleteServiceTokenRequest */ func (a *ServiceTokenApiService) DeleteServiceToken(ctx context.Context, serviceTokenId int64) ApiDeleteServiceTokenRequest { return ApiDeleteServiceTokenRequest{ @@ -396,8 +397,8 @@ GetServiceTokens Get service tokens Get service tokens. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetServiceTokensRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetServiceTokensRequest */ func (a *ServiceTokenApiService) GetServiceTokens(ctx context.Context) ApiGetServiceTokensRequest { return ApiGetServiceTokensRequest{ @@ -407,7 +408,8 @@ func (a *ServiceTokenApiService) GetServiceTokens(ctx context.Context) ApiGetSer } // Execute executes the request -// @return []ServiceToken +// +// @return []ServiceToken func (a *ServiceTokenApiService) GetServiceTokensExecute(r ApiGetServiceTokensRequest) ([]ServiceToken, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_stackpack.go b/generated/stackstate_api/api_stackpack.go index e0c42ecd..8ebe39cf 100644 --- a/generated/stackstate_api/api_stackpack.go +++ b/generated/stackstate_api/api_stackpack.go @@ -133,10 +133,10 @@ ConfirmManualSteps Confirm manual steps Confirm manual steps of the stackpack - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stackPackName - @param stackPackInstanceId - @return ApiConfirmManualStepsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stackPackName + @param stackPackInstanceId + @return ApiConfirmManualStepsRequest */ func (a *StackpackApiService) ConfirmManualSteps(ctx context.Context, stackPackName string, stackPackInstanceId int64) ApiConfirmManualStepsRequest { return ApiConfirmManualStepsRequest{ @@ -148,7 +148,8 @@ func (a *StackpackApiService) ConfirmManualSteps(ctx context.Context, stackPackN } // Execute executes the request -// @return string +// +// @return string func (a *StackpackApiService) ConfirmManualStepsExecute(r ApiConfirmManualStepsRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -302,9 +303,9 @@ ProvisionDetails Provision API Provision details - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stackPackName - @return ApiProvisionDetailsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stackPackName + @return ApiProvisionDetailsRequest */ func (a *StackpackApiService) ProvisionDetails(ctx context.Context, stackPackName string) ApiProvisionDetailsRequest { return ApiProvisionDetailsRequest{ @@ -315,7 +316,8 @@ func (a *StackpackApiService) ProvisionDetails(ctx context.Context, stackPackNam } // Execute executes the request -// @return ProvisionResponse +// +// @return ProvisionResponse func (a *StackpackApiService) ProvisionDetailsExecute(r ApiProvisionDetailsRequest) (*ProvisionResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -463,10 +465,10 @@ ProvisionUninstall Provision API Provision details - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stackPackName - @param stackPackInstanceId - @return ApiProvisionUninstallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stackPackName + @param stackPackInstanceId + @return ApiProvisionUninstallRequest */ func (a *StackpackApiService) ProvisionUninstall(ctx context.Context, stackPackName string, stackPackInstanceId int64) ApiProvisionUninstallRequest { return ApiProvisionUninstallRequest{ @@ -478,7 +480,8 @@ func (a *StackpackApiService) ProvisionUninstall(ctx context.Context, stackPackN } // Execute executes the request -// @return string +// +// @return string func (a *StackpackApiService) ProvisionUninstallExecute(r ApiProvisionUninstallRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -629,8 +632,8 @@ StackPackList StackPack API list of stackpack - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStackPackListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStackPackListRequest */ func (a *StackpackApiService) StackPackList(ctx context.Context) ApiStackPackListRequest { return ApiStackPackListRequest{ @@ -640,7 +643,8 @@ func (a *StackpackApiService) StackPackList(ctx context.Context) ApiStackPackLis } // Execute executes the request -// @return []FullStackPack +// +// @return []FullStackPack func (a *StackpackApiService) StackPackListExecute(r ApiStackPackListRequest) ([]FullStackPack, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -795,8 +799,8 @@ StackPackUpload StackPack API upload a StackPack - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStackPackUploadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStackPackUploadRequest */ func (a *StackpackApiService) StackPackUpload(ctx context.Context) ApiStackPackUploadRequest { return ApiStackPackUploadRequest{ @@ -806,7 +810,8 @@ func (a *StackpackApiService) StackPackUpload(ctx context.Context) ApiStackPackU } // Execute executes the request -// @return StackPack +// +// @return StackPack func (a *StackpackApiService) StackPackUploadExecute(r ApiStackPackUploadRequest) (*StackPack, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -979,9 +984,9 @@ UpgradeStackPack Upgrade API Upgrade stackpack - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stackPackName - @return ApiUpgradeStackPackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stackPackName + @return ApiUpgradeStackPackRequest */ func (a *StackpackApiService) UpgradeStackPack(ctx context.Context, stackPackName string) ApiUpgradeStackPackRequest { return ApiUpgradeStackPackRequest{ @@ -992,7 +997,8 @@ func (a *StackpackApiService) UpgradeStackPack(ctx context.Context, stackPackNam } // Execute executes the request -// @return string +// +// @return string func (a *StackpackApiService) UpgradeStackPackExecute(r ApiUpgradeStackPackRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_subject.go b/generated/stackstate_api/api_subject.go index 51ef9e8c..bba67ad4 100644 --- a/generated/stackstate_api/api_subject.go +++ b/generated/stackstate_api/api_subject.go @@ -110,9 +110,9 @@ CreateSubject Create a subject Create a new security subject - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subject - @return ApiCreateSubjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subject + @return ApiCreateSubjectRequest */ func (a *SubjectApiService) CreateSubject(ctx context.Context, subject string) ApiCreateSubjectRequest { return ApiCreateSubjectRequest{ @@ -271,9 +271,9 @@ DeleteSubject Delete a subject Remove a security subject - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subject - @return ApiDeleteSubjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subject + @return ApiDeleteSubjectRequest */ func (a *SubjectApiService) DeleteSubject(ctx context.Context, subject string) ApiDeleteSubjectRequest { return ApiDeleteSubjectRequest{ @@ -424,9 +424,9 @@ GetSubject Get subject Describe a subject - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subject - @return ApiGetSubjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subject + @return ApiGetSubjectRequest */ func (a *SubjectApiService) GetSubject(ctx context.Context, subject string) ApiGetSubjectRequest { return ApiGetSubjectRequest{ @@ -437,7 +437,8 @@ func (a *SubjectApiService) GetSubject(ctx context.Context, subject string) ApiG } // Execute executes the request -// @return SubjectConfig +// +// @return SubjectConfig func (a *SubjectApiService) GetSubjectExecute(r ApiGetSubjectRequest) (*SubjectConfig, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -587,8 +588,8 @@ ListSubjects List subjects List all subjects and their scopes - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListSubjectsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListSubjectsRequest */ func (a *SubjectApiService) ListSubjects(ctx context.Context) ApiListSubjectsRequest { return ApiListSubjectsRequest{ @@ -598,7 +599,8 @@ func (a *SubjectApiService) ListSubjects(ctx context.Context) ApiListSubjectsReq } // Execute executes the request -// @return []SubjectConfig +// +// @return []SubjectConfig func (a *SubjectApiService) ListSubjectsExecute(r ApiListSubjectsRequest) ([]SubjectConfig, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_subscription.go b/generated/stackstate_api/api_subscription.go index a8e8ba97..819d45b6 100644 --- a/generated/stackstate_api/api_subscription.go +++ b/generated/stackstate_api/api_subscription.go @@ -67,8 +67,8 @@ GetSubscription Get subscription info Get the state of the StackState license - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSubscriptionRequest */ func (a *SubscriptionApiService) GetSubscription(ctx context.Context) ApiGetSubscriptionRequest { return ApiGetSubscriptionRequest{ @@ -78,7 +78,8 @@ func (a *SubscriptionApiService) GetSubscription(ctx context.Context) ApiGetSubs } // Execute executes the request -// @return SubscriptionState +// +// @return SubscriptionState func (a *SubscriptionApiService) GetSubscriptionExecute(r ApiGetSubscriptionRequest) (*SubscriptionState, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -224,8 +225,8 @@ PostSubscription Submit a new license to update the subscription Update the StackState license - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostSubscriptionRequest */ func (a *SubscriptionApiService) PostSubscription(ctx context.Context) ApiPostSubscriptionRequest { return ApiPostSubscriptionRequest{ @@ -235,7 +236,8 @@ func (a *SubscriptionApiService) PostSubscription(ctx context.Context) ApiPostSu } // Execute executes the request -// @return SubscriptionState +// +// @return SubscriptionState func (a *SubscriptionApiService) PostSubscriptionExecute(r ApiPostSubscriptionRequest) (*SubscriptionState, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_system_notifications.go b/generated/stackstate_api/api_system_notifications.go index ff0f7f69..94952d92 100644 --- a/generated/stackstate_api/api_system_notifications.go +++ b/generated/stackstate_api/api_system_notifications.go @@ -53,8 +53,8 @@ AllSystemNotifications Overview of system notifications All active system notifications - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAllSystemNotificationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAllSystemNotificationsRequest */ func (a *SystemNotificationsApiService) AllSystemNotifications(ctx context.Context) ApiAllSystemNotificationsRequest { return ApiAllSystemNotificationsRequest{ @@ -64,7 +64,8 @@ func (a *SystemNotificationsApiService) AllSystemNotifications(ctx context.Conte } // Execute executes the request -// @return SystemNotifications +// +// @return SystemNotifications func (a *SystemNotificationsApiService) AllSystemNotificationsExecute(r ApiAllSystemNotificationsRequest) (*SystemNotifications, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_timeline.go b/generated/stackstate_api/api_timeline.go index ecc86919..1360349c 100644 --- a/generated/stackstate_api/api_timeline.go +++ b/generated/stackstate_api/api_timeline.go @@ -60,8 +60,8 @@ GetTimelineSummary Timeline summary Event summary and aggregated health changes for a topology over a range of time - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetTimelineSummaryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTimelineSummaryRequest */ func (a *TimelineApiService) GetTimelineSummary(ctx context.Context) ApiGetTimelineSummaryRequest { return ApiGetTimelineSummaryRequest{ @@ -71,7 +71,8 @@ func (a *TimelineApiService) GetTimelineSummary(ctx context.Context) ApiGetTimel } // Execute executes the request -// @return TimelineSummary +// +// @return TimelineSummary func (a *TimelineApiService) GetTimelineSummaryExecute(r ApiGetTimelineSummaryRequest) (*TimelineSummary, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/api_topic.go b/generated/stackstate_api/api_topic.go index e7090aa9..d634a5c8 100644 --- a/generated/stackstate_api/api_topic.go +++ b/generated/stackstate_api/api_topic.go @@ -88,9 +88,9 @@ Describe Describe a topic List Kafka messages on the topic of choice - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param topic - @return ApiDescribeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param topic + @return ApiDescribeRequest */ func (a *TopicApiService) Describe(ctx context.Context, topic string) ApiDescribeRequest { return ApiDescribeRequest{ @@ -101,7 +101,8 @@ func (a *TopicApiService) Describe(ctx context.Context, topic string) ApiDescrib } // Execute executes the request -// @return Messages +// +// @return Messages func (a *TopicApiService) DescribeExecute(r ApiDescribeRequest) (*Messages, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -270,8 +271,8 @@ List List topics List all Kafka topics available in StackState - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRequest */ func (a *TopicApiService) List(ctx context.Context) ApiListRequest { return ApiListRequest{ @@ -281,7 +282,8 @@ func (a *TopicApiService) List(ctx context.Context) ApiListRequest { } // Execute executes the request -// @return []Topic +// +// @return []Topic func (a *TopicApiService) ListExecute(r ApiListRequest) ([]Topic, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_topology_synchronization.go b/generated/stackstate_api/api_topology_synchronization.go index 90b8fad2..2083fabc 100644 --- a/generated/stackstate_api/api_topology_synchronization.go +++ b/generated/stackstate_api/api_topology_synchronization.go @@ -92,8 +92,8 @@ GetTopologySynchronizationStreamById Overview of a specific Topology Stream, que Overview of a specific Topology Stream, queried by node id or sync identifier - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetTopologySynchronizationStreamByIdRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTopologySynchronizationStreamByIdRequest */ func (a *TopologySynchronizationApiService) GetTopologySynchronizationStreamById(ctx context.Context) ApiGetTopologySynchronizationStreamByIdRequest { return ApiGetTopologySynchronizationStreamByIdRequest{ @@ -103,7 +103,8 @@ func (a *TopologySynchronizationApiService) GetTopologySynchronizationStreamById } // Execute executes the request -// @return TopologyStreamListItemWithErrorDetails +// +// @return TopologyStreamListItemWithErrorDetails func (a *TopologySynchronizationApiService) GetTopologySynchronizationStreamByIdExecute(r ApiGetTopologySynchronizationStreamByIdRequest) (*TopologyStreamListItemWithErrorDetails, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -260,8 +261,8 @@ GetTopologySynchronizationStreams Overview of the topology synchronization strea Overview of the topology synchronization streams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetTopologySynchronizationStreamsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTopologySynchronizationStreamsRequest */ func (a *TopologySynchronizationApiService) GetTopologySynchronizationStreams(ctx context.Context) ApiGetTopologySynchronizationStreamsRequest { return ApiGetTopologySynchronizationStreamsRequest{ @@ -271,7 +272,8 @@ func (a *TopologySynchronizationApiService) GetTopologySynchronizationStreams(ct } // Execute executes the request -// @return TopologyStreamList +// +// @return TopologyStreamList func (a *TopologySynchronizationApiService) GetTopologySynchronizationStreamsExecute(r ApiGetTopologySynchronizationStreamsRequest) (*TopologyStreamList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -413,8 +415,8 @@ PostTopologySynchronizationStreamClearErrors Clear all the errors related to a s Clear all the errors related to a specific sync - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostTopologySynchronizationStreamClearErrorsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostTopologySynchronizationStreamClearErrorsRequest */ func (a *TopologySynchronizationApiService) PostTopologySynchronizationStreamClearErrors(ctx context.Context) ApiPostTopologySynchronizationStreamClearErrorsRequest { return ApiPostTopologySynchronizationStreamClearErrorsRequest{ diff --git a/generated/stackstate_api/api_traces.go b/generated/stackstate_api/api_traces.go index 5896c162..4d246e23 100644 --- a/generated/stackstate_api/api_traces.go +++ b/generated/stackstate_api/api_traces.go @@ -159,10 +159,10 @@ GetSpan Get a span Get a single span for a trace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param traceId The id of the trace - @param spanId The id of the span - @return ApiGetSpanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param traceId The id of the trace + @param spanId The id of the span + @return ApiGetSpanRequest */ func (a *TracesApiService) GetSpan(ctx context.Context, traceId string, spanId string) ApiGetSpanRequest { return ApiGetSpanRequest{ @@ -174,7 +174,8 @@ func (a *TracesApiService) GetSpan(ctx context.Context, traceId string, spanId s } // Execute executes the request -// @return SpanResponse +// +// @return SpanResponse func (a *TracesApiService) GetSpanExecute(r ApiGetSpanRequest) (*SpanResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -326,9 +327,9 @@ GetTrace Fetch a trace Get a full trace by id only - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param traceId The id of the trace - @return ApiGetTraceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param traceId The id of the trace + @return ApiGetTraceRequest */ func (a *TracesApiService) GetTrace(ctx context.Context, traceId string) ApiGetTraceRequest { return ApiGetTraceRequest{ @@ -339,7 +340,8 @@ func (a *TracesApiService) GetTrace(ctx context.Context, traceId string) ApiGetT } // Execute executes the request -// @return Trace +// +// @return Trace func (a *TracesApiService) GetTraceExecute(r ApiGetTraceRequest) (*Trace, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -517,8 +519,8 @@ QueryDuration Query duration distribution Query for durations using filters. Filters that accept an array of values match if any of the values match (think of a SQL IN expression). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiQueryDurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiQueryDurationRequest */ func (a *TracesApiService) QueryDuration(ctx context.Context) ApiQueryDurationRequest { return ApiQueryDurationRequest{ @@ -528,7 +530,8 @@ func (a *TracesApiService) QueryDuration(ctx context.Context) ApiQueryDurationRe } // Execute executes the request -// @return DurationHistogram +// +// @return DurationHistogram func (a *TracesApiService) QueryDurationExecute(r ApiQueryDurationRequest) (*DurationHistogram, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -729,8 +732,8 @@ QueryTraces Query for traces Query for traces using filters. Filters that accept an array of values match if any of the values match (think of a SQL IN expression). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiQueryTracesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiQueryTracesRequest */ func (a *TracesApiService) QueryTraces(ctx context.Context) ApiQueryTracesRequest { return ApiQueryTracesRequest{ @@ -740,7 +743,8 @@ func (a *TracesApiService) QueryTraces(ctx context.Context) ApiQueryTracesReques } // Execute executes the request -// @return TraceQueryResponse +// +// @return TraceQueryResponse func (a *TracesApiService) QueryTracesExecute(r ApiQueryTracesRequest) (*TraceQueryResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -915,8 +919,8 @@ SpanComponents Fetch components based on resource attributes Based on the resource attributes on a span, retrieve components that have a TraceBinding for it. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpanComponentsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSpanComponentsRequest */ func (a *TracesApiService) SpanComponents(ctx context.Context) ApiSpanComponentsRequest { return ApiSpanComponentsRequest{ @@ -926,7 +930,8 @@ func (a *TracesApiService) SpanComponents(ctx context.Context) ApiSpanComponents } // Execute executes the request -// @return SpanComponents +// +// @return SpanComponents func (a *TracesApiService) SpanComponentsExecute(r ApiSpanComponentsRequest) (*SpanComponents, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1077,8 +1082,8 @@ SuggestionsAttributeName Suggestions for attribute names Suggestions for attribute names, both resource and span attributes. Attributes match when their name contains the provided part, at most 100 suggestions will be returned. Make the part longer to get more accurate suggestions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSuggestionsAttributeNameRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSuggestionsAttributeNameRequest */ func (a *TracesApiService) SuggestionsAttributeName(ctx context.Context) ApiSuggestionsAttributeNameRequest { return ApiSuggestionsAttributeNameRequest{ @@ -1088,7 +1093,8 @@ func (a *TracesApiService) SuggestionsAttributeName(ctx context.Context) ApiSugg } // Execute executes the request -// @return Suggestions +// +// @return Suggestions func (a *TracesApiService) SuggestionsAttributeNameExecute(r ApiSuggestionsAttributeNameRequest) (*Suggestions, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1238,9 +1244,9 @@ SuggestionsAttributeValue Suggestions for attribute values Suggestions for attribute values, both resource and span attributes. Attribute values match when the value contains the provided part, at most 100 suggestions will be returned. Make the part longer to get more accurate suggestions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param attributeName Get suggestions for this attribute - @return ApiSuggestionsAttributeValueRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param attributeName Get suggestions for this attribute + @return ApiSuggestionsAttributeValueRequest */ func (a *TracesApiService) SuggestionsAttributeValue(ctx context.Context, attributeName string) ApiSuggestionsAttributeValueRequest { return ApiSuggestionsAttributeValueRequest{ @@ -1251,7 +1257,8 @@ func (a *TracesApiService) SuggestionsAttributeValue(ctx context.Context, attrib } // Execute executes the request -// @return Suggestions +// +// @return Suggestions func (a *TracesApiService) SuggestionsAttributeValueExecute(r ApiSuggestionsAttributeValueRequest) (*Suggestions, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1402,9 +1409,9 @@ SuggestionsFieldValues Suggestions for span fields Suggestions for values of of the span fields that can be filtered on except resource and span attributes. Values match when they contain the provided part, at most 100 suggestions will be returned. Make the part longer to get more accurate suggestions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param field Get suggestions for this field - @return ApiSuggestionsFieldValuesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param field Get suggestions for this field + @return ApiSuggestionsFieldValuesRequest */ func (a *TracesApiService) SuggestionsFieldValues(ctx context.Context, field SpanSuggestionField) ApiSuggestionsFieldValuesRequest { return ApiSuggestionsFieldValuesRequest{ @@ -1415,7 +1422,8 @@ func (a *TracesApiService) SuggestionsFieldValues(ctx context.Context, field Spa } // Execute executes the request -// @return Suggestions +// +// @return Suggestions func (a *TracesApiService) SuggestionsFieldValuesExecute(r ApiSuggestionsFieldValuesRequest) (*Suggestions, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/generated/stackstate_api/api_user_authorization.go b/generated/stackstate_api/api_user_authorization.go index 2fd57727..48ef3291 100644 --- a/generated/stackstate_api/api_user_authorization.go +++ b/generated/stackstate_api/api_user_authorization.go @@ -64,8 +64,8 @@ GetUserAuthorizationFor Is the current user authorized for the provided permissi Is the current user authorized for the provided permission and resource - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUserAuthorizationForRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetUserAuthorizationForRequest */ func (a *UserAuthorizationApiService) GetUserAuthorizationFor(ctx context.Context) ApiGetUserAuthorizationForRequest { return ApiGetUserAuthorizationForRequest{ diff --git a/generated/stackstate_api/api_user_profile.go b/generated/stackstate_api/api_user_profile.go index 821c7f87..215eaeff 100644 --- a/generated/stackstate_api/api_user_profile.go +++ b/generated/stackstate_api/api_user_profile.go @@ -67,8 +67,8 @@ GetCurrentUserProfile Get current user profile Get current user profile. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetCurrentUserProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCurrentUserProfileRequest */ func (a *UserProfileApiService) GetCurrentUserProfile(ctx context.Context) ApiGetCurrentUserProfileRequest { return ApiGetCurrentUserProfileRequest{ @@ -78,7 +78,8 @@ func (a *UserProfileApiService) GetCurrentUserProfile(ctx context.Context) ApiGe } // Execute executes the request -// @return UserProfile +// +// @return UserProfile func (a *UserProfileApiService) GetCurrentUserProfileExecute(r ApiGetCurrentUserProfileRequest) (*UserProfile, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -233,8 +234,8 @@ SaveCurrentUserProfile Save current user profile Save current user profile. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSaveCurrentUserProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSaveCurrentUserProfileRequest */ func (a *UserProfileApiService) SaveCurrentUserProfile(ctx context.Context) ApiSaveCurrentUserProfileRequest { return ApiSaveCurrentUserProfileRequest{ @@ -244,7 +245,8 @@ func (a *UserProfileApiService) SaveCurrentUserProfile(ctx context.Context) ApiS } // Execute executes the request -// @return UserProfile +// +// @return UserProfile func (a *UserProfileApiService) SaveCurrentUserProfileExecute(r ApiSaveCurrentUserProfileRequest) (*UserProfile, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/generated/stackstate_api/api_user_session.go b/generated/stackstate_api/api_user_session.go index 7ddae07c..0cd86674 100644 --- a/generated/stackstate_api/api_user_session.go +++ b/generated/stackstate_api/api_user_session.go @@ -81,8 +81,8 @@ GetUserSessionAssumedRole Get the assumed a role for the current session Get the assumed a role for the current session. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUserSessionAssumedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetUserSessionAssumedRoleRequest */ func (a *UserSessionApiService) GetUserSessionAssumedRole(ctx context.Context) ApiGetUserSessionAssumedRoleRequest { return ApiGetUserSessionAssumedRoleRequest{ @@ -92,7 +92,8 @@ func (a *UserSessionApiService) GetUserSessionAssumedRole(ctx context.Context) A } // Execute executes the request -// @return Role +// +// @return Role func (a *UserSessionApiService) GetUserSessionAssumedRoleExecute(r ApiGetUserSessionAssumedRoleRequest) (*Role, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -231,8 +232,8 @@ GetUserSessionAvailableRoles Get a list of available roles for this session Get a list of available roles for this session. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUserSessionAvailableRolesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetUserSessionAvailableRolesRequest */ func (a *UserSessionApiService) GetUserSessionAvailableRoles(ctx context.Context) ApiGetUserSessionAvailableRolesRequest { return ApiGetUserSessionAvailableRolesRequest{ @@ -242,7 +243,8 @@ func (a *UserSessionApiService) GetUserSessionAvailableRoles(ctx context.Context } // Execute executes the request -// @return Roles +// +// @return Roles func (a *UserSessionApiService) GetUserSessionAvailableRolesExecute(r ApiGetUserSessionAvailableRolesRequest) (*Roles, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -387,8 +389,8 @@ SaveUserSessionAssumedRole Set the assumed role for the current session Set the assumed role for the current session. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSaveUserSessionAssumedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSaveUserSessionAssumedRoleRequest */ func (a *UserSessionApiService) SaveUserSessionAssumedRole(ctx context.Context) ApiSaveUserSessionAssumedRoleRequest { return ApiSaveUserSessionAssumedRoleRequest{ @@ -398,7 +400,8 @@ func (a *UserSessionApiService) SaveUserSessionAssumedRole(ctx context.Context) } // Execute executes the request -// @return Role +// +// @return Role func (a *UserSessionApiService) SaveUserSessionAssumedRoleExecute(r ApiSaveUserSessionAssumedRoleRequest) (*Role, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut