From f0961f4d140125e532fb61f879801630f93a30e0 Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Thu, 2 Jul 2026 10:48:11 +0200 Subject: [PATCH] STAC-24925: sync openapi models --- .../stackstate_api/.openapi-generator/FILES | 8 + generated/stackstate_api/README.md | 4 + generated/stackstate_api/api/openapi.yaml | 275 ++++++++++++--- .../docs/ComponentPresentationLink.md | 182 ++++++++++ .../docs/ErrorComponentPresentationLink.md | 114 +++++++ .../stackstate_api/docs/FullComponent.md | 23 +- generated/stackstate_api/docs/MonitorApi.md | 4 +- .../docs/MonitorFunctionTest.md | 23 +- .../stackstate_api/docs/MonitorPreview.md | 26 ++ .../docs/PresentationHighlight.md | 26 ++ .../stackstate_api/docs/PresentationLink.md | 192 +++++++++++ .../docs/ResolvedComponentPresentationLink.md | 161 +++++++++ .../model_component_presentation_link.go | 140 ++++++++ ...model_error_component_presentation_link.go | 197 +++++++++++ .../stackstate_api/model_full_component.go | 48 ++- .../model_monitor_function_test_.go | 33 +- .../stackstate_api/model_monitor_preview.go | 38 ++- .../model_presentation_highlight.go | 38 ++- .../stackstate_api/model_presentation_link.go | 313 ++++++++++++++++++ ...el_resolved_component_presentation_link.go | 264 +++++++++++++++ stackstate_openapi/openapi_version | 2 +- 21 files changed, 2046 insertions(+), 65 deletions(-) create mode 100644 generated/stackstate_api/docs/ComponentPresentationLink.md create mode 100644 generated/stackstate_api/docs/ErrorComponentPresentationLink.md create mode 100644 generated/stackstate_api/docs/PresentationLink.md create mode 100644 generated/stackstate_api/docs/ResolvedComponentPresentationLink.md create mode 100644 generated/stackstate_api/model_component_presentation_link.go create mode 100644 generated/stackstate_api/model_error_component_presentation_link.go create mode 100644 generated/stackstate_api/model_presentation_link.go create mode 100644 generated/stackstate_api/model_resolved_component_presentation_link.go diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index 43c86d9f..7b7dd9e7 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -119,6 +119,7 @@ docs/ComponentPresentationApi.md docs/ComponentPresentationApiError.md docs/ComponentPresentationFilter.md docs/ComponentPresentationFilterDefinition.md +docs/ComponentPresentationLink.md docs/ComponentPresentationMetric.md docs/ComponentPresentationQueryBinding.md docs/ComponentPresentationRank.md @@ -162,6 +163,7 @@ docs/EmailChannelWriteSchema.md docs/EmailNotificationChannel.md docs/EmailNotificationChannelAllOf.md docs/EmailNotificationStatus.md +docs/ErrorComponentPresentationLink.md docs/ErrorField.md docs/ErrorFieldAllOf.md docs/EventApi.md @@ -460,6 +462,7 @@ docs/PresentationHighlightEvents.md docs/PresentationHighlightField.md docs/PresentationHighlightMetricsSection.md docs/PresentationHighlightProvisioning.md +docs/PresentationLink.md docs/PresentationMainMenu.md docs/PresentationMetricPerspective.md docs/PresentationMetricPerspectiveSection.md @@ -516,6 +519,7 @@ docs/RelationData.md docs/ReleaseStatus.md docs/RequestError.md docs/RequestValidationError.md +docs/ResolvedComponentPresentationLink.md docs/Role.md docs/RoleNotAvailableError.md docs/Roles.md @@ -725,6 +729,7 @@ model_component_presentation.go model_component_presentation_api_error.go model_component_presentation_filter.go model_component_presentation_filter_definition.go +model_component_presentation_link.go model_component_presentation_metric.go model_component_presentation_query_binding.go model_component_presentation_rank.go @@ -766,6 +771,7 @@ model_email_channel_write_schema.go model_email_notification_channel.go model_email_notification_channel_all_of.go model_email_notification_status.go +model_error_component_presentation_link.go model_error_field.go model_error_field_all_of.go model_event_bucket.go @@ -1048,6 +1054,7 @@ model_presentation_highlight_events.go model_presentation_highlight_field.go model_presentation_highlight_metrics_section.go model_presentation_highlight_provisioning.go +model_presentation_link.go model_presentation_main_menu.go model_presentation_metric_perspective.go model_presentation_metric_perspective_section.go @@ -1102,6 +1109,7 @@ model_relation_data.go model_release_status.go model_request_error.go model_request_validation_error.go +model_resolved_component_presentation_link.go model_role.go model_role_not_available_error.go model_roles.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index 6da8785e..df60a585 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -336,6 +336,7 @@ Class | Method | HTTP request | Description - [ComponentPresentationApiError](docs/ComponentPresentationApiError.md) - [ComponentPresentationFilter](docs/ComponentPresentationFilter.md) - [ComponentPresentationFilterDefinition](docs/ComponentPresentationFilterDefinition.md) + - [ComponentPresentationLink](docs/ComponentPresentationLink.md) - [ComponentPresentationMetric](docs/ComponentPresentationMetric.md) - [ComponentPresentationQueryBinding](docs/ComponentPresentationQueryBinding.md) - [ComponentPresentationRank](docs/ComponentPresentationRank.md) @@ -377,6 +378,7 @@ Class | Method | HTTP request | Description - [EmailNotificationChannel](docs/EmailNotificationChannel.md) - [EmailNotificationChannelAllOf](docs/EmailNotificationChannelAllOf.md) - [EmailNotificationStatus](docs/EmailNotificationStatus.md) + - [ErrorComponentPresentationLink](docs/ErrorComponentPresentationLink.md) - [ErrorField](docs/ErrorField.md) - [ErrorFieldAllOf](docs/ErrorFieldAllOf.md) - [EventBucket](docs/EventBucket.md) @@ -659,6 +661,7 @@ Class | Method | HTTP request | Description - [PresentationHighlightField](docs/PresentationHighlightField.md) - [PresentationHighlightMetricsSection](docs/PresentationHighlightMetricsSection.md) - [PresentationHighlightProvisioning](docs/PresentationHighlightProvisioning.md) + - [PresentationLink](docs/PresentationLink.md) - [PresentationMainMenu](docs/PresentationMainMenu.md) - [PresentationMetricPerspective](docs/PresentationMetricPerspective.md) - [PresentationMetricPerspectiveSection](docs/PresentationMetricPerspectiveSection.md) @@ -713,6 +716,7 @@ Class | Method | HTTP request | Description - [ReleaseStatus](docs/ReleaseStatus.md) - [RequestError](docs/RequestError.md) - [RequestValidationError](docs/RequestValidationError.md) + - [ResolvedComponentPresentationLink](docs/ResolvedComponentPresentationLink.md) - [Role](docs/Role.md) - [RoleNotAvailableError](docs/RoleNotAvailableError.md) - [Roles](docs/Roles.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index a4c309a4..8e25ac2d 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -8744,11 +8744,14 @@ components: arguments: - null - null + intervalSeconds: 0 properties: arguments: items: $ref: '#/components/schemas/Argument' type: array + intervalSeconds: + type: integer type: object MonitorPreviewResult: example: @@ -9259,13 +9262,17 @@ components: arguments: - null - null + intervalSeconds: 0 properties: arguments: items: $ref: '#/components/schemas/Argument' type: array + intervalSeconds: + type: integer required: - arguments + - intervalSeconds type: object MonitorFunctionNotFoundError: properties: @@ -14562,6 +14569,9 @@ components: showConfiguration: true externalId: externalId showStatus: true + links: + - null + - null fields: - null - null @@ -14605,6 +14615,12 @@ components: items: $ref: '#/components/schemas/RelatedResource' type: array + links: + description: Resolved presentation links in display order. Backend populates + from matching presentation definitions. + items: + $ref: '#/components/schemas/ComponentPresentationLink' + type: array events: $ref: '#/components/schemas/ComponentEvents' data: @@ -14628,6 +14644,7 @@ components: - data - fields - highlightMetrics + - links - metricPerspective - relatedResources - summary @@ -14801,6 +14818,63 @@ components: - stql - title type: object + ComponentPresentationLink: + description: A resolved link definition returned in the FullComponent response. + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/ResolvedComponentPresentationLink' + - $ref: '#/components/schemas/ErrorComponentPresentationLink' + ResolvedComponentPresentationLink: + properties: + _type: + enum: + - ResolvedPresentationComponentLink + type: string + linkId: + description: Identity key for this link. + type: string + title: + description: Displayed link title. + type: string + target: + description: Relative or fully-qualified link target. + type: string + openInNewTab: + description: Whether the link opens in a new tab. + type: boolean + tooltip: + description: Optional tooltip text. + type: string + required: + - _type + - linkId + - openInNewTab + - target + - title + type: object + ErrorComponentPresentationLink: + properties: + _type: + enum: + - ErrorPresentationComponentLink + type: string + linkId: + description: Identity key for this link. + type: string + title: + description: "Displayed link title, or the link identity when the title\ + \ could not be resolved." + type: string + message: + description: Reason why the link could not be resolved. + type: string + required: + - _type + - linkId + - message + - title + type: object ComponentEvents: example: relatedResourcesQuery: relatedResourcesQuery @@ -15623,6 +15697,9 @@ components: showConfiguration: true externalId: externalId showStatus: true + links: + - null + - null fields: - null - null @@ -15808,6 +15885,9 @@ components: showConfiguration: true externalId: externalId showStatus: true + links: + - null + - null fields: - null - null @@ -17534,19 +17614,19 @@ components: summary: metrics: - unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 - unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 overview: fixedColumns: 1 mainMenu: @@ -17574,6 +17654,21 @@ components: topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true + links: + - filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 + - filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 metrics: - description: description sectionId: sectionId @@ -17582,7 +17677,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 - description: description sectionId: sectionId metrics: @@ -17590,7 +17685,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 title: title fields: - description: description @@ -17628,14 +17723,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 - tabId: tabId title: title sections: @@ -17644,14 +17739,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 topology: neighboringComponents: true autoGrouping: true @@ -17660,7 +17755,7 @@ components: groupedByLayers: true connectedComponents: true groupingEnabled: true - minimumGroupSize: 4 + minimumGroupSize: 7 groupedByDomains: true icon: icon filters: @@ -20133,19 +20228,19 @@ components: summary: metrics: - unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 - unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 overview: fixedColumns: 1 mainMenu: @@ -20173,6 +20268,21 @@ components: topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true + links: + - filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 + - filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 metrics: - description: description sectionId: sectionId @@ -20181,7 +20291,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 - description: description sectionId: sectionId metrics: @@ -20189,7 +20299,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 title: title fields: - description: description @@ -20227,14 +20337,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 - tabId: tabId title: title sections: @@ -20243,14 +20353,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 topology: neighboringComponents: true autoGrouping: true @@ -20259,7 +20369,7 @@ components: groupedByLayers: true connectedComponents: true groupingEnabled: true - minimumGroupSize: 4 + minimumGroupSize: 7 groupedByDomains: true icon: icon filters: @@ -20573,12 +20683,28 @@ components: description: "Highlight presentation definition. The `fields` define the fields\ \ to show in the highlight page.\nIf multiple ComponentPresentations match,\ \ fields are merged by `fieldId` according to binding rank.\nRelated resources\ - \ follow the same merge semantics using `resourceId` as the identity key.\n" + \ follow the same merge semantics using `resourceId` as the identity key.\n\ + Links follow the same merge semantics using `linkId` as the identity key.\n" example: provisioning: topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true + links: + - filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 + - filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 metrics: - description: description sectionId: sectionId @@ -20587,7 +20713,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 - description: description sectionId: sectionId metrics: @@ -20595,7 +20721,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 title: title fields: - description: description @@ -20636,6 +20762,10 @@ components: items: $ref: '#/components/schemas/PresentationRelatedResource' type: array + links: + items: + $ref: '#/components/schemas/PresentationLink' + type: array events: $ref: '#/components/schemas/PresentationHighlightEvents' metrics: @@ -20769,6 +20899,57 @@ components: - resourceId - title type: object + PresentationLink: + description: "Link definition for the highlight page. Each entry defines a navigation\ + \ link shown for a component.\nMerge semantics follow related resource rules:\n\ + - All presentations whose binding matches the component contribute links.\n\ + - Same linkId with higher specificity wins (override).\n- Different linkId\ + \ entries are appended.\n- Display order is determined by the order field.\n\ + CEL expressions are evaluated against the component presentation context.\ + \ The filter is evaluated first;\nif it evaluates to false the link is omitted.\ + \ If the filter includes the link but required data cannot be\nevaluated,\ + \ the resolved highlight response reports an error link.\n" + example: + filter: filter + linkId: linkId + tooltip: tooltip + title: title + openInNewTab: false + target: target + order: 2.3021358869347655 + properties: + linkId: + description: "Stable identity key for merging across presentations, analogous\ + \ to fieldId and resourceId." + type: string + title: + description: CEL expression that returns the displayed link title. + type: string + target: + description: CEL expression that returns a relative or fully-qualified link + target. + type: string + openInNewTab: + default: false + description: Whether the link opens in a new tab. Defaults to false. + type: boolean + tooltip: + description: Optional CEL expression that returns tooltip text. + type: string + filter: + description: Optional CEL boolean expression deciding whether the link is + shown. Missing filters default to true. + type: string + order: + description: Display order. Higher value means it shows first in UI. + format: double + type: number + required: + - linkId + - order + - target + - title + type: object PresentationHighlightEvents: example: excludedRelatedResourcesQuery: excludedRelatedResourcesQuery @@ -20793,7 +20974,7 @@ components: - null title: title defaultExpanded: true - order: 2.3021358869347655 + order: 7.061401241503109 properties: sectionId: type: string @@ -20851,19 +21032,19 @@ components: example: metrics: - unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 - unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 properties: metrics: items: @@ -20873,12 +21054,12 @@ components: PresentationSummaryMetric: example: unit: unit - decimalPlaces: 9 + decimalPlaces: 3 metricId: metricId query: query summaryMetricId: summaryMetricId name: name - order: 7.061401241503109 + order: 9.301444243932576 properties: summaryMetricId: type: string @@ -20976,14 +21157,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 - tabId: tabId title: title sections: @@ -20992,14 +21173,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 properties: tabs: items: @@ -21018,14 +21199,14 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 - sectionId: sectionId metrics: - null - null title: title - order: 2.027123023002322 - order: 3.616076749251911 + order: 4.145608029883936 + order: 2.027123023002322 properties: tabId: type: string @@ -21050,7 +21231,7 @@ components: - null - null title: title - order: 2.027123023002322 + order: 4.145608029883936 properties: sectionId: type: string @@ -21081,7 +21262,7 @@ components: groupedByLayers: true connectedComponents: true groupingEnabled: true - minimumGroupSize: 4 + minimumGroupSize: 7 groupedByDomains: true properties: groupingEnabled: diff --git a/generated/stackstate_api/docs/ComponentPresentationLink.md b/generated/stackstate_api/docs/ComponentPresentationLink.md new file mode 100644 index 00000000..a8a576d6 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentPresentationLink.md @@ -0,0 +1,182 @@ +# ComponentPresentationLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**LinkId** | **string** | Identity key for this link. | +**Title** | **string** | Displayed link title, or the link identity when the title could not be resolved. | +**Target** | **string** | Relative or fully-qualified link target. | +**OpenInNewTab** | **bool** | Whether the link opens in a new tab. | +**Tooltip** | Pointer to **string** | Optional tooltip text. | [optional] +**Message** | **string** | Reason why the link could not be resolved. | + +## Methods + +### NewComponentPresentationLink + +`func NewComponentPresentationLink(type_ string, linkId string, title string, target string, openInNewTab bool, message string, ) *ComponentPresentationLink` + +NewComponentPresentationLink instantiates a new ComponentPresentationLink object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentPresentationLinkWithDefaults + +`func NewComponentPresentationLinkWithDefaults() *ComponentPresentationLink` + +NewComponentPresentationLinkWithDefaults instantiates a new ComponentPresentationLink object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ComponentPresentationLink) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentPresentationLink) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentPresentationLink) SetType(v string)` + +SetType sets Type field to given value. + + +### GetLinkId + +`func (o *ComponentPresentationLink) GetLinkId() string` + +GetLinkId returns the LinkId field if non-nil, zero value otherwise. + +### GetLinkIdOk + +`func (o *ComponentPresentationLink) GetLinkIdOk() (*string, bool)` + +GetLinkIdOk returns a tuple with the LinkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkId + +`func (o *ComponentPresentationLink) SetLinkId(v string)` + +SetLinkId sets LinkId field to given value. + + +### GetTitle + +`func (o *ComponentPresentationLink) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ComponentPresentationLink) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ComponentPresentationLink) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetTarget + +`func (o *ComponentPresentationLink) GetTarget() string` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *ComponentPresentationLink) GetTargetOk() (*string, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *ComponentPresentationLink) SetTarget(v string)` + +SetTarget sets Target field to given value. + + +### GetOpenInNewTab + +`func (o *ComponentPresentationLink) GetOpenInNewTab() bool` + +GetOpenInNewTab returns the OpenInNewTab field if non-nil, zero value otherwise. + +### GetOpenInNewTabOk + +`func (o *ComponentPresentationLink) GetOpenInNewTabOk() (*bool, bool)` + +GetOpenInNewTabOk returns a tuple with the OpenInNewTab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenInNewTab + +`func (o *ComponentPresentationLink) SetOpenInNewTab(v bool)` + +SetOpenInNewTab sets OpenInNewTab field to given value. + + +### GetTooltip + +`func (o *ComponentPresentationLink) GetTooltip() string` + +GetTooltip returns the Tooltip field if non-nil, zero value otherwise. + +### GetTooltipOk + +`func (o *ComponentPresentationLink) GetTooltipOk() (*string, bool)` + +GetTooltipOk returns a tuple with the Tooltip field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTooltip + +`func (o *ComponentPresentationLink) SetTooltip(v string)` + +SetTooltip sets Tooltip field to given value. + +### HasTooltip + +`func (o *ComponentPresentationLink) HasTooltip() bool` + +HasTooltip returns a boolean if a field has been set. + +### GetMessage + +`func (o *ComponentPresentationLink) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComponentPresentationLink) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComponentPresentationLink) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ErrorComponentPresentationLink.md b/generated/stackstate_api/docs/ErrorComponentPresentationLink.md new file mode 100644 index 00000000..da826c1a --- /dev/null +++ b/generated/stackstate_api/docs/ErrorComponentPresentationLink.md @@ -0,0 +1,114 @@ +# ErrorComponentPresentationLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**LinkId** | **string** | Identity key for this link. | +**Title** | **string** | Displayed link title, or the link identity when the title could not be resolved. | +**Message** | **string** | Reason why the link could not be resolved. | + +## Methods + +### NewErrorComponentPresentationLink + +`func NewErrorComponentPresentationLink(type_ string, linkId string, title string, message string, ) *ErrorComponentPresentationLink` + +NewErrorComponentPresentationLink instantiates a new ErrorComponentPresentationLink object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorComponentPresentationLinkWithDefaults + +`func NewErrorComponentPresentationLinkWithDefaults() *ErrorComponentPresentationLink` + +NewErrorComponentPresentationLinkWithDefaults instantiates a new ErrorComponentPresentationLink object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ErrorComponentPresentationLink) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrorComponentPresentationLink) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrorComponentPresentationLink) SetType(v string)` + +SetType sets Type field to given value. + + +### GetLinkId + +`func (o *ErrorComponentPresentationLink) GetLinkId() string` + +GetLinkId returns the LinkId field if non-nil, zero value otherwise. + +### GetLinkIdOk + +`func (o *ErrorComponentPresentationLink) GetLinkIdOk() (*string, bool)` + +GetLinkIdOk returns a tuple with the LinkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkId + +`func (o *ErrorComponentPresentationLink) SetLinkId(v string)` + +SetLinkId sets LinkId field to given value. + + +### GetTitle + +`func (o *ErrorComponentPresentationLink) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ErrorComponentPresentationLink) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ErrorComponentPresentationLink) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetMessage + +`func (o *ErrorComponentPresentationLink) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorComponentPresentationLink) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorComponentPresentationLink) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/FullComponent.md b/generated/stackstate_api/docs/FullComponent.md index 998c434b..c502b5bf 100644 --- a/generated/stackstate_api/docs/FullComponent.md +++ b/generated/stackstate_api/docs/FullComponent.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Synced** | [**[]ExternalComponent**](ExternalComponent.md) | | **Provisioning** | Pointer to [**ComponentProvisioning**](ComponentProvisioning.md) | | [optional] **RelatedResources** | [**[]RelatedResource**](RelatedResource.md) | Resolved related resource definitions in display order. Backend populates from both legacy and new presentation definitions. | +**Links** | [**[]ComponentPresentationLink**](ComponentPresentationLink.md) | Resolved presentation links in display order. Backend populates from matching presentation definitions. | **Events** | Pointer to [**ComponentEvents**](ComponentEvents.md) | | [optional] **Data** | [**ComponentData**](ComponentData.md) | | **Highlights** | Pointer to [**LegacyComponentHighlights**](LegacyComponentHighlights.md) | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewFullComponent -`func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, data ComponentData, summary ComponentSummary, highlightMetrics []ComponentMetricSection, actions []ComponentAction, ) *FullComponent` +`func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, links []ComponentPresentationLink, data ComponentData, summary ComponentSummary, highlightMetrics []ComponentMetricSection, actions []ComponentAction, ) *FullComponent` NewFullComponent instantiates a new FullComponent object This constructor will assign default values to properties that have it defined, @@ -167,6 +168,26 @@ and a boolean to check if the value has been set. SetRelatedResources sets RelatedResources field to given value. +### GetLinks + +`func (o *FullComponent) GetLinks() []ComponentPresentationLink` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *FullComponent) GetLinksOk() (*[]ComponentPresentationLink, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *FullComponent) SetLinks(v []ComponentPresentationLink)` + +SetLinks sets Links field to given value. + + ### GetEvents `func (o *FullComponent) GetEvents() ComponentEvents` diff --git a/generated/stackstate_api/docs/MonitorApi.md b/generated/stackstate_api/docs/MonitorApi.md index e14daf87..01be82d8 100644 --- a/generated/stackstate_api/docs/MonitorApi.md +++ b/generated/stackstate_api/docs/MonitorApi.md @@ -879,7 +879,7 @@ import ( func main() { monitorFunctionIdOrUrn := "monitorFunctionIdOrUrn_example" // string | The id or identifier (urn) of a monitor function - monitorFunctionTest := *openapiclient.NewMonitorFunctionTest([]openapiclient.Argument{openapiclient.Argument{ArgumentBooleanVal: openapiclient.NewArgumentBooleanVal("Type_example", int64(123), false)}}) // MonitorFunctionTest | Monitor function arguments to test + monitorFunctionTest := *openapiclient.NewMonitorFunctionTest([]openapiclient.Argument{openapiclient.Argument{ArgumentBooleanVal: openapiclient.NewArgumentBooleanVal("Type_example", int64(123), false)}}, int32(123)) // MonitorFunctionTest | Monitor function arguments to test configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -951,7 +951,7 @@ import ( func main() { monitorFunctionIdOrUrn := "monitorFunctionIdOrUrn_example" // string | The id or identifier (urn) of a monitor function - monitorFunctionTest := *openapiclient.NewMonitorFunctionTest([]openapiclient.Argument{openapiclient.Argument{ArgumentBooleanVal: openapiclient.NewArgumentBooleanVal("Type_example", int64(123), false)}}) // MonitorFunctionTest | Monitor function arguments to test + monitorFunctionTest := *openapiclient.NewMonitorFunctionTest([]openapiclient.Argument{openapiclient.Argument{ArgumentBooleanVal: openapiclient.NewArgumentBooleanVal("Type_example", int64(123), false)}}, int32(123)) // MonitorFunctionTest | Monitor function arguments to test healthState := openapiclient.HealthStateValue("UNINITIALIZED") // HealthStateValue | Health state of check states (optional) limit := int32(56) // int32 | (optional) diff --git a/generated/stackstate_api/docs/MonitorFunctionTest.md b/generated/stackstate_api/docs/MonitorFunctionTest.md index 60ffb40a..7556c879 100644 --- a/generated/stackstate_api/docs/MonitorFunctionTest.md +++ b/generated/stackstate_api/docs/MonitorFunctionTest.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Arguments** | [**[]Argument**](Argument.md) | | +**IntervalSeconds** | **int32** | | ## Methods ### NewMonitorFunctionTest -`func NewMonitorFunctionTest(arguments []Argument, ) *MonitorFunctionTest` +`func NewMonitorFunctionTest(arguments []Argument, intervalSeconds int32, ) *MonitorFunctionTest` NewMonitorFunctionTest instantiates a new MonitorFunctionTest object This constructor will assign default values to properties that have it defined, @@ -45,6 +46,26 @@ and a boolean to check if the value has been set. SetArguments sets Arguments field to given value. +### GetIntervalSeconds + +`func (o *MonitorFunctionTest) GetIntervalSeconds() int32` + +GetIntervalSeconds returns the IntervalSeconds field if non-nil, zero value otherwise. + +### GetIntervalSecondsOk + +`func (o *MonitorFunctionTest) GetIntervalSecondsOk() (*int32, bool)` + +GetIntervalSecondsOk returns a tuple with the IntervalSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntervalSeconds + +`func (o *MonitorFunctionTest) SetIntervalSeconds(v int32)` + +SetIntervalSeconds sets IntervalSeconds field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/MonitorPreview.md b/generated/stackstate_api/docs/MonitorPreview.md index 5fed6598..1e57b4c1 100644 --- a/generated/stackstate_api/docs/MonitorPreview.md +++ b/generated/stackstate_api/docs/MonitorPreview.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Arguments** | Pointer to [**[]Argument**](Argument.md) | | [optional] +**IntervalSeconds** | Pointer to **int32** | | [optional] ## Methods @@ -50,6 +51,31 @@ SetArguments sets Arguments field to given value. HasArguments returns a boolean if a field has been set. +### GetIntervalSeconds + +`func (o *MonitorPreview) GetIntervalSeconds() int32` + +GetIntervalSeconds returns the IntervalSeconds field if non-nil, zero value otherwise. + +### GetIntervalSecondsOk + +`func (o *MonitorPreview) GetIntervalSecondsOk() (*int32, bool)` + +GetIntervalSecondsOk returns a tuple with the IntervalSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntervalSeconds + +`func (o *MonitorPreview) SetIntervalSeconds(v int32)` + +SetIntervalSeconds sets IntervalSeconds field to given value. + +### HasIntervalSeconds + +`func (o *MonitorPreview) HasIntervalSeconds() bool` + +HasIntervalSeconds returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/PresentationHighlight.md b/generated/stackstate_api/docs/PresentationHighlight.md index 09307a52..71f10046 100644 --- a/generated/stackstate_api/docs/PresentationHighlight.md +++ b/generated/stackstate_api/docs/PresentationHighlight.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Fields** | [**[]PresentationHighlightField**](PresentationHighlightField.md) | | **Provisioning** | Pointer to [**PresentationHighlightProvisioning**](PresentationHighlightProvisioning.md) | | [optional] **RelatedResources** | Pointer to [**[]PresentationRelatedResource**](PresentationRelatedResource.md) | | [optional] +**Links** | Pointer to [**[]PresentationLink**](PresentationLink.md) | | [optional] **Events** | Pointer to [**PresentationHighlightEvents**](PresentationHighlightEvents.md) | | [optional] **Metrics** | Pointer to [**[]PresentationHighlightMetricsSection**](PresentationHighlightMetricsSection.md) | | [optional] @@ -120,6 +121,31 @@ SetRelatedResources sets RelatedResources field to given value. HasRelatedResources returns a boolean if a field has been set. +### GetLinks + +`func (o *PresentationHighlight) GetLinks() []PresentationLink` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PresentationHighlight) GetLinksOk() (*[]PresentationLink, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PresentationHighlight) SetLinks(v []PresentationLink)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PresentationHighlight) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + ### GetEvents `func (o *PresentationHighlight) GetEvents() PresentationHighlightEvents` diff --git a/generated/stackstate_api/docs/PresentationLink.md b/generated/stackstate_api/docs/PresentationLink.md new file mode 100644 index 00000000..4db0176e --- /dev/null +++ b/generated/stackstate_api/docs/PresentationLink.md @@ -0,0 +1,192 @@ +# PresentationLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LinkId** | **string** | Stable identity key for merging across presentations, analogous to fieldId and resourceId. | +**Title** | **string** | CEL expression that returns the displayed link title. | +**Target** | **string** | CEL expression that returns a relative or fully-qualified link target. | +**OpenInNewTab** | Pointer to **bool** | Whether the link opens in a new tab. Defaults to false. | [optional] [default to false] +**Tooltip** | Pointer to **string** | Optional CEL expression that returns tooltip text. | [optional] +**Filter** | Pointer to **string** | Optional CEL boolean expression deciding whether the link is shown. Missing filters default to true. | [optional] +**Order** | **float64** | Display order. Higher value means it shows first in UI. | + +## Methods + +### NewPresentationLink + +`func NewPresentationLink(linkId string, title string, target string, order float64, ) *PresentationLink` + +NewPresentationLink instantiates a new PresentationLink object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationLinkWithDefaults + +`func NewPresentationLinkWithDefaults() *PresentationLink` + +NewPresentationLinkWithDefaults instantiates a new PresentationLink object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinkId + +`func (o *PresentationLink) GetLinkId() string` + +GetLinkId returns the LinkId field if non-nil, zero value otherwise. + +### GetLinkIdOk + +`func (o *PresentationLink) GetLinkIdOk() (*string, bool)` + +GetLinkIdOk returns a tuple with the LinkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkId + +`func (o *PresentationLink) SetLinkId(v string)` + +SetLinkId sets LinkId field to given value. + + +### GetTitle + +`func (o *PresentationLink) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationLink) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *PresentationLink) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetTarget + +`func (o *PresentationLink) GetTarget() string` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *PresentationLink) GetTargetOk() (*string, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *PresentationLink) SetTarget(v string)` + +SetTarget sets Target field to given value. + + +### GetOpenInNewTab + +`func (o *PresentationLink) GetOpenInNewTab() bool` + +GetOpenInNewTab returns the OpenInNewTab field if non-nil, zero value otherwise. + +### GetOpenInNewTabOk + +`func (o *PresentationLink) GetOpenInNewTabOk() (*bool, bool)` + +GetOpenInNewTabOk returns a tuple with the OpenInNewTab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenInNewTab + +`func (o *PresentationLink) SetOpenInNewTab(v bool)` + +SetOpenInNewTab sets OpenInNewTab field to given value. + +### HasOpenInNewTab + +`func (o *PresentationLink) HasOpenInNewTab() bool` + +HasOpenInNewTab returns a boolean if a field has been set. + +### GetTooltip + +`func (o *PresentationLink) GetTooltip() string` + +GetTooltip returns the Tooltip field if non-nil, zero value otherwise. + +### GetTooltipOk + +`func (o *PresentationLink) GetTooltipOk() (*string, bool)` + +GetTooltipOk returns a tuple with the Tooltip field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTooltip + +`func (o *PresentationLink) SetTooltip(v string)` + +SetTooltip sets Tooltip field to given value. + +### HasTooltip + +`func (o *PresentationLink) HasTooltip() bool` + +HasTooltip returns a boolean if a field has been set. + +### GetFilter + +`func (o *PresentationLink) GetFilter() string` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *PresentationLink) GetFilterOk() (*string, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *PresentationLink) SetFilter(v string)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *PresentationLink) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetOrder + +`func (o *PresentationLink) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PresentationLink) GetOrderOk() (*float64, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *PresentationLink) SetOrder(v float64)` + +SetOrder sets Order field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ResolvedComponentPresentationLink.md b/generated/stackstate_api/docs/ResolvedComponentPresentationLink.md new file mode 100644 index 00000000..36881c9b --- /dev/null +++ b/generated/stackstate_api/docs/ResolvedComponentPresentationLink.md @@ -0,0 +1,161 @@ +# ResolvedComponentPresentationLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**LinkId** | **string** | Identity key for this link. | +**Title** | **string** | Displayed link title. | +**Target** | **string** | Relative or fully-qualified link target. | +**OpenInNewTab** | **bool** | Whether the link opens in a new tab. | +**Tooltip** | Pointer to **string** | Optional tooltip text. | [optional] + +## Methods + +### NewResolvedComponentPresentationLink + +`func NewResolvedComponentPresentationLink(type_ string, linkId string, title string, target string, openInNewTab bool, ) *ResolvedComponentPresentationLink` + +NewResolvedComponentPresentationLink instantiates a new ResolvedComponentPresentationLink object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResolvedComponentPresentationLinkWithDefaults + +`func NewResolvedComponentPresentationLinkWithDefaults() *ResolvedComponentPresentationLink` + +NewResolvedComponentPresentationLinkWithDefaults instantiates a new ResolvedComponentPresentationLink object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ResolvedComponentPresentationLink) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResolvedComponentPresentationLink) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ResolvedComponentPresentationLink) SetType(v string)` + +SetType sets Type field to given value. + + +### GetLinkId + +`func (o *ResolvedComponentPresentationLink) GetLinkId() string` + +GetLinkId returns the LinkId field if non-nil, zero value otherwise. + +### GetLinkIdOk + +`func (o *ResolvedComponentPresentationLink) GetLinkIdOk() (*string, bool)` + +GetLinkIdOk returns a tuple with the LinkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkId + +`func (o *ResolvedComponentPresentationLink) SetLinkId(v string)` + +SetLinkId sets LinkId field to given value. + + +### GetTitle + +`func (o *ResolvedComponentPresentationLink) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ResolvedComponentPresentationLink) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ResolvedComponentPresentationLink) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetTarget + +`func (o *ResolvedComponentPresentationLink) GetTarget() string` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *ResolvedComponentPresentationLink) GetTargetOk() (*string, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *ResolvedComponentPresentationLink) SetTarget(v string)` + +SetTarget sets Target field to given value. + + +### GetOpenInNewTab + +`func (o *ResolvedComponentPresentationLink) GetOpenInNewTab() bool` + +GetOpenInNewTab returns the OpenInNewTab field if non-nil, zero value otherwise. + +### GetOpenInNewTabOk + +`func (o *ResolvedComponentPresentationLink) GetOpenInNewTabOk() (*bool, bool)` + +GetOpenInNewTabOk returns a tuple with the OpenInNewTab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenInNewTab + +`func (o *ResolvedComponentPresentationLink) SetOpenInNewTab(v bool)` + +SetOpenInNewTab sets OpenInNewTab field to given value. + + +### GetTooltip + +`func (o *ResolvedComponentPresentationLink) GetTooltip() string` + +GetTooltip returns the Tooltip field if non-nil, zero value otherwise. + +### GetTooltipOk + +`func (o *ResolvedComponentPresentationLink) GetTooltipOk() (*string, bool)` + +GetTooltipOk returns a tuple with the Tooltip field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTooltip + +`func (o *ResolvedComponentPresentationLink) SetTooltip(v string)` + +SetTooltip sets Tooltip field to given value. + +### HasTooltip + +`func (o *ResolvedComponentPresentationLink) HasTooltip() bool` + +HasTooltip returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/model_component_presentation_link.go b/generated/stackstate_api/model_component_presentation_link.go new file mode 100644 index 00000000..7fef7b33 --- /dev/null +++ b/generated/stackstate_api/model_component_presentation_link.go @@ -0,0 +1,140 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" + "fmt" +) + +// ComponentPresentationLink - A resolved link definition returned in the FullComponent response. +type ComponentPresentationLink struct { + ErrorComponentPresentationLink *ErrorComponentPresentationLink + ResolvedComponentPresentationLink *ResolvedComponentPresentationLink +} + +// ErrorComponentPresentationLinkAsComponentPresentationLink is a convenience function that returns ErrorComponentPresentationLink wrapped in ComponentPresentationLink +func ErrorComponentPresentationLinkAsComponentPresentationLink(v *ErrorComponentPresentationLink) ComponentPresentationLink { + return ComponentPresentationLink{ + ErrorComponentPresentationLink: v, + } +} + +// ResolvedComponentPresentationLinkAsComponentPresentationLink is a convenience function that returns ResolvedComponentPresentationLink wrapped in ComponentPresentationLink +func ResolvedComponentPresentationLinkAsComponentPresentationLink(v *ResolvedComponentPresentationLink) ComponentPresentationLink { + return ComponentPresentationLink{ + ResolvedComponentPresentationLink: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ComponentPresentationLink) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = newStrictDecoder(data).Decode(&jsonDict) + if err != nil { + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") + } + + // check if the discriminator value is 'ErrorComponentPresentationLink' + if jsonDict["_type"] == "ErrorComponentPresentationLink" { + // try to unmarshal JSON data into ErrorComponentPresentationLink + err = json.Unmarshal(data, &dst.ErrorComponentPresentationLink) + if err == nil { + return nil // data stored in dst.ErrorComponentPresentationLink, return on the first match + } else { + dst.ErrorComponentPresentationLink = nil + return fmt.Errorf("Failed to unmarshal ComponentPresentationLink as ErrorComponentPresentationLink: %s", err.Error()) + } + } + + // check if the discriminator value is 'ResolvedComponentPresentationLink' + if jsonDict["_type"] == "ResolvedComponentPresentationLink" { + // try to unmarshal JSON data into ResolvedComponentPresentationLink + err = json.Unmarshal(data, &dst.ResolvedComponentPresentationLink) + if err == nil { + return nil // data stored in dst.ResolvedComponentPresentationLink, return on the first match + } else { + dst.ResolvedComponentPresentationLink = nil + return fmt.Errorf("Failed to unmarshal ComponentPresentationLink as ResolvedComponentPresentationLink: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ComponentPresentationLink) MarshalJSON() ([]byte, error) { + if src.ErrorComponentPresentationLink != nil { + return json.Marshal(&src.ErrorComponentPresentationLink) + } + + if src.ResolvedComponentPresentationLink != nil { + return json.Marshal(&src.ResolvedComponentPresentationLink) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ComponentPresentationLink) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ErrorComponentPresentationLink != nil { + return obj.ErrorComponentPresentationLink + } + + if obj.ResolvedComponentPresentationLink != nil { + return obj.ResolvedComponentPresentationLink + } + + // all schemas are nil + return nil +} + +type NullableComponentPresentationLink struct { + value *ComponentPresentationLink + isSet bool +} + +func (v NullableComponentPresentationLink) Get() *ComponentPresentationLink { + return v.value +} + +func (v *NullableComponentPresentationLink) Set(val *ComponentPresentationLink) { + v.value = val + v.isSet = true +} + +func (v NullableComponentPresentationLink) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentPresentationLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentPresentationLink(val *ComponentPresentationLink) *NullableComponentPresentationLink { + return &NullableComponentPresentationLink{value: val, isSet: true} +} + +func (v NullableComponentPresentationLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentPresentationLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_error_component_presentation_link.go b/generated/stackstate_api/model_error_component_presentation_link.go new file mode 100644 index 00000000..66faed58 --- /dev/null +++ b/generated/stackstate_api/model_error_component_presentation_link.go @@ -0,0 +1,197 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ErrorComponentPresentationLink struct for ErrorComponentPresentationLink +type ErrorComponentPresentationLink struct { + Type string `json:"_type" yaml:"_type"` + // Identity key for this link. + LinkId string `json:"linkId" yaml:"linkId"` + // Displayed link title, or the link identity when the title could not be resolved. + Title string `json:"title" yaml:"title"` + // Reason why the link could not be resolved. + Message string `json:"message" yaml:"message"` +} + +// NewErrorComponentPresentationLink instantiates a new ErrorComponentPresentationLink object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorComponentPresentationLink(type_ string, linkId string, title string, message string) *ErrorComponentPresentationLink { + this := ErrorComponentPresentationLink{} + this.Type = type_ + this.LinkId = linkId + this.Title = title + this.Message = message + return &this +} + +// NewErrorComponentPresentationLinkWithDefaults instantiates a new ErrorComponentPresentationLink object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorComponentPresentationLinkWithDefaults() *ErrorComponentPresentationLink { + this := ErrorComponentPresentationLink{} + return &this +} + +// GetType returns the Type field value +func (o *ErrorComponentPresentationLink) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ErrorComponentPresentationLink) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ErrorComponentPresentationLink) SetType(v string) { + o.Type = v +} + +// GetLinkId returns the LinkId field value +func (o *ErrorComponentPresentationLink) GetLinkId() string { + if o == nil { + var ret string + return ret + } + + return o.LinkId +} + +// GetLinkIdOk returns a tuple with the LinkId field value +// and a boolean to check if the value has been set. +func (o *ErrorComponentPresentationLink) GetLinkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LinkId, true +} + +// SetLinkId sets field value +func (o *ErrorComponentPresentationLink) SetLinkId(v string) { + o.LinkId = v +} + +// GetTitle returns the Title field value +func (o *ErrorComponentPresentationLink) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *ErrorComponentPresentationLink) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ErrorComponentPresentationLink) SetTitle(v string) { + o.Title = v +} + +// GetMessage returns the Message field value +func (o *ErrorComponentPresentationLink) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorComponentPresentationLink) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorComponentPresentationLink) SetMessage(v string) { + o.Message = v +} + +func (o ErrorComponentPresentationLink) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["linkId"] = o.LinkId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["message"] = o.Message + } + return json.Marshal(toSerialize) +} + +type NullableErrorComponentPresentationLink struct { + value *ErrorComponentPresentationLink + isSet bool +} + +func (v NullableErrorComponentPresentationLink) Get() *ErrorComponentPresentationLink { + return v.value +} + +func (v *NullableErrorComponentPresentationLink) Set(val *ErrorComponentPresentationLink) { + v.value = val + v.isSet = true +} + +func (v NullableErrorComponentPresentationLink) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorComponentPresentationLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorComponentPresentationLink(val *ErrorComponentPresentationLink) *NullableErrorComponentPresentationLink { + return &NullableErrorComponentPresentationLink{value: val, isSet: true} +} + +func (v NullableErrorComponentPresentationLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorComponentPresentationLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_full_component.go b/generated/stackstate_api/model_full_component.go index 93d474cb..a0d8e4b8 100644 --- a/generated/stackstate_api/model_full_component.go +++ b/generated/stackstate_api/model_full_component.go @@ -23,26 +23,29 @@ type FullComponent struct { Synced []ExternalComponent `json:"synced" yaml:"synced"` Provisioning *ComponentProvisioning `json:"provisioning,omitempty" yaml:"provisioning,omitempty"` // Resolved related resource definitions in display order. Backend populates from both legacy and new presentation definitions. - RelatedResources []RelatedResource `json:"relatedResources" yaml:"relatedResources"` - Events *ComponentEvents `json:"events,omitempty" yaml:"events,omitempty"` - Data ComponentData `json:"data" yaml:"data"` - Highlights *LegacyComponentHighlights `json:"highlights,omitempty" yaml:"highlights,omitempty"` - Summary ComponentSummary `json:"summary" yaml:"summary"` - HighlightMetrics []ComponentMetricSection `json:"highlightMetrics" yaml:"highlightMetrics"` - Actions []ComponentAction `json:"actions" yaml:"actions"` - BoundTraces *BoundTraces `json:"boundTraces,omitempty" yaml:"boundTraces,omitempty"` + RelatedResources []RelatedResource `json:"relatedResources" yaml:"relatedResources"` + // Resolved presentation links in display order. Backend populates from matching presentation definitions. + Links []ComponentPresentationLink `json:"links" yaml:"links"` + Events *ComponentEvents `json:"events,omitempty" yaml:"events,omitempty"` + Data ComponentData `json:"data" yaml:"data"` + Highlights *LegacyComponentHighlights `json:"highlights,omitempty" yaml:"highlights,omitempty"` + Summary ComponentSummary `json:"summary" yaml:"summary"` + HighlightMetrics []ComponentMetricSection `json:"highlightMetrics" yaml:"highlightMetrics"` + Actions []ComponentAction `json:"actions" yaml:"actions"` + BoundTraces *BoundTraces `json:"boundTraces,omitempty" yaml:"boundTraces,omitempty"` } // NewFullComponent instantiates a new FullComponent object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, data ComponentData, summary ComponentSummary, highlightMetrics []ComponentMetricSection, actions []ComponentAction) *FullComponent { +func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, links []ComponentPresentationLink, data ComponentData, summary ComponentSummary, highlightMetrics []ComponentMetricSection, actions []ComponentAction) *FullComponent { this := FullComponent{} this.TypeName = typeName this.Fields = fields this.Synced = synced this.RelatedResources = relatedResources + this.Links = links this.Data = data this.Summary = summary this.HighlightMetrics = highlightMetrics @@ -218,6 +221,30 @@ func (o *FullComponent) SetRelatedResources(v []RelatedResource) { o.RelatedResources = v } +// GetLinks returns the Links field value +func (o *FullComponent) GetLinks() []ComponentPresentationLink { + if o == nil { + var ret []ComponentPresentationLink + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *FullComponent) GetLinksOk() ([]ComponentPresentationLink, bool) { + if o == nil { + return nil, false + } + return o.Links, true +} + +// SetLinks sets field value +func (o *FullComponent) SetLinks(v []ComponentPresentationLink) { + o.Links = v +} + // GetEvents returns the Events field value if set, zero value otherwise. func (o *FullComponent) GetEvents() ComponentEvents { if o == nil || o.Events == nil { @@ -430,6 +457,9 @@ func (o FullComponent) MarshalJSON() ([]byte, error) { if true { toSerialize["relatedResources"] = o.RelatedResources } + if true { + toSerialize["links"] = o.Links + } if o.Events != nil { toSerialize["events"] = o.Events } diff --git a/generated/stackstate_api/model_monitor_function_test_.go b/generated/stackstate_api/model_monitor_function_test_.go index a9c39a2a..c31d1f8d 100644 --- a/generated/stackstate_api/model_monitor_function_test_.go +++ b/generated/stackstate_api/model_monitor_function_test_.go @@ -17,16 +17,18 @@ import ( // MonitorFunctionTest struct for MonitorFunctionTest type MonitorFunctionTest struct { - Arguments []Argument `json:"arguments" yaml:"arguments"` + Arguments []Argument `json:"arguments" yaml:"arguments"` + IntervalSeconds int32 `json:"intervalSeconds" yaml:"intervalSeconds"` } // NewMonitorFunctionTest instantiates a new MonitorFunctionTest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMonitorFunctionTest(arguments []Argument) *MonitorFunctionTest { +func NewMonitorFunctionTest(arguments []Argument, intervalSeconds int32) *MonitorFunctionTest { this := MonitorFunctionTest{} this.Arguments = arguments + this.IntervalSeconds = intervalSeconds return &this } @@ -62,11 +64,38 @@ func (o *MonitorFunctionTest) SetArguments(v []Argument) { o.Arguments = v } +// GetIntervalSeconds returns the IntervalSeconds field value +func (o *MonitorFunctionTest) GetIntervalSeconds() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.IntervalSeconds +} + +// GetIntervalSecondsOk returns a tuple with the IntervalSeconds field value +// and a boolean to check if the value has been set. +func (o *MonitorFunctionTest) GetIntervalSecondsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.IntervalSeconds, true +} + +// SetIntervalSeconds sets field value +func (o *MonitorFunctionTest) SetIntervalSeconds(v int32) { + o.IntervalSeconds = v +} + func (o MonitorFunctionTest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["arguments"] = o.Arguments } + if true { + toSerialize["intervalSeconds"] = o.IntervalSeconds + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_monitor_preview.go b/generated/stackstate_api/model_monitor_preview.go index 79d60d2c..c0ebeeb5 100644 --- a/generated/stackstate_api/model_monitor_preview.go +++ b/generated/stackstate_api/model_monitor_preview.go @@ -17,7 +17,8 @@ import ( // MonitorPreview struct for MonitorPreview type MonitorPreview struct { - Arguments []Argument `json:"arguments,omitempty" yaml:"arguments,omitempty"` + Arguments []Argument `json:"arguments,omitempty" yaml:"arguments,omitempty"` + IntervalSeconds *int32 `json:"intervalSeconds,omitempty" yaml:"intervalSeconds,omitempty"` } // NewMonitorPreview instantiates a new MonitorPreview object @@ -69,11 +70,46 @@ func (o *MonitorPreview) SetArguments(v []Argument) { o.Arguments = v } +// GetIntervalSeconds returns the IntervalSeconds field value if set, zero value otherwise. +func (o *MonitorPreview) GetIntervalSeconds() int32 { + if o == nil || o.IntervalSeconds == nil { + var ret int32 + return ret + } + return *o.IntervalSeconds +} + +// GetIntervalSecondsOk returns a tuple with the IntervalSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitorPreview) GetIntervalSecondsOk() (*int32, bool) { + if o == nil || o.IntervalSeconds == nil { + return nil, false + } + return o.IntervalSeconds, true +} + +// HasIntervalSeconds returns a boolean if a field has been set. +func (o *MonitorPreview) HasIntervalSeconds() bool { + if o != nil && o.IntervalSeconds != nil { + return true + } + + return false +} + +// SetIntervalSeconds gets a reference to the given int32 and assigns it to the IntervalSeconds field. +func (o *MonitorPreview) SetIntervalSeconds(v int32) { + o.IntervalSeconds = &v +} + func (o MonitorPreview) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Arguments != nil { toSerialize["arguments"] = o.Arguments } + if o.IntervalSeconds != nil { + toSerialize["intervalSeconds"] = o.IntervalSeconds + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_presentation_highlight.go b/generated/stackstate_api/model_presentation_highlight.go index 8be3b6af..54d80273 100644 --- a/generated/stackstate_api/model_presentation_highlight.go +++ b/generated/stackstate_api/model_presentation_highlight.go @@ -15,12 +15,13 @@ import ( "encoding/json" ) -// PresentationHighlight Highlight presentation definition. The `fields` define the fields to show in the highlight page. If multiple ComponentPresentations match, fields are merged by `fieldId` according to binding rank. Related resources follow the same merge semantics using `resourceId` as the identity key. +// PresentationHighlight Highlight presentation definition. The `fields` define the fields to show in the highlight page. If multiple ComponentPresentations match, fields are merged by `fieldId` according to binding rank. Related resources follow the same merge semantics using `resourceId` as the identity key. Links follow the same merge semantics using `linkId` as the identity key. type PresentationHighlight struct { Title string `json:"title" yaml:"title"` Fields []PresentationHighlightField `json:"fields" yaml:"fields"` Provisioning *PresentationHighlightProvisioning `json:"provisioning,omitempty" yaml:"provisioning,omitempty"` RelatedResources []PresentationRelatedResource `json:"relatedResources,omitempty" yaml:"relatedResources,omitempty"` + Links []PresentationLink `json:"links,omitempty" yaml:"links,omitempty"` Events *PresentationHighlightEvents `json:"events,omitempty" yaml:"events,omitempty"` Metrics []PresentationHighlightMetricsSection `json:"metrics,omitempty" yaml:"metrics,omitempty"` } @@ -156,6 +157,38 @@ func (o *PresentationHighlight) SetRelatedResources(v []PresentationRelatedResou o.RelatedResources = v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PresentationHighlight) GetLinks() []PresentationLink { + if o == nil || o.Links == nil { + var ret []PresentationLink + return ret + } + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationHighlight) GetLinksOk() ([]PresentationLink, bool) { + if o == nil || o.Links == nil { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PresentationHighlight) HasLinks() bool { + if o != nil && o.Links != nil { + return true + } + + return false +} + +// SetLinks gets a reference to the given []PresentationLink and assigns it to the Links field. +func (o *PresentationHighlight) SetLinks(v []PresentationLink) { + o.Links = v +} + // GetEvents returns the Events field value if set, zero value otherwise. func (o *PresentationHighlight) GetEvents() PresentationHighlightEvents { if o == nil || o.Events == nil { @@ -234,6 +267,9 @@ func (o PresentationHighlight) MarshalJSON() ([]byte, error) { if o.RelatedResources != nil { toSerialize["relatedResources"] = o.RelatedResources } + if o.Links != nil { + toSerialize["links"] = o.Links + } if o.Events != nil { toSerialize["events"] = o.Events } diff --git a/generated/stackstate_api/model_presentation_link.go b/generated/stackstate_api/model_presentation_link.go new file mode 100644 index 00000000..bcbc863a --- /dev/null +++ b/generated/stackstate_api/model_presentation_link.go @@ -0,0 +1,313 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// PresentationLink Link definition for the highlight page. Each entry defines a navigation link shown for a component. Merge semantics follow related resource rules: - All presentations whose binding matches the component contribute links. - Same linkId with higher specificity wins (override). - Different linkId entries are appended. - Display order is determined by the order field. CEL expressions are evaluated against the component presentation context. The filter is evaluated first; if it evaluates to false the link is omitted. If the filter includes the link but required data cannot be evaluated, the resolved highlight response reports an error link. +type PresentationLink struct { + // Stable identity key for merging across presentations, analogous to fieldId and resourceId. + LinkId string `json:"linkId" yaml:"linkId"` + // CEL expression that returns the displayed link title. + Title string `json:"title" yaml:"title"` + // CEL expression that returns a relative or fully-qualified link target. + Target string `json:"target" yaml:"target"` + // Whether the link opens in a new tab. Defaults to false. + OpenInNewTab *bool `json:"openInNewTab,omitempty" yaml:"openInNewTab,omitempty"` + // Optional CEL expression that returns tooltip text. + Tooltip *string `json:"tooltip,omitempty" yaml:"tooltip,omitempty"` + // Optional CEL boolean expression deciding whether the link is shown. Missing filters default to true. + Filter *string `json:"filter,omitempty" yaml:"filter,omitempty"` + // Display order. Higher value means it shows first in UI. + Order float64 `json:"order" yaml:"order"` +} + +// NewPresentationLink instantiates a new PresentationLink object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPresentationLink(linkId string, title string, target string, order float64) *PresentationLink { + this := PresentationLink{} + this.LinkId = linkId + this.Title = title + this.Target = target + var openInNewTab bool = false + this.OpenInNewTab = &openInNewTab + this.Order = order + return &this +} + +// NewPresentationLinkWithDefaults instantiates a new PresentationLink object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPresentationLinkWithDefaults() *PresentationLink { + this := PresentationLink{} + var openInNewTab bool = false + this.OpenInNewTab = &openInNewTab + return &this +} + +// GetLinkId returns the LinkId field value +func (o *PresentationLink) GetLinkId() string { + if o == nil { + var ret string + return ret + } + + return o.LinkId +} + +// GetLinkIdOk returns a tuple with the LinkId field value +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetLinkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LinkId, true +} + +// SetLinkId sets field value +func (o *PresentationLink) SetLinkId(v string) { + o.LinkId = v +} + +// GetTitle returns the Title field value +func (o *PresentationLink) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationLink) SetTitle(v string) { + o.Title = v +} + +// GetTarget returns the Target field value +func (o *PresentationLink) GetTarget() string { + if o == nil { + var ret string + return ret + } + + return o.Target +} + +// GetTargetOk returns a tuple with the Target field value +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetTargetOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Target, true +} + +// SetTarget sets field value +func (o *PresentationLink) SetTarget(v string) { + o.Target = v +} + +// GetOpenInNewTab returns the OpenInNewTab field value if set, zero value otherwise. +func (o *PresentationLink) GetOpenInNewTab() bool { + if o == nil || o.OpenInNewTab == nil { + var ret bool + return ret + } + return *o.OpenInNewTab +} + +// GetOpenInNewTabOk returns a tuple with the OpenInNewTab field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetOpenInNewTabOk() (*bool, bool) { + if o == nil || o.OpenInNewTab == nil { + return nil, false + } + return o.OpenInNewTab, true +} + +// HasOpenInNewTab returns a boolean if a field has been set. +func (o *PresentationLink) HasOpenInNewTab() bool { + if o != nil && o.OpenInNewTab != nil { + return true + } + + return false +} + +// SetOpenInNewTab gets a reference to the given bool and assigns it to the OpenInNewTab field. +func (o *PresentationLink) SetOpenInNewTab(v bool) { + o.OpenInNewTab = &v +} + +// GetTooltip returns the Tooltip field value if set, zero value otherwise. +func (o *PresentationLink) GetTooltip() string { + if o == nil || o.Tooltip == nil { + var ret string + return ret + } + return *o.Tooltip +} + +// GetTooltipOk returns a tuple with the Tooltip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetTooltipOk() (*string, bool) { + if o == nil || o.Tooltip == nil { + return nil, false + } + return o.Tooltip, true +} + +// HasTooltip returns a boolean if a field has been set. +func (o *PresentationLink) HasTooltip() bool { + if o != nil && o.Tooltip != nil { + return true + } + + return false +} + +// SetTooltip gets a reference to the given string and assigns it to the Tooltip field. +func (o *PresentationLink) SetTooltip(v string) { + o.Tooltip = &v +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *PresentationLink) GetFilter() string { + if o == nil || o.Filter == nil { + var ret string + return ret + } + return *o.Filter +} + +// GetFilterOk returns a tuple with the Filter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetFilterOk() (*string, bool) { + if o == nil || o.Filter == nil { + return nil, false + } + return o.Filter, true +} + +// HasFilter returns a boolean if a field has been set. +func (o *PresentationLink) HasFilter() bool { + if o != nil && o.Filter != nil { + return true + } + + return false +} + +// SetFilter gets a reference to the given string and assigns it to the Filter field. +func (o *PresentationLink) SetFilter(v string) { + o.Filter = &v +} + +// GetOrder returns the Order field value +func (o *PresentationLink) GetOrder() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Order +} + +// GetOrderOk returns a tuple with the Order field value +// and a boolean to check if the value has been set. +func (o *PresentationLink) GetOrderOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *PresentationLink) SetOrder(v float64) { + o.Order = v +} + +func (o PresentationLink) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["linkId"] = o.LinkId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["target"] = o.Target + } + if o.OpenInNewTab != nil { + toSerialize["openInNewTab"] = o.OpenInNewTab + } + if o.Tooltip != nil { + toSerialize["tooltip"] = o.Tooltip + } + if o.Filter != nil { + toSerialize["filter"] = o.Filter + } + if true { + toSerialize["order"] = o.Order + } + return json.Marshal(toSerialize) +} + +type NullablePresentationLink struct { + value *PresentationLink + isSet bool +} + +func (v NullablePresentationLink) Get() *PresentationLink { + return v.value +} + +func (v *NullablePresentationLink) Set(val *PresentationLink) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationLink) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationLink(val *PresentationLink) *NullablePresentationLink { + return &NullablePresentationLink{value: val, isSet: true} +} + +func (v NullablePresentationLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_resolved_component_presentation_link.go b/generated/stackstate_api/model_resolved_component_presentation_link.go new file mode 100644 index 00000000..afa8e2e4 --- /dev/null +++ b/generated/stackstate_api/model_resolved_component_presentation_link.go @@ -0,0 +1,264 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ResolvedComponentPresentationLink struct for ResolvedComponentPresentationLink +type ResolvedComponentPresentationLink struct { + Type string `json:"_type" yaml:"_type"` + // Identity key for this link. + LinkId string `json:"linkId" yaml:"linkId"` + // Displayed link title. + Title string `json:"title" yaml:"title"` + // Relative or fully-qualified link target. + Target string `json:"target" yaml:"target"` + // Whether the link opens in a new tab. + OpenInNewTab bool `json:"openInNewTab" yaml:"openInNewTab"` + // Optional tooltip text. + Tooltip *string `json:"tooltip,omitempty" yaml:"tooltip,omitempty"` +} + +// NewResolvedComponentPresentationLink instantiates a new ResolvedComponentPresentationLink object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResolvedComponentPresentationLink(type_ string, linkId string, title string, target string, openInNewTab bool) *ResolvedComponentPresentationLink { + this := ResolvedComponentPresentationLink{} + this.Type = type_ + this.LinkId = linkId + this.Title = title + this.Target = target + this.OpenInNewTab = openInNewTab + return &this +} + +// NewResolvedComponentPresentationLinkWithDefaults instantiates a new ResolvedComponentPresentationLink object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResolvedComponentPresentationLinkWithDefaults() *ResolvedComponentPresentationLink { + this := ResolvedComponentPresentationLink{} + return &this +} + +// GetType returns the Type field value +func (o *ResolvedComponentPresentationLink) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ResolvedComponentPresentationLink) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ResolvedComponentPresentationLink) SetType(v string) { + o.Type = v +} + +// GetLinkId returns the LinkId field value +func (o *ResolvedComponentPresentationLink) GetLinkId() string { + if o == nil { + var ret string + return ret + } + + return o.LinkId +} + +// GetLinkIdOk returns a tuple with the LinkId field value +// and a boolean to check if the value has been set. +func (o *ResolvedComponentPresentationLink) GetLinkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LinkId, true +} + +// SetLinkId sets field value +func (o *ResolvedComponentPresentationLink) SetLinkId(v string) { + o.LinkId = v +} + +// GetTitle returns the Title field value +func (o *ResolvedComponentPresentationLink) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *ResolvedComponentPresentationLink) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ResolvedComponentPresentationLink) SetTitle(v string) { + o.Title = v +} + +// GetTarget returns the Target field value +func (o *ResolvedComponentPresentationLink) GetTarget() string { + if o == nil { + var ret string + return ret + } + + return o.Target +} + +// GetTargetOk returns a tuple with the Target field value +// and a boolean to check if the value has been set. +func (o *ResolvedComponentPresentationLink) GetTargetOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Target, true +} + +// SetTarget sets field value +func (o *ResolvedComponentPresentationLink) SetTarget(v string) { + o.Target = v +} + +// GetOpenInNewTab returns the OpenInNewTab field value +func (o *ResolvedComponentPresentationLink) GetOpenInNewTab() bool { + if o == nil { + var ret bool + return ret + } + + return o.OpenInNewTab +} + +// GetOpenInNewTabOk returns a tuple with the OpenInNewTab field value +// and a boolean to check if the value has been set. +func (o *ResolvedComponentPresentationLink) GetOpenInNewTabOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.OpenInNewTab, true +} + +// SetOpenInNewTab sets field value +func (o *ResolvedComponentPresentationLink) SetOpenInNewTab(v bool) { + o.OpenInNewTab = v +} + +// GetTooltip returns the Tooltip field value if set, zero value otherwise. +func (o *ResolvedComponentPresentationLink) GetTooltip() string { + if o == nil || o.Tooltip == nil { + var ret string + return ret + } + return *o.Tooltip +} + +// GetTooltipOk returns a tuple with the Tooltip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResolvedComponentPresentationLink) GetTooltipOk() (*string, bool) { + if o == nil || o.Tooltip == nil { + return nil, false + } + return o.Tooltip, true +} + +// HasTooltip returns a boolean if a field has been set. +func (o *ResolvedComponentPresentationLink) HasTooltip() bool { + if o != nil && o.Tooltip != nil { + return true + } + + return false +} + +// SetTooltip gets a reference to the given string and assigns it to the Tooltip field. +func (o *ResolvedComponentPresentationLink) SetTooltip(v string) { + o.Tooltip = &v +} + +func (o ResolvedComponentPresentationLink) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["linkId"] = o.LinkId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["target"] = o.Target + } + if true { + toSerialize["openInNewTab"] = o.OpenInNewTab + } + if o.Tooltip != nil { + toSerialize["tooltip"] = o.Tooltip + } + return json.Marshal(toSerialize) +} + +type NullableResolvedComponentPresentationLink struct { + value *ResolvedComponentPresentationLink + isSet bool +} + +func (v NullableResolvedComponentPresentationLink) Get() *ResolvedComponentPresentationLink { + return v.value +} + +func (v *NullableResolvedComponentPresentationLink) Set(val *ResolvedComponentPresentationLink) { + v.value = val + v.isSet = true +} + +func (v NullableResolvedComponentPresentationLink) IsSet() bool { + return v.isSet +} + +func (v *NullableResolvedComponentPresentationLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResolvedComponentPresentationLink(val *ResolvedComponentPresentationLink) *NullableResolvedComponentPresentationLink { + return &NullableResolvedComponentPresentationLink{value: val, isSet: true} +} + +func (v NullableResolvedComponentPresentationLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResolvedComponentPresentationLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index 7458ee7b..6a06abc1 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -6f39930c8c1541f7e9d9d8ff18c099be28bf62de \ No newline at end of file +cbbabf4308f8e1ffc54597f261b57eec50737c8a \ No newline at end of file