From 17809ed6fadc7342f02b64ea067e7bb92dfe05c4 Mon Sep 17 00:00:00 2001 From: Alejandro Acevedo Date: Thu, 25 Jun 2026 16:14:08 +0200 Subject: [PATCH 1/2] STAC-25128: Reflect openapi changes --- .../stackstate_api/.openapi-generator/FILES | 4 - generated/stackstate_api/README.md | 2 - generated/stackstate_api/api/openapi.yaml | 65 +-------- .../stackstate_api/docs/OtelMappingApi.md | 2 +- .../docs/OtelRelationMappingOutput.md | 23 ++- .../stackstate_api/docs/TopologyDomain.md | 72 ---------- .../stackstate_api/docs/TopologyLayer.md | 72 ---------- .../stackstate_api/docs/TopologySettings.md | 52 ------- .../model_otel_relation_mapping_output.go | 32 ++++- .../stackstate_api/model_topology_domain.go | 136 ------------------ .../stackstate_api/model_topology_layer.go | 136 ------------------ .../stackstate_api/model_topology_settings.go | 90 ++---------- stackstate_openapi/openapi_version | 2 +- 13 files changed, 71 insertions(+), 617 deletions(-) delete mode 100644 generated/stackstate_api/docs/TopologyDomain.md delete mode 100644 generated/stackstate_api/docs/TopologyLayer.md delete mode 100644 generated/stackstate_api/model_topology_domain.go delete mode 100644 generated/stackstate_api/model_topology_layer.go diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index 0d886294..43c86d9f 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -603,9 +603,7 @@ docs/TooManyActiveQueries.md docs/TooManyTopologyResults.md docs/Topic.md docs/TopicApi.md -docs/TopologyDomain.md docs/TopologyEvent.md -docs/TopologyLayer.md docs/TopologyMatchResult.md docs/TopologyOverflowError.md docs/TopologyPerspective.md @@ -1181,9 +1179,7 @@ model_timeline_summary_request_arguments.go model_too_many_active_queries.go model_too_many_topology_results.go model_topic.go -model_topology_domain.go model_topology_event.go -model_topology_layer.go model_topology_match_result.go model_topology_overflow_error.go model_topology_perspective.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index b0523d35..6da8785e 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -790,9 +790,7 @@ Class | Method | HTTP request | Description - [TooManyActiveQueries](docs/TooManyActiveQueries.md) - [TooManyTopologyResults](docs/TooManyTopologyResults.md) - [Topic](docs/Topic.md) - - [TopologyDomain](docs/TopologyDomain.md) - [TopologyEvent](docs/TopologyEvent.md) - - [TopologyLayer](docs/TopologyLayer.md) - [TopologyMatchResult](docs/TopologyMatchResult.md) - [TopologyOverflowError](docs/TopologyOverflowError.md) - [TopologyPerspective](docs/TopologyPerspective.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index 876af827..a4c309a4 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -17431,6 +17431,7 @@ components: sourceId: sourceId dependencyType: dependencyType targetId: targetId + typeName: typeName properties: sourceId: description: "An expression that must produce a string. It must be one of\ @@ -17442,6 +17443,11 @@ components: \ these formats:\n - A plain string, for example `\"this is a plain string\"\ `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string + typeName: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" + type: string dependencyType: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ @@ -17459,6 +17465,7 @@ components: sourceId: sourceId dependencyType: dependencyType targetId: targetId + typeName: typeName identifier: identifier input: resource: @@ -17649,18 +17656,12 @@ components: neighboringComponents: true autoGrouping: true groupedByRelations: true - domain: - name: name - order: 1.2315135367772556 showIndirectRelations: true groupedByLayers: true connectedComponents: true groupingEnabled: true minimumGroupSize: 4 groupedByDomains: true - layer: - name: name - order: 7.386281948385884 icon: icon filters: - filterId: filterId @@ -20254,18 +20255,12 @@ components: neighboringComponents: true autoGrouping: true groupedByRelations: true - domain: - name: name - order: 1.2315135367772556 showIndirectRelations: true groupedByLayers: true connectedComponents: true groupingEnabled: true minimumGroupSize: 4 groupedByDomains: true - layer: - name: name - order: 7.386281948385884 icon: icon filters: - filterId: filterId @@ -21082,18 +21077,12 @@ components: neighboringComponents: true autoGrouping: true groupedByRelations: true - domain: - name: name - order: 1.2315135367772556 showIndirectRelations: true groupedByLayers: true connectedComponents: true groupingEnabled: true minimumGroupSize: 4 groupedByDomains: true - layer: - name: name - order: 7.386281948385884 properties: groupingEnabled: type: boolean @@ -21114,46 +21103,6 @@ components: type: boolean neighboringComponents: type: boolean - layer: - $ref: '#/components/schemas/TopologyLayer' - domain: - $ref: '#/components/schemas/TopologyDomain' - type: object - TopologyLayer: - description: "Layer assigned to components matched by this presentation, used\ - \ to bucket and order them in the topology view.\nAt presentation time, the\ - \ layer of the most-specific matching presentation wins.\nWhen multiple components\ - \ share a layer name with different orders, the highest order wins.\n" - example: - name: name - order: 7.386281948385884 - properties: - name: - type: string - order: - format: double - type: number - required: - - name - - order - type: object - TopologyDomain: - description: "Domain assigned to components matched by this presentation, used\ - \ to bucket and order them in the topology view.\nAt presentation time, the\ - \ domain of the most-specific matching presentation wins.\nWhen multiple components\ - \ share a domain name with different orders, the highest order wins.\n" - example: - name: name - order: 1.2315135367772556 - properties: - name: - type: string - order: - format: double - type: number - required: - - name - - order type: object QueryViewFlag: enum: diff --git a/generated/stackstate_api/docs/OtelMappingApi.md b/generated/stackstate_api/docs/OtelMappingApi.md index f8c70e2c..fa88e458 100644 --- a/generated/stackstate_api/docs/OtelMappingApi.md +++ b/generated/stackstate_api/docs/OtelMappingApi.md @@ -622,7 +622,7 @@ import ( ) func main() { - upsertOtelRelationMappingsRequest := *openapiclient.NewUpsertOtelRelationMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelRelationMappingOutput("SourceId_example", "TargetId_example", "DependencyType_example"), int64(123)) // UpsertOtelRelationMappingsRequest | Otel Relation Mapping to create/update + upsertOtelRelationMappingsRequest := *openapiclient.NewUpsertOtelRelationMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelRelationMappingOutput("SourceId_example", "TargetId_example", "TypeName_example", "DependencyType_example"), int64(123)) // UpsertOtelRelationMappingsRequest | Otel Relation Mapping to create/update configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/generated/stackstate_api/docs/OtelRelationMappingOutput.md b/generated/stackstate_api/docs/OtelRelationMappingOutput.md index 8926e214..fa7989d5 100644 --- a/generated/stackstate_api/docs/OtelRelationMappingOutput.md +++ b/generated/stackstate_api/docs/OtelRelationMappingOutput.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SourceId** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | **TargetId** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**TypeName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | **DependencyType** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | ## Methods ### NewOtelRelationMappingOutput -`func NewOtelRelationMappingOutput(sourceId string, targetId string, dependencyType string, ) *OtelRelationMappingOutput` +`func NewOtelRelationMappingOutput(sourceId string, targetId string, typeName string, dependencyType string, ) *OtelRelationMappingOutput` NewOtelRelationMappingOutput instantiates a new OtelRelationMappingOutput object This constructor will assign default values to properties that have it defined, @@ -67,6 +68,26 @@ and a boolean to check if the value has been set. SetTargetId sets TargetId field to given value. +### GetTypeName + +`func (o *OtelRelationMappingOutput) GetTypeName() string` + +GetTypeName returns the TypeName field if non-nil, zero value otherwise. + +### GetTypeNameOk + +`func (o *OtelRelationMappingOutput) GetTypeNameOk() (*string, bool)` + +GetTypeNameOk returns a tuple with the TypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeName + +`func (o *OtelRelationMappingOutput) SetTypeName(v string)` + +SetTypeName sets TypeName field to given value. + + ### GetDependencyType `func (o *OtelRelationMappingOutput) GetDependencyType() string` diff --git a/generated/stackstate_api/docs/TopologyDomain.md b/generated/stackstate_api/docs/TopologyDomain.md deleted file mode 100644 index 4f26cfb2..00000000 --- a/generated/stackstate_api/docs/TopologyDomain.md +++ /dev/null @@ -1,72 +0,0 @@ -# TopologyDomain - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Order** | **float64** | | - -## Methods - -### NewTopologyDomain - -`func NewTopologyDomain(name string, order float64, ) *TopologyDomain` - -NewTopologyDomain instantiates a new TopologyDomain 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 - -### NewTopologyDomainWithDefaults - -`func NewTopologyDomainWithDefaults() *TopologyDomain` - -NewTopologyDomainWithDefaults instantiates a new TopologyDomain 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 - -### GetName - -`func (o *TopologyDomain) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *TopologyDomain) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *TopologyDomain) SetName(v string)` - -SetName sets Name field to given value. - - -### GetOrder - -`func (o *TopologyDomain) GetOrder() float64` - -GetOrder returns the Order field if non-nil, zero value otherwise. - -### GetOrderOk - -`func (o *TopologyDomain) 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 *TopologyDomain) 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/TopologyLayer.md b/generated/stackstate_api/docs/TopologyLayer.md deleted file mode 100644 index fefeb4ea..00000000 --- a/generated/stackstate_api/docs/TopologyLayer.md +++ /dev/null @@ -1,72 +0,0 @@ -# TopologyLayer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Order** | **float64** | | - -## Methods - -### NewTopologyLayer - -`func NewTopologyLayer(name string, order float64, ) *TopologyLayer` - -NewTopologyLayer instantiates a new TopologyLayer 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 - -### NewTopologyLayerWithDefaults - -`func NewTopologyLayerWithDefaults() *TopologyLayer` - -NewTopologyLayerWithDefaults instantiates a new TopologyLayer 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 - -### GetName - -`func (o *TopologyLayer) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *TopologyLayer) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *TopologyLayer) SetName(v string)` - -SetName sets Name field to given value. - - -### GetOrder - -`func (o *TopologyLayer) GetOrder() float64` - -GetOrder returns the Order field if non-nil, zero value otherwise. - -### GetOrderOk - -`func (o *TopologyLayer) 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 *TopologyLayer) 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/TopologySettings.md b/generated/stackstate_api/docs/TopologySettings.md index d22d2972..aaa67c02 100644 --- a/generated/stackstate_api/docs/TopologySettings.md +++ b/generated/stackstate_api/docs/TopologySettings.md @@ -13,8 +13,6 @@ Name | Type | Description | Notes **AutoGrouping** | Pointer to **bool** | | [optional] **ConnectedComponents** | Pointer to **bool** | | [optional] **NeighboringComponents** | Pointer to **bool** | | [optional] -**Layer** | Pointer to [**TopologyLayer**](TopologyLayer.md) | | [optional] -**Domain** | Pointer to [**TopologyDomain**](TopologyDomain.md) | | [optional] ## Methods @@ -260,56 +258,6 @@ SetNeighboringComponents sets NeighboringComponents field to given value. HasNeighboringComponents returns a boolean if a field has been set. -### GetLayer - -`func (o *TopologySettings) GetLayer() TopologyLayer` - -GetLayer returns the Layer field if non-nil, zero value otherwise. - -### GetLayerOk - -`func (o *TopologySettings) GetLayerOk() (*TopologyLayer, bool)` - -GetLayerOk returns a tuple with the Layer field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLayer - -`func (o *TopologySettings) SetLayer(v TopologyLayer)` - -SetLayer sets Layer field to given value. - -### HasLayer - -`func (o *TopologySettings) HasLayer() bool` - -HasLayer returns a boolean if a field has been set. - -### GetDomain - -`func (o *TopologySettings) GetDomain() TopologyDomain` - -GetDomain returns the Domain field if non-nil, zero value otherwise. - -### GetDomainOk - -`func (o *TopologySettings) GetDomainOk() (*TopologyDomain, bool)` - -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomain - -`func (o *TopologySettings) SetDomain(v TopologyDomain)` - -SetDomain sets Domain field to given value. - -### HasDomain - -`func (o *TopologySettings) HasDomain() bool` - -HasDomain 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_otel_relation_mapping_output.go b/generated/stackstate_api/model_otel_relation_mapping_output.go index 3c586a61..1b1e064e 100644 --- a/generated/stackstate_api/model_otel_relation_mapping_output.go +++ b/generated/stackstate_api/model_otel_relation_mapping_output.go @@ -22,6 +22,8 @@ type OtelRelationMappingOutput struct { // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` TargetId string `json:"targetId" yaml:"targetId"` // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` + TypeName string `json:"typeName" yaml:"typeName"` + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` DependencyType string `json:"dependencyType" yaml:"dependencyType"` } @@ -29,10 +31,11 @@ type OtelRelationMappingOutput struct { // 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 NewOtelRelationMappingOutput(sourceId string, targetId string, dependencyType string) *OtelRelationMappingOutput { +func NewOtelRelationMappingOutput(sourceId string, targetId string, typeName string, dependencyType string) *OtelRelationMappingOutput { this := OtelRelationMappingOutput{} this.SourceId = sourceId this.TargetId = targetId + this.TypeName = typeName this.DependencyType = dependencyType return &this } @@ -93,6 +96,30 @@ func (o *OtelRelationMappingOutput) SetTargetId(v string) { o.TargetId = v } +// GetTypeName returns the TypeName field value +func (o *OtelRelationMappingOutput) GetTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.TypeName +} + +// GetTypeNameOk returns a tuple with the TypeName field value +// and a boolean to check if the value has been set. +func (o *OtelRelationMappingOutput) GetTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TypeName, true +} + +// SetTypeName sets field value +func (o *OtelRelationMappingOutput) SetTypeName(v string) { + o.TypeName = v +} + // GetDependencyType returns the DependencyType field value func (o *OtelRelationMappingOutput) GetDependencyType() string { if o == nil { @@ -125,6 +152,9 @@ func (o OtelRelationMappingOutput) MarshalJSON() ([]byte, error) { if true { toSerialize["targetId"] = o.TargetId } + if true { + toSerialize["typeName"] = o.TypeName + } if true { toSerialize["dependencyType"] = o.DependencyType } diff --git a/generated/stackstate_api/model_topology_domain.go b/generated/stackstate_api/model_topology_domain.go deleted file mode 100644 index 3cf50d21..00000000 --- a/generated/stackstate_api/model_topology_domain.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -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" -) - -// TopologyDomain Domain assigned to components matched by this presentation, used to bucket and order them in the topology view. At presentation time, the domain of the most-specific matching presentation wins. When multiple components share a domain name with different orders, the highest order wins. -type TopologyDomain struct { - Name string `json:"name" yaml:"name"` - Order float64 `json:"order" yaml:"order"` -} - -// NewTopologyDomain instantiates a new TopologyDomain 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 NewTopologyDomain(name string, order float64) *TopologyDomain { - this := TopologyDomain{} - this.Name = name - this.Order = order - return &this -} - -// NewTopologyDomainWithDefaults instantiates a new TopologyDomain 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 NewTopologyDomainWithDefaults() *TopologyDomain { - this := TopologyDomain{} - return &this -} - -// GetName returns the Name field value -func (o *TopologyDomain) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *TopologyDomain) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *TopologyDomain) SetName(v string) { - o.Name = v -} - -// GetOrder returns the Order field value -func (o *TopologyDomain) 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 *TopologyDomain) GetOrderOk() (*float64, bool) { - if o == nil { - return nil, false - } - return &o.Order, true -} - -// SetOrder sets field value -func (o *TopologyDomain) SetOrder(v float64) { - o.Order = v -} - -func (o TopologyDomain) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if true { - toSerialize["order"] = o.Order - } - return json.Marshal(toSerialize) -} - -type NullableTopologyDomain struct { - value *TopologyDomain - isSet bool -} - -func (v NullableTopologyDomain) Get() *TopologyDomain { - return v.value -} - -func (v *NullableTopologyDomain) Set(val *TopologyDomain) { - v.value = val - v.isSet = true -} - -func (v NullableTopologyDomain) IsSet() bool { - return v.isSet -} - -func (v *NullableTopologyDomain) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopologyDomain(val *TopologyDomain) *NullableTopologyDomain { - return &NullableTopologyDomain{value: val, isSet: true} -} - -func (v NullableTopologyDomain) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTopologyDomain) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_topology_layer.go b/generated/stackstate_api/model_topology_layer.go deleted file mode 100644 index 8a15e5d0..00000000 --- a/generated/stackstate_api/model_topology_layer.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -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" -) - -// TopologyLayer Layer assigned to components matched by this presentation, used to bucket and order them in the topology view. At presentation time, the layer of the most-specific matching presentation wins. When multiple components share a layer name with different orders, the highest order wins. -type TopologyLayer struct { - Name string `json:"name" yaml:"name"` - Order float64 `json:"order" yaml:"order"` -} - -// NewTopologyLayer instantiates a new TopologyLayer 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 NewTopologyLayer(name string, order float64) *TopologyLayer { - this := TopologyLayer{} - this.Name = name - this.Order = order - return &this -} - -// NewTopologyLayerWithDefaults instantiates a new TopologyLayer 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 NewTopologyLayerWithDefaults() *TopologyLayer { - this := TopologyLayer{} - return &this -} - -// GetName returns the Name field value -func (o *TopologyLayer) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *TopologyLayer) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *TopologyLayer) SetName(v string) { - o.Name = v -} - -// GetOrder returns the Order field value -func (o *TopologyLayer) 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 *TopologyLayer) GetOrderOk() (*float64, bool) { - if o == nil { - return nil, false - } - return &o.Order, true -} - -// SetOrder sets field value -func (o *TopologyLayer) SetOrder(v float64) { - o.Order = v -} - -func (o TopologyLayer) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if true { - toSerialize["order"] = o.Order - } - return json.Marshal(toSerialize) -} - -type NullableTopologyLayer struct { - value *TopologyLayer - isSet bool -} - -func (v NullableTopologyLayer) Get() *TopologyLayer { - return v.value -} - -func (v *NullableTopologyLayer) Set(val *TopologyLayer) { - v.value = val - v.isSet = true -} - -func (v NullableTopologyLayer) IsSet() bool { - return v.isSet -} - -func (v *NullableTopologyLayer) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopologyLayer(val *TopologyLayer) *NullableTopologyLayer { - return &NullableTopologyLayer{value: val, isSet: true} -} - -func (v NullableTopologyLayer) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTopologyLayer) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_topology_settings.go b/generated/stackstate_api/model_topology_settings.go index d225cc3d..7a93205a 100644 --- a/generated/stackstate_api/model_topology_settings.go +++ b/generated/stackstate_api/model_topology_settings.go @@ -17,17 +17,15 @@ import ( // TopologySettings Rendering settings for the topology perspective. Near-copy of QueryMetadata used for topology rendering today; differences: - `queryTime` is intentionally absent (request-time state, not a presentation setting). Most-specific-wins merge semantics across matching ComponentPresentations. type TopologySettings struct { - GroupingEnabled *bool `json:"groupingEnabled,omitempty" yaml:"groupingEnabled,omitempty"` - ShowIndirectRelations *bool `json:"showIndirectRelations,omitempty" yaml:"showIndirectRelations,omitempty"` - MinimumGroupSize *int64 `json:"minimumGroupSize,omitempty" yaml:"minimumGroupSize,omitempty"` - GroupedByLayers *bool `json:"groupedByLayers,omitempty" yaml:"groupedByLayers,omitempty"` - GroupedByDomains *bool `json:"groupedByDomains,omitempty" yaml:"groupedByDomains,omitempty"` - GroupedByRelations *bool `json:"groupedByRelations,omitempty" yaml:"groupedByRelations,omitempty"` - AutoGrouping *bool `json:"autoGrouping,omitempty" yaml:"autoGrouping,omitempty"` - ConnectedComponents *bool `json:"connectedComponents,omitempty" yaml:"connectedComponents,omitempty"` - NeighboringComponents *bool `json:"neighboringComponents,omitempty" yaml:"neighboringComponents,omitempty"` - Layer *TopologyLayer `json:"layer,omitempty" yaml:"layer,omitempty"` - Domain *TopologyDomain `json:"domain,omitempty" yaml:"domain,omitempty"` + GroupingEnabled *bool `json:"groupingEnabled,omitempty" yaml:"groupingEnabled,omitempty"` + ShowIndirectRelations *bool `json:"showIndirectRelations,omitempty" yaml:"showIndirectRelations,omitempty"` + MinimumGroupSize *int64 `json:"minimumGroupSize,omitempty" yaml:"minimumGroupSize,omitempty"` + GroupedByLayers *bool `json:"groupedByLayers,omitempty" yaml:"groupedByLayers,omitempty"` + GroupedByDomains *bool `json:"groupedByDomains,omitempty" yaml:"groupedByDomains,omitempty"` + GroupedByRelations *bool `json:"groupedByRelations,omitempty" yaml:"groupedByRelations,omitempty"` + AutoGrouping *bool `json:"autoGrouping,omitempty" yaml:"autoGrouping,omitempty"` + ConnectedComponents *bool `json:"connectedComponents,omitempty" yaml:"connectedComponents,omitempty"` + NeighboringComponents *bool `json:"neighboringComponents,omitempty" yaml:"neighboringComponents,omitempty"` } // NewTopologySettings instantiates a new TopologySettings object @@ -335,70 +333,6 @@ func (o *TopologySettings) SetNeighboringComponents(v bool) { o.NeighboringComponents = &v } -// GetLayer returns the Layer field value if set, zero value otherwise. -func (o *TopologySettings) GetLayer() TopologyLayer { - if o == nil || o.Layer == nil { - var ret TopologyLayer - return ret - } - return *o.Layer -} - -// GetLayerOk returns a tuple with the Layer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TopologySettings) GetLayerOk() (*TopologyLayer, bool) { - if o == nil || o.Layer == nil { - return nil, false - } - return o.Layer, true -} - -// HasLayer returns a boolean if a field has been set. -func (o *TopologySettings) HasLayer() bool { - if o != nil && o.Layer != nil { - return true - } - - return false -} - -// SetLayer gets a reference to the given TopologyLayer and assigns it to the Layer field. -func (o *TopologySettings) SetLayer(v TopologyLayer) { - o.Layer = &v -} - -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *TopologySettings) GetDomain() TopologyDomain { - if o == nil || o.Domain == nil { - var ret TopologyDomain - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TopologySettings) GetDomainOk() (*TopologyDomain, bool) { - if o == nil || o.Domain == nil { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *TopologySettings) HasDomain() bool { - if o != nil && o.Domain != nil { - return true - } - - return false -} - -// SetDomain gets a reference to the given TopologyDomain and assigns it to the Domain field. -func (o *TopologySettings) SetDomain(v TopologyDomain) { - o.Domain = &v -} - func (o TopologySettings) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.GroupingEnabled != nil { @@ -428,12 +362,6 @@ func (o TopologySettings) MarshalJSON() ([]byte, error) { if o.NeighboringComponents != nil { toSerialize["neighboringComponents"] = o.NeighboringComponents } - if o.Layer != nil { - toSerialize["layer"] = o.Layer - } - if o.Domain != nil { - toSerialize["domain"] = o.Domain - } return json.Marshal(toSerialize) } diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index 48fcda2a..abdf5ee0 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -89739b44a9e841c9063639f94b196b1d10dfe401 \ No newline at end of file +d78cbe7065ed5d8afcb5988c0b6b826ec156a68e \ No newline at end of file From aed191d7eecf010dfbdf527b1b98caa3f3d1dcfc Mon Sep 17 00:00:00 2001 From: Alejandro Acevedo Date: Thu, 25 Jun 2026 18:03:36 +0200 Subject: [PATCH 2/2] STAC-25128: Bump openapi --- stackstate_openapi/openapi_version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index abdf5ee0..7458ee7b 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -d78cbe7065ed5d8afcb5988c0b6b826ec156a68e \ No newline at end of file +6f39930c8c1541f7e9d9d8ff18c099be28bf62de \ No newline at end of file