From ecd46f04b92a4c8b05e6af76139563e39439514b Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Wed, 24 Jun 2026 20:59:22 +0200 Subject: [PATCH 1/4] STAC-24991: sync openapi version --- .../stackstate_admin_api/api_retention.go | 28 +- .../stackstate_api/.openapi-generator/FILES | 6 + generated/stackstate_api/README.md | 3 + generated/stackstate_api/api/openapi.yaml | 54 +++- .../stackstate_api/docs/ComponentField.md | 10 +- generated/stackstate_api/docs/ListField.md | 161 +++++++++++ .../stackstate_api/docs/ListFieldAllOf.md | 93 +++++++ .../docs/OtelComponentMapping.md | 23 +- .../docs/OtelComponentMappingOutput.md | 26 -- .../docs/OtelComponentMappingRank.md | 51 ++++ .../stackstate_api/docs/OtelMappingApi.md | 2 +- .../UpsertOtelComponentMappingsRequest.md | 23 +- .../stackstate_api/model_component_field.go | 28 ++ generated/stackstate_api/model_list_field.go | 261 ++++++++++++++++++ .../stackstate_api/model_list_field_all_of.go | 167 +++++++++++ .../model_otel_component_mapping.go | 31 ++- .../model_otel_component_mapping_output.go | 43 +-- .../model_otel_component_mapping_rank.go | 108 ++++++++ ..._upsert_otel_component_mappings_request.go | 31 ++- stackstate_openapi/openapi_version | 2 +- 20 files changed, 1055 insertions(+), 96 deletions(-) create mode 100644 generated/stackstate_api/docs/ListField.md create mode 100644 generated/stackstate_api/docs/ListFieldAllOf.md create mode 100644 generated/stackstate_api/docs/OtelComponentMappingRank.md create mode 100644 generated/stackstate_api/model_list_field.go create mode 100644 generated/stackstate_api/model_list_field_all_of.go create mode 100644 generated/stackstate_api/model_otel_component_mapping_rank.go diff --git a/generated/stackstate_admin_api/api_retention.go b/generated/stackstate_admin_api/api_retention.go index 6098379f..7d653926 100644 --- a/generated/stackstate_admin_api/api_retention.go +++ b/generated/stackstate_admin_api/api_retention.go @@ -95,8 +95,8 @@ GetRetentionEpoch Get retention epoch Get StackGraph retention epoch. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRetentionEpochRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRetentionEpochRequest */ func (a *RetentionApiService) GetRetentionEpoch(ctx context.Context) ApiGetRetentionEpochRequest { return ApiGetRetentionEpochRequest{ @@ -106,7 +106,8 @@ func (a *RetentionApiService) GetRetentionEpoch(ctx context.Context) ApiGetReten } // Execute executes the request -// @return EpochTx +// +// @return EpochTx func (a *RetentionApiService) GetRetentionEpochExecute(r ApiGetRetentionEpochRequest) (*EpochTx, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -255,8 +256,8 @@ GetRetentionWindow Get retention window Get StackGraph retention window. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRetentionWindowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRetentionWindowRequest */ func (a *RetentionApiService) GetRetentionWindow(ctx context.Context) ApiGetRetentionWindowRequest { return ApiGetRetentionWindowRequest{ @@ -266,7 +267,8 @@ func (a *RetentionApiService) GetRetentionWindow(ctx context.Context) ApiGetRete } // Execute executes the request -// @return WindowMs +// +// @return WindowMs func (a *RetentionApiService) GetRetentionWindowExecute(r ApiGetRetentionWindowRequest) (*WindowMs, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -422,8 +424,8 @@ RemoveExpiredData Remove expired data from StackGraph Either schedule removal or immediately remove expired data from StackGraph - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRemoveExpiredDataRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRemoveExpiredDataRequest */ func (a *RetentionApiService) RemoveExpiredData(ctx context.Context) ApiRemoveExpiredDataRequest { return ApiRemoveExpiredDataRequest{ @@ -433,7 +435,8 @@ func (a *RetentionApiService) RemoveExpiredData(ctx context.Context) ApiRemoveEx } // Execute executes the request -// @return RemovalProgress +// +// @return RemovalProgress func (a *RetentionApiService) RemoveExpiredDataExecute(r ApiRemoveExpiredDataRequest) (*RemovalProgress, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -599,8 +602,8 @@ SetRetentionWindow Set retention window Set StackGraph retention window and optionally schedule data removal. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSetRetentionWindowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetRetentionWindowRequest */ func (a *RetentionApiService) SetRetentionWindow(ctx context.Context) ApiSetRetentionWindowRequest { return ApiSetRetentionWindowRequest{ @@ -610,7 +613,8 @@ func (a *RetentionApiService) SetRetentionWindow(ctx context.Context) ApiSetRete } // Execute executes the request -// @return WindowMs +// +// @return WindowMs func (a *RetentionApiService) SetRetentionWindowExecute(r ApiSetRetentionWindowRequest) (*WindowMs, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index 4f767f56..60a59218 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -261,6 +261,8 @@ docs/LinkCell.md docs/LinkField.md docs/LinkFieldAllOf.md docs/LinkMetaDisplay.md +docs/ListField.md +docs/ListFieldAllOf.md docs/LockedResponse.md docs/LogLevel.md docs/LogSeverity.md @@ -374,6 +376,7 @@ docs/OrderedComponentPresentationMetricAllOf.md docs/OtelComponentMapping.md docs/OtelComponentMappingFieldMapping.md docs/OtelComponentMappingOutput.md +docs/OtelComponentMappingRank.md docs/OtelInput.md docs/OtelInputDatapoint.md docs/OtelInputLog.md @@ -858,6 +861,8 @@ model_link_cell.go model_link_field.go model_link_field_all_of.go model_link_meta_display.go +model_list_field.go +model_list_field_all_of.go model_locked_response.go model_log_level.go model_log_severity.go @@ -964,6 +969,7 @@ model_ordered_component_presentation_metric_all_of.go model_otel_component_mapping.go model_otel_component_mapping_field_mapping.go model_otel_component_mapping_output.go +model_otel_component_mapping_rank.go model_otel_input.go model_otel_input_datapoint.go model_otel_input_log.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index caff4d80..50525e87 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -471,6 +471,8 @@ Class | Method | HTTP request | Description - [LinkField](docs/LinkField.md) - [LinkFieldAllOf](docs/LinkFieldAllOf.md) - [LinkMetaDisplay](docs/LinkMetaDisplay.md) + - [ListField](docs/ListField.md) + - [ListFieldAllOf](docs/ListFieldAllOf.md) - [LockedResponse](docs/LockedResponse.md) - [LogLevel](docs/LogLevel.md) - [LogSeverity](docs/LogSeverity.md) @@ -577,6 +579,7 @@ Class | Method | HTTP request | Description - [OtelComponentMapping](docs/OtelComponentMapping.md) - [OtelComponentMappingFieldMapping](docs/OtelComponentMappingFieldMapping.md) - [OtelComponentMappingOutput](docs/OtelComponentMappingOutput.md) + - [OtelComponentMappingRank](docs/OtelComponentMappingRank.md) - [OtelInput](docs/OtelInput.md) - [OtelInputDatapoint](docs/OtelInputDatapoint.md) - [OtelInputLog](docs/OtelInputLog.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index b8e3dfa2..629d6c58 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -14648,6 +14648,7 @@ components: - $ref: '#/components/schemas/DurationField' - $ref: '#/components/schemas/RatioField' - $ref: '#/components/schemas/MapField' + - $ref: '#/components/schemas/ListField' ErrorField: allOf: - $ref: '#/components/schemas/BaseComponentField' @@ -14700,6 +14701,10 @@ components: allOf: - $ref: '#/components/schemas/BaseComponentField' - $ref: '#/components/schemas/MapField_allOf' + ListField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/ListField_allOf' ExternalComponent: example: syncName: syncName @@ -17065,7 +17070,6 @@ components: identifier: identifier name: name typeName: typeName - typeIdentifier: typeIdentifier optional: configuration: configuration additionalIdentifiers: @@ -17110,11 +17114,6 @@ 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 - typeIdentifier: - 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 required: $ref: '#/components/schemas/OtelComponentMappingFieldMapping' optional: @@ -17219,13 +17218,28 @@ components: - name - value type: object + OtelComponentMappingRank: + example: + specificity: 6.027456183070403 + properties: + specificity: + description: "Determines how much of a \"specialization\" this mapping is.\ + \ Higher number means more specific. Used during component merge to pick\ + \ the winning typeName / name when multiple mappings contribute to the\ + \ same component identifier. Recommended ranges: 1–99 environment & infrastructure;\ + \ 100–199 platform & orchestration (k8s, otel base); 200–299 application\ + \ / service; 300–399 runtime / SDK / language; 400+ user overrides." + format: double + type: number + required: + - specificity + type: object OtelComponentMapping: example: output: identifier: identifier name: name typeName: typeName - typeIdentifier: typeIdentifier optional: configuration: configuration additionalIdentifiers: @@ -17280,6 +17294,8 @@ components: _type: OtelComponentMapping name: name description: description + rank: + specificity: 6.027456183070403 expireAfter: 0 vars: - name: name @@ -17308,6 +17324,8 @@ components: expireAfter: format: int64 type: integer + rank: + $ref: '#/components/schemas/OtelComponentMappingRank' required: - _type - expireAfter @@ -17315,6 +17333,7 @@ components: - input - name - output + - rank type: object OtelMappingStatus: example: @@ -21153,12 +21172,15 @@ components: expireAfter: format: int64 type: integer + rank: + $ref: '#/components/schemas/OtelComponentMappingRank' required: - expireAfter - identifier - input - name - output + - rank type: object upsertOtelRelationMappings_request: properties: @@ -21497,6 +21519,24 @@ components: - asTag - values type: object + ListField_allOf: + properties: + _type: + enum: + - ListField + type: string + values: + items: + type: string + type: array + asTag: + default: false + type: boolean + required: + - _type + - asTag + - values + type: object TimelineSummaryRequest_arguments: discriminator: propertyName: _type diff --git a/generated/stackstate_api/docs/ComponentField.md b/generated/stackstate_api/docs/ComponentField.md index cc9208ce..7d2092ba 100644 --- a/generated/stackstate_api/docs/ComponentField.md +++ b/generated/stackstate_api/docs/ComponentField.md @@ -23,13 +23,13 @@ Name | Type | Description | Notes **Numerator** | **float32** | | **Denominator** | **float32** | | **Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] -**Values** | **map[string]string** | | +**Values** | **[]string** | | ## Methods ### NewComponentField -`func NewComponentField(fieldId string, title string, type_ string, message string, query string, name string, url string, identifier string, state HealthStateValue, value float32, asTag bool, startTime int32, numerator float32, denominator float32, values map[string]string, ) *ComponentField` +`func NewComponentField(fieldId string, title string, type_ string, message string, query string, name string, url string, identifier string, state HealthStateValue, value float32, asTag bool, startTime int32, numerator float32, denominator float32, values []string, ) *ComponentField` NewComponentField instantiates a new ComponentField object This constructor will assign default values to properties that have it defined, @@ -461,20 +461,20 @@ HasStatus returns a boolean if a field has been set. ### GetValues -`func (o *ComponentField) GetValues() map[string]string` +`func (o *ComponentField) GetValues() []string` GetValues returns the Values field if non-nil, zero value otherwise. ### GetValuesOk -`func (o *ComponentField) GetValuesOk() (*map[string]string, bool)` +`func (o *ComponentField) GetValuesOk() (*[]string, bool)` GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetValues -`func (o *ComponentField) SetValues(v map[string]string)` +`func (o *ComponentField) SetValues(v []string)` SetValues sets Values field to given value. diff --git a/generated/stackstate_api/docs/ListField.md b/generated/stackstate_api/docs/ListField.md new file mode 100644 index 00000000..0405eef5 --- /dev/null +++ b/generated/stackstate_api/docs/ListField.md @@ -0,0 +1,161 @@ +# ListField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Values** | **[]string** | | +**AsTag** | **bool** | | [default to false] + +## Methods + +### NewListField + +`func NewListField(fieldId string, title string, type_ string, values []string, asTag bool, ) *ListField` + +NewListField instantiates a new ListField 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 + +### NewListFieldWithDefaults + +`func NewListFieldWithDefaults() *ListField` + +NewListFieldWithDefaults instantiates a new ListField 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 + +### GetFieldId + +`func (o *ListField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *ListField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *ListField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *ListField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ListField) 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 *ListField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *ListField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ListField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ListField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ListField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ListField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ListField) 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 *ListField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValues + +`func (o *ListField) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *ListField) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *ListField) SetValues(v []string)` + +SetValues sets Values field to given value. + + +### GetAsTag + +`func (o *ListField) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *ListField) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *ListField) SetAsTag(v bool)` + +SetAsTag sets AsTag 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/ListFieldAllOf.md b/generated/stackstate_api/docs/ListFieldAllOf.md new file mode 100644 index 00000000..20104043 --- /dev/null +++ b/generated/stackstate_api/docs/ListFieldAllOf.md @@ -0,0 +1,93 @@ +# ListFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Values** | **[]string** | | +**AsTag** | **bool** | | [default to false] + +## Methods + +### NewListFieldAllOf + +`func NewListFieldAllOf(type_ string, values []string, asTag bool, ) *ListFieldAllOf` + +NewListFieldAllOf instantiates a new ListFieldAllOf 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 + +### NewListFieldAllOfWithDefaults + +`func NewListFieldAllOfWithDefaults() *ListFieldAllOf` + +NewListFieldAllOfWithDefaults instantiates a new ListFieldAllOf 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 *ListFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ListFieldAllOf) 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 *ListFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValues + +`func (o *ListFieldAllOf) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *ListFieldAllOf) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *ListFieldAllOf) SetValues(v []string)` + +SetValues sets Values field to given value. + + +### GetAsTag + +`func (o *ListFieldAllOf) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *ListFieldAllOf) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *ListFieldAllOf) SetAsTag(v bool)` + +SetAsTag sets AsTag 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/OtelComponentMapping.md b/generated/stackstate_api/docs/OtelComponentMapping.md index 39a68525..cb448088 100644 --- a/generated/stackstate_api/docs/OtelComponentMapping.md +++ b/generated/stackstate_api/docs/OtelComponentMapping.md @@ -12,12 +12,13 @@ Name | Type | Description | Notes **Output** | [**OtelComponentMappingOutput**](OtelComponentMappingOutput.md) | | **Vars** | Pointer to [**[]OtelVariableMapping**](OtelVariableMapping.md) | | [optional] **ExpireAfter** | **int64** | | +**Rank** | [**OtelComponentMappingRank**](OtelComponentMappingRank.md) | | ## Methods ### NewOtelComponentMapping -`func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, ) *OtelComponentMapping` +`func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank, ) *OtelComponentMapping` NewOtelComponentMapping instantiates a new OtelComponentMapping object This constructor will assign default values to properties that have it defined, @@ -202,6 +203,26 @@ and a boolean to check if the value has been set. SetExpireAfter sets ExpireAfter field to given value. +### GetRank + +`func (o *OtelComponentMapping) GetRank() OtelComponentMappingRank` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *OtelComponentMapping) GetRankOk() (*OtelComponentMappingRank, bool)` + +GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRank + +`func (o *OtelComponentMapping) SetRank(v OtelComponentMappingRank)` + +SetRank sets Rank 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/OtelComponentMappingOutput.md b/generated/stackstate_api/docs/OtelComponentMappingOutput.md index 3dbdcfa6..c4240b30 100644 --- a/generated/stackstate_api/docs/OtelComponentMappingOutput.md +++ b/generated/stackstate_api/docs/OtelComponentMappingOutput.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **Identifier** | **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']` | **Name** | **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']` | -**TypeIdentifier** | Pointer to **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']` | [optional] **Required** | Pointer to [**OtelComponentMappingFieldMapping**](OtelComponentMappingFieldMapping.md) | | [optional] **Optional** | Pointer to [**OtelComponentMappingFieldMapping**](OtelComponentMappingFieldMapping.md) | | [optional] @@ -90,31 +89,6 @@ and a boolean to check if the value has been set. SetTypeName sets TypeName field to given value. -### GetTypeIdentifier - -`func (o *OtelComponentMappingOutput) GetTypeIdentifier() string` - -GetTypeIdentifier returns the TypeIdentifier field if non-nil, zero value otherwise. - -### GetTypeIdentifierOk - -`func (o *OtelComponentMappingOutput) GetTypeIdentifierOk() (*string, bool)` - -GetTypeIdentifierOk returns a tuple with the TypeIdentifier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeIdentifier - -`func (o *OtelComponentMappingOutput) SetTypeIdentifier(v string)` - -SetTypeIdentifier sets TypeIdentifier field to given value. - -### HasTypeIdentifier - -`func (o *OtelComponentMappingOutput) HasTypeIdentifier() bool` - -HasTypeIdentifier returns a boolean if a field has been set. - ### GetRequired `func (o *OtelComponentMappingOutput) GetRequired() OtelComponentMappingFieldMapping` diff --git a/generated/stackstate_api/docs/OtelComponentMappingRank.md b/generated/stackstate_api/docs/OtelComponentMappingRank.md new file mode 100644 index 00000000..0fa6ff9e --- /dev/null +++ b/generated/stackstate_api/docs/OtelComponentMappingRank.md @@ -0,0 +1,51 @@ +# OtelComponentMappingRank + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Specificity** | **float64** | Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. Recommended ranges: 1–99 environment & infrastructure; 100–199 platform & orchestration (k8s, otel base); 200–299 application / service; 300–399 runtime / SDK / language; 400+ user overrides. | + +## Methods + +### NewOtelComponentMappingRank + +`func NewOtelComponentMappingRank(specificity float64, ) *OtelComponentMappingRank` + +NewOtelComponentMappingRank instantiates a new OtelComponentMappingRank 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 + +### NewOtelComponentMappingRankWithDefaults + +`func NewOtelComponentMappingRankWithDefaults() *OtelComponentMappingRank` + +NewOtelComponentMappingRankWithDefaults instantiates a new OtelComponentMappingRank 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 + +### GetSpecificity + +`func (o *OtelComponentMappingRank) GetSpecificity() float64` + +GetSpecificity returns the Specificity field if non-nil, zero value otherwise. + +### GetSpecificityOk + +`func (o *OtelComponentMappingRank) GetSpecificityOk() (*float64, bool)` + +GetSpecificityOk returns a tuple with the Specificity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpecificity + +`func (o *OtelComponentMappingRank) SetSpecificity(v float64)` + +SetSpecificity sets Specificity 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/OtelMappingApi.md b/generated/stackstate_api/docs/OtelMappingApi.md index d7a865bd..f8c70e2c 100644 --- a/generated/stackstate_api/docs/OtelMappingApi.md +++ b/generated/stackstate_api/docs/OtelMappingApi.md @@ -558,7 +558,7 @@ import ( ) func main() { - upsertOtelComponentMappingsRequest := *openapiclient.NewUpsertOtelComponentMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelComponentMappingOutput("Identifier_example", "Name_example", "TypeName_example"), int64(123)) // UpsertOtelComponentMappingsRequest | Otel Component Mapping to create/update + upsertOtelComponentMappingsRequest := *openapiclient.NewUpsertOtelComponentMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelComponentMappingOutput("Identifier_example", "Name_example", "TypeName_example"), int64(123), *openapiclient.NewOtelComponentMappingRank(float64(123))) // UpsertOtelComponentMappingsRequest | Otel Component Mapping to create/update configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md b/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md index 1f7086df..9d564062 100644 --- a/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md +++ b/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md @@ -11,12 +11,13 @@ Name | Type | Description | Notes **Output** | [**OtelComponentMappingOutput**](OtelComponentMappingOutput.md) | | **Vars** | Pointer to [**[]OtelVariableMapping**](OtelVariableMapping.md) | | [optional] **ExpireAfter** | **int64** | | +**Rank** | [**OtelComponentMappingRank**](OtelComponentMappingRank.md) | | ## Methods ### NewUpsertOtelComponentMappingsRequest -`func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, ) *UpsertOtelComponentMappingsRequest` +`func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank, ) *UpsertOtelComponentMappingsRequest` NewUpsertOtelComponentMappingsRequest instantiates a new UpsertOtelComponentMappingsRequest object This constructor will assign default values to properties that have it defined, @@ -181,6 +182,26 @@ and a boolean to check if the value has been set. SetExpireAfter sets ExpireAfter field to given value. +### GetRank + +`func (o *UpsertOtelComponentMappingsRequest) GetRank() OtelComponentMappingRank` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *UpsertOtelComponentMappingsRequest) GetRankOk() (*OtelComponentMappingRank, bool)` + +GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRank + +`func (o *UpsertOtelComponentMappingsRequest) SetRank(v OtelComponentMappingRank)` + +SetRank sets Rank 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/model_component_field.go b/generated/stackstate_api/model_component_field.go index d250f927..022adee6 100644 --- a/generated/stackstate_api/model_component_field.go +++ b/generated/stackstate_api/model_component_field.go @@ -23,6 +23,7 @@ type ComponentField struct { ErrorField *ErrorField HealthField *HealthField LinkField *LinkField + ListField *ListField MapField *MapField MetricField *MetricField NumericField *NumericField @@ -65,6 +66,13 @@ func LinkFieldAsComponentField(v *LinkField) ComponentField { } } +// ListFieldAsComponentField is a convenience function that returns ListField wrapped in ComponentField +func ListFieldAsComponentField(v *ListField) ComponentField { + return ComponentField{ + ListField: v, + } +} + // MapFieldAsComponentField is a convenience function that returns MapField wrapped in ComponentField func MapFieldAsComponentField(v *MapField) ComponentField { return ComponentField{ @@ -170,6 +178,18 @@ func (dst *ComponentField) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'ListField' + if jsonDict["_type"] == "ListField" { + // try to unmarshal JSON data into ListField + err = json.Unmarshal(data, &dst.ListField) + if err == nil { + return nil // data stored in dst.ListField, return on the first match + } else { + dst.ListField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as ListField: %s", err.Error()) + } + } + // check if the discriminator value is 'MapField' if jsonDict["_type"] == "MapField" { // try to unmarshal JSON data into MapField @@ -255,6 +275,10 @@ func (src ComponentField) MarshalJSON() ([]byte, error) { return json.Marshal(&src.LinkField) } + if src.ListField != nil { + return json.Marshal(&src.ListField) + } + if src.MapField != nil { return json.Marshal(&src.MapField) } @@ -303,6 +327,10 @@ func (obj *ComponentField) GetActualInstance() interface{} { return obj.LinkField } + if obj.ListField != nil { + return obj.ListField + } + if obj.MapField != nil { return obj.MapField } diff --git a/generated/stackstate_api/model_list_field.go b/generated/stackstate_api/model_list_field.go new file mode 100644 index 00000000..c386c3aa --- /dev/null +++ b/generated/stackstate_api/model_list_field.go @@ -0,0 +1,261 @@ +/* +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" +) + +// ListField struct for ListField +type ListField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Values []string `json:"values" yaml:"values"` + AsTag bool `json:"asTag" yaml:"asTag"` +} + +// NewListField instantiates a new ListField 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 NewListField(fieldId string, title string, type_ string, values []string, asTag bool) *ListField { + this := ListField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Values = values + this.AsTag = asTag + return &this +} + +// NewListFieldWithDefaults instantiates a new ListField 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 NewListFieldWithDefaults() *ListField { + this := ListField{} + var asTag bool = false + this.AsTag = asTag + return &this +} + +// GetFieldId returns the FieldId field value +func (o *ListField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *ListField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *ListField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *ListField) 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 *ListField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ListField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ListField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ListField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ListField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *ListField) 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 *ListField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ListField) SetType(v string) { + o.Type = v +} + +// GetValues returns the Values field value +func (o *ListField) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *ListField) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *ListField) SetValues(v []string) { + o.Values = v +} + +// GetAsTag returns the AsTag field value +func (o *ListField) GetAsTag() bool { + if o == nil { + var ret bool + return ret + } + + return o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value +// and a boolean to check if the value has been set. +func (o *ListField) GetAsTagOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AsTag, true +} + +// SetAsTag sets field value +func (o *ListField) SetAsTag(v bool) { + o.AsTag = v +} + +func (o ListField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["values"] = o.Values + } + if true { + toSerialize["asTag"] = o.AsTag + } + return json.Marshal(toSerialize) +} + +type NullableListField struct { + value *ListField + isSet bool +} + +func (v NullableListField) Get() *ListField { + return v.value +} + +func (v *NullableListField) Set(val *ListField) { + v.value = val + v.isSet = true +} + +func (v NullableListField) IsSet() bool { + return v.isSet +} + +func (v *NullableListField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListField(val *ListField) *NullableListField { + return &NullableListField{value: val, isSet: true} +} + +func (v NullableListField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_list_field_all_of.go b/generated/stackstate_api/model_list_field_all_of.go new file mode 100644 index 00000000..26549c33 --- /dev/null +++ b/generated/stackstate_api/model_list_field_all_of.go @@ -0,0 +1,167 @@ +/* +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" +) + +// ListFieldAllOf struct for ListFieldAllOf +type ListFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Values []string `json:"values" yaml:"values"` + AsTag bool `json:"asTag" yaml:"asTag"` +} + +// NewListFieldAllOf instantiates a new ListFieldAllOf 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 NewListFieldAllOf(type_ string, values []string, asTag bool) *ListFieldAllOf { + this := ListFieldAllOf{} + this.Type = type_ + this.Values = values + this.AsTag = asTag + return &this +} + +// NewListFieldAllOfWithDefaults instantiates a new ListFieldAllOf 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 NewListFieldAllOfWithDefaults() *ListFieldAllOf { + this := ListFieldAllOf{} + var asTag bool = false + this.AsTag = asTag + return &this +} + +// GetType returns the Type field value +func (o *ListFieldAllOf) 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 *ListFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ListFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetValues returns the Values field value +func (o *ListFieldAllOf) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *ListFieldAllOf) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *ListFieldAllOf) SetValues(v []string) { + o.Values = v +} + +// GetAsTag returns the AsTag field value +func (o *ListFieldAllOf) GetAsTag() bool { + if o == nil { + var ret bool + return ret + } + + return o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value +// and a boolean to check if the value has been set. +func (o *ListFieldAllOf) GetAsTagOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AsTag, true +} + +// SetAsTag sets field value +func (o *ListFieldAllOf) SetAsTag(v bool) { + o.AsTag = v +} + +func (o ListFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["values"] = o.Values + } + if true { + toSerialize["asTag"] = o.AsTag + } + return json.Marshal(toSerialize) +} + +type NullableListFieldAllOf struct { + value *ListFieldAllOf + isSet bool +} + +func (v NullableListFieldAllOf) Get() *ListFieldAllOf { + return v.value +} + +func (v *NullableListFieldAllOf) Set(val *ListFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableListFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableListFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFieldAllOf(val *ListFieldAllOf) *NullableListFieldAllOf { + return &NullableListFieldAllOf{value: val, isSet: true} +} + +func (v NullableListFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_otel_component_mapping.go b/generated/stackstate_api/model_otel_component_mapping.go index c4be746c..ca32fcee 100644 --- a/generated/stackstate_api/model_otel_component_mapping.go +++ b/generated/stackstate_api/model_otel_component_mapping.go @@ -25,13 +25,14 @@ type OtelComponentMapping struct { Output OtelComponentMappingOutput `json:"output" yaml:"output"` Vars []OtelVariableMapping `json:"vars,omitempty" yaml:"vars,omitempty"` ExpireAfter int64 `json:"expireAfter" yaml:"expireAfter"` + Rank OtelComponentMappingRank `json:"rank" yaml:"rank"` } // NewOtelComponentMapping instantiates a new OtelComponentMapping 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 NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64) *OtelComponentMapping { +func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank) *OtelComponentMapping { this := OtelComponentMapping{} this.Type = type_ this.Identifier = identifier @@ -39,6 +40,7 @@ func NewOtelComponentMapping(type_ string, identifier string, name string, input this.Input = input this.Output = output this.ExpireAfter = expireAfter + this.Rank = rank return &this } @@ -258,6 +260,30 @@ func (o *OtelComponentMapping) SetExpireAfter(v int64) { o.ExpireAfter = v } +// GetRank returns the Rank field value +func (o *OtelComponentMapping) GetRank() OtelComponentMappingRank { + if o == nil { + var ret OtelComponentMappingRank + return ret + } + + return o.Rank +} + +// GetRankOk returns a tuple with the Rank field value +// and a boolean to check if the value has been set. +func (o *OtelComponentMapping) GetRankOk() (*OtelComponentMappingRank, bool) { + if o == nil { + return nil, false + } + return &o.Rank, true +} + +// SetRank sets field value +func (o *OtelComponentMapping) SetRank(v OtelComponentMappingRank) { + o.Rank = v +} + func (o OtelComponentMapping) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -284,6 +310,9 @@ func (o OtelComponentMapping) MarshalJSON() ([]byte, error) { if true { toSerialize["expireAfter"] = o.ExpireAfter } + if true { + toSerialize["rank"] = o.Rank + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_otel_component_mapping_output.go b/generated/stackstate_api/model_otel_component_mapping_output.go index 857daf36..6f5ee5ca 100644 --- a/generated/stackstate_api/model_otel_component_mapping_output.go +++ b/generated/stackstate_api/model_otel_component_mapping_output.go @@ -22,11 +22,9 @@ type OtelComponentMappingOutput 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']` Name string `json:"name" yaml:"name"` // 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']` - TypeIdentifier *string `json:"typeIdentifier,omitempty" yaml:"typeIdentifier,omitempty"` - Required *OtelComponentMappingFieldMapping `json:"required,omitempty" yaml:"required,omitempty"` - Optional *OtelComponentMappingFieldMapping `json:"optional,omitempty" yaml:"optional,omitempty"` + TypeName string `json:"typeName" yaml:"typeName"` + Required *OtelComponentMappingFieldMapping `json:"required,omitempty" yaml:"required,omitempty"` + Optional *OtelComponentMappingFieldMapping `json:"optional,omitempty" yaml:"optional,omitempty"` } // NewOtelComponentMappingOutput instantiates a new OtelComponentMappingOutput object @@ -121,38 +119,6 @@ func (o *OtelComponentMappingOutput) SetTypeName(v string) { o.TypeName = v } -// GetTypeIdentifier returns the TypeIdentifier field value if set, zero value otherwise. -func (o *OtelComponentMappingOutput) GetTypeIdentifier() string { - if o == nil || o.TypeIdentifier == nil { - var ret string - return ret - } - return *o.TypeIdentifier -} - -// GetTypeIdentifierOk returns a tuple with the TypeIdentifier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetTypeIdentifierOk() (*string, bool) { - if o == nil || o.TypeIdentifier == nil { - return nil, false - } - return o.TypeIdentifier, true -} - -// HasTypeIdentifier returns a boolean if a field has been set. -func (o *OtelComponentMappingOutput) HasTypeIdentifier() bool { - if o != nil && o.TypeIdentifier != nil { - return true - } - - return false -} - -// SetTypeIdentifier gets a reference to the given string and assigns it to the TypeIdentifier field. -func (o *OtelComponentMappingOutput) SetTypeIdentifier(v string) { - o.TypeIdentifier = &v -} - // GetRequired returns the Required field value if set, zero value otherwise. func (o *OtelComponentMappingOutput) GetRequired() OtelComponentMappingFieldMapping { if o == nil || o.Required == nil { @@ -228,9 +194,6 @@ func (o OtelComponentMappingOutput) MarshalJSON() ([]byte, error) { if true { toSerialize["typeName"] = o.TypeName } - if o.TypeIdentifier != nil { - toSerialize["typeIdentifier"] = o.TypeIdentifier - } if o.Required != nil { toSerialize["required"] = o.Required } diff --git a/generated/stackstate_api/model_otel_component_mapping_rank.go b/generated/stackstate_api/model_otel_component_mapping_rank.go new file mode 100644 index 00000000..bfea5820 --- /dev/null +++ b/generated/stackstate_api/model_otel_component_mapping_rank.go @@ -0,0 +1,108 @@ +/* +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" +) + +// OtelComponentMappingRank struct for OtelComponentMappingRank +type OtelComponentMappingRank struct { + // Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. Recommended ranges: 1–99 environment & infrastructure; 100–199 platform & orchestration (k8s, otel base); 200–299 application / service; 300–399 runtime / SDK / language; 400+ user overrides. + Specificity float64 `json:"specificity" yaml:"specificity"` +} + +// NewOtelComponentMappingRank instantiates a new OtelComponentMappingRank 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 NewOtelComponentMappingRank(specificity float64) *OtelComponentMappingRank { + this := OtelComponentMappingRank{} + this.Specificity = specificity + return &this +} + +// NewOtelComponentMappingRankWithDefaults instantiates a new OtelComponentMappingRank 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 NewOtelComponentMappingRankWithDefaults() *OtelComponentMappingRank { + this := OtelComponentMappingRank{} + return &this +} + +// GetSpecificity returns the Specificity field value +func (o *OtelComponentMappingRank) GetSpecificity() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Specificity +} + +// GetSpecificityOk returns a tuple with the Specificity field value +// and a boolean to check if the value has been set. +func (o *OtelComponentMappingRank) GetSpecificityOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Specificity, true +} + +// SetSpecificity sets field value +func (o *OtelComponentMappingRank) SetSpecificity(v float64) { + o.Specificity = v +} + +func (o OtelComponentMappingRank) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["specificity"] = o.Specificity + } + return json.Marshal(toSerialize) +} + +type NullableOtelComponentMappingRank struct { + value *OtelComponentMappingRank + isSet bool +} + +func (v NullableOtelComponentMappingRank) Get() *OtelComponentMappingRank { + return v.value +} + +func (v *NullableOtelComponentMappingRank) Set(val *OtelComponentMappingRank) { + v.value = val + v.isSet = true +} + +func (v NullableOtelComponentMappingRank) IsSet() bool { + return v.isSet +} + +func (v *NullableOtelComponentMappingRank) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOtelComponentMappingRank(val *OtelComponentMappingRank) *NullableOtelComponentMappingRank { + return &NullableOtelComponentMappingRank{value: val, isSet: true} +} + +func (v NullableOtelComponentMappingRank) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOtelComponentMappingRank) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_upsert_otel_component_mappings_request.go b/generated/stackstate_api/model_upsert_otel_component_mappings_request.go index 317bf5a2..e1aa2211 100644 --- a/generated/stackstate_api/model_upsert_otel_component_mappings_request.go +++ b/generated/stackstate_api/model_upsert_otel_component_mappings_request.go @@ -24,19 +24,21 @@ type UpsertOtelComponentMappingsRequest struct { Output OtelComponentMappingOutput `json:"output" yaml:"output"` Vars []OtelVariableMapping `json:"vars,omitempty" yaml:"vars,omitempty"` ExpireAfter int64 `json:"expireAfter" yaml:"expireAfter"` + Rank OtelComponentMappingRank `json:"rank" yaml:"rank"` } // NewUpsertOtelComponentMappingsRequest instantiates a new UpsertOtelComponentMappingsRequest 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 NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64) *UpsertOtelComponentMappingsRequest { +func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank) *UpsertOtelComponentMappingsRequest { this := UpsertOtelComponentMappingsRequest{} this.Identifier = identifier this.Name = name this.Input = input this.Output = output this.ExpireAfter = expireAfter + this.Rank = rank return &this } @@ -232,6 +234,30 @@ func (o *UpsertOtelComponentMappingsRequest) SetExpireAfter(v int64) { o.ExpireAfter = v } +// GetRank returns the Rank field value +func (o *UpsertOtelComponentMappingsRequest) GetRank() OtelComponentMappingRank { + if o == nil { + var ret OtelComponentMappingRank + return ret + } + + return o.Rank +} + +// GetRankOk returns a tuple with the Rank field value +// and a boolean to check if the value has been set. +func (o *UpsertOtelComponentMappingsRequest) GetRankOk() (*OtelComponentMappingRank, bool) { + if o == nil { + return nil, false + } + return &o.Rank, true +} + +// SetRank sets field value +func (o *UpsertOtelComponentMappingsRequest) SetRank(v OtelComponentMappingRank) { + o.Rank = v +} + func (o UpsertOtelComponentMappingsRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -255,6 +281,9 @@ func (o UpsertOtelComponentMappingsRequest) MarshalJSON() ([]byte, error) { if true { toSerialize["expireAfter"] = o.ExpireAfter } + if true { + toSerialize["rank"] = o.Rank + } return json.Marshal(toSerialize) } diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index 8394514b..171a60e4 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -a3fb9f1489d4c65e87344c3cb521b3a15e96399d \ No newline at end of file +9bfdc917b39b23c720527bd93cd9b426789a2e1b \ No newline at end of file From 3da9750119d6b477d57a38cc3c337fe6afc1ab04 Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Wed, 24 Jun 2026 21:23:03 +0200 Subject: [PATCH 2/4] STAC-24991: propagate rank on .UpsertOtelComponentMappingsRequest --- cmd/otelcomponentmapping/otelcomponentmapping_apply.go | 1 + cmd/otelcomponentmapping/otelcomponentmapping_edit.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/otelcomponentmapping/otelcomponentmapping_apply.go b/cmd/otelcomponentmapping/otelcomponentmapping_apply.go index 1d732236..b0b3ebf6 100644 --- a/cmd/otelcomponentmapping/otelcomponentmapping_apply.go +++ b/cmd/otelcomponentmapping/otelcomponentmapping_apply.go @@ -66,6 +66,7 @@ func applyYAMLOtelComponentMapping(cli *di.Deps, api *stackstate_api.APIClient, Output: mapping.Output, Vars: mapping.Vars, ExpireAfter: mapping.ExpireAfter, + Rank: mapping.Rank, } upserted, resp, err := api.OtelMappingApi.UpsertOtelComponentMappings(cli.Context).UpsertOtelComponentMappingsRequest(reqObj).Execute() if err != nil { diff --git a/cmd/otelcomponentmapping/otelcomponentmapping_edit.go b/cmd/otelcomponentmapping/otelcomponentmapping_edit.go index fbbed752..fdd1abbf 100644 --- a/cmd/otelcomponentmapping/otelcomponentmapping_edit.go +++ b/cmd/otelcomponentmapping/otelcomponentmapping_edit.go @@ -79,6 +79,7 @@ func RunEditComponentMappingCommand(args *EditArgs) di.CmdWithApiFn { Output: editedMapping.Output, Vars: editedMapping.Vars, ExpireAfter: editedMapping.ExpireAfter, + Rank: editedMapping.Rank, } upserted, resp, err := api.OtelMappingApi.UpsertOtelComponentMappings(cli.Context).UpsertOtelComponentMappingsRequest(reqObj).Execute() if err != nil { From 420b61505a2a18d7df2c939aab1ffd0618741b31 Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Thu, 25 Jun 2026 10:47:35 +0200 Subject: [PATCH 3/4] STAC-24991: add TagProjection and TagField --- .../stackstate_api/.openapi-generator/FILES | 10 +- generated/stackstate_api/README.md | 5 +- generated/stackstate_api/api/openapi.yaml | 31 +++-- .../docs/ComponentHighlightProjection.md | 26 ----- generated/stackstate_api/docs/MapField.md | 23 +--- .../stackstate_api/docs/MapFieldAllOf.md | 23 +--- .../stackstate_api/docs/MapProjection.md | 26 ----- .../docs/{ListField.md => TagField.md} | 67 ++++------- .../{ListFieldAllOf.md => TagFieldAllOf.md} | 47 +++----- .../stackstate_api/docs/TagProjection.md | 51 +++++++++ .../stackstate_api/model_component_field.go | 56 ++++----- .../model_component_highlight_projection.go | 28 +++++ generated/stackstate_api/model_map_field.go | 33 +----- .../stackstate_api/model_map_field_all_of.go | 33 +----- .../stackstate_api/model_map_projection.go | 42 +------ ...model_list_field.go => model_tag_field.go} | 101 ++++++----------- ...ld_all_of.go => model_tag_field_all_of.go} | 81 ++++--------- .../stackstate_api/model_tag_projection.go | 107 ++++++++++++++++++ stackstate_openapi/openapi_version | 2 +- 19 files changed, 340 insertions(+), 452 deletions(-) rename generated/stackstate_api/docs/{ListField.md => TagField.md} (61%) rename generated/stackstate_api/docs/{ListFieldAllOf.md => TagFieldAllOf.md} (53%) create mode 100644 generated/stackstate_api/docs/TagProjection.md rename generated/stackstate_api/{model_list_field.go => model_tag_field.go} (65%) rename generated/stackstate_api/{model_list_field_all_of.go => model_tag_field_all_of.go} (55%) create mode 100644 generated/stackstate_api/model_tag_projection.go diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index 60a59218..0d886294 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -261,8 +261,6 @@ docs/LinkCell.md docs/LinkField.md docs/LinkFieldAllOf.md docs/LinkMetaDisplay.md -docs/ListField.md -docs/ListFieldAllOf.md docs/LockedResponse.md docs/LogLevel.md docs/LogSeverity.md @@ -579,7 +577,10 @@ docs/SystemNotification.md docs/SystemNotificationSeverity.md docs/SystemNotifications.md docs/SystemNotificationsApi.md +docs/TagField.md +docs/TagFieldAllOf.md docs/TagFilter.md +docs/TagProjection.md docs/TeamsChannelRefId.md docs/TeamsChannelWriteSchema.md docs/TeamsNotificationChannel.md @@ -861,8 +862,6 @@ model_link_cell.go model_link_field.go model_link_field_all_of.go model_link_meta_display.go -model_list_field.go -model_list_field_all_of.go model_locked_response.go model_log_level.go model_log_severity.go @@ -1158,7 +1157,10 @@ model_suggestions.go model_system_notification.go model_system_notification_severity.go model_system_notifications.go +model_tag_field.go +model_tag_field_all_of.go model_tag_filter.go +model_tag_projection.go model_teams_channel_ref_id.go model_teams_channel_write_schema.go model_teams_notification_channel.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index 50525e87..b0523d35 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -471,8 +471,6 @@ Class | Method | HTTP request | Description - [LinkField](docs/LinkField.md) - [LinkFieldAllOf](docs/LinkFieldAllOf.md) - [LinkMetaDisplay](docs/LinkMetaDisplay.md) - - [ListField](docs/ListField.md) - - [ListFieldAllOf](docs/ListFieldAllOf.md) - [LockedResponse](docs/LockedResponse.md) - [LogLevel](docs/LogLevel.md) - [LogSeverity](docs/LogSeverity.md) @@ -768,7 +766,10 @@ Class | Method | HTTP request | Description - [SystemNotification](docs/SystemNotification.md) - [SystemNotificationSeverity](docs/SystemNotificationSeverity.md) - [SystemNotifications](docs/SystemNotifications.md) + - [TagField](docs/TagField.md) + - [TagFieldAllOf](docs/TagFieldAllOf.md) - [TagFilter](docs/TagFilter.md) + - [TagProjection](docs/TagProjection.md) - [TeamsChannelRefId](docs/TeamsChannelRefId.md) - [TeamsChannelWriteSchema](docs/TeamsChannelWriteSchema.md) - [TeamsNotificationChannel](docs/TeamsNotificationChannel.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index 629d6c58..876af827 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -14648,7 +14648,7 @@ components: - $ref: '#/components/schemas/DurationField' - $ref: '#/components/schemas/RatioField' - $ref: '#/components/schemas/MapField' - - $ref: '#/components/schemas/ListField' + - $ref: '#/components/schemas/TagField' ErrorField: allOf: - $ref: '#/components/schemas/BaseComponentField' @@ -14701,10 +14701,10 @@ components: allOf: - $ref: '#/components/schemas/BaseComponentField' - $ref: '#/components/schemas/MapField_allOf' - ListField: + TagField: allOf: - $ref: '#/components/schemas/BaseComponentField' - - $ref: '#/components/schemas/ListField_allOf' + - $ref: '#/components/schemas/TagField_allOf' ExternalComponent: example: syncName: syncName @@ -20691,6 +20691,7 @@ components: - $ref: '#/components/schemas/RatioProjection' - $ref: '#/components/schemas/ContainerImageProjection' - $ref: '#/components/schemas/MapProjection' + - $ref: '#/components/schemas/TagProjection' MapProjection: properties: _type: @@ -20700,13 +20701,19 @@ components: value: description: "Cel expression that returns a map" type: string - asTags: - default: true - type: boolean required: - _type - value type: object + TagProjection: + properties: + _type: + enum: + - TagProjection + type: string + required: + - _type + type: object PresentationHighlightProvisioning: description: Provisioning section of a component in the highlight presentation. The `topologySourceSelector` field is used to identify the external component @@ -21511,30 +21518,22 @@ components: additionalProperties: type: string type: object - asTag: - default: false - type: boolean required: - _type - - asTag - values type: object - ListField_allOf: + TagField_allOf: properties: _type: enum: - - ListField + - TagField type: string values: items: type: string type: array - asTag: - default: false - type: boolean required: - _type - - asTag - values type: object TimelineSummaryRequest_arguments: diff --git a/generated/stackstate_api/docs/ComponentHighlightProjection.md b/generated/stackstate_api/docs/ComponentHighlightProjection.md index f0d4bbe3..216a7d74 100644 --- a/generated/stackstate_api/docs/ComponentHighlightProjection.md +++ b/generated/stackstate_api/docs/ComponentHighlightProjection.md @@ -21,7 +21,6 @@ Name | Type | Description | Notes **Status** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] **ImageId** | **string** | Cel expression that returns a string | **ImageName** | **string** | Cel expression that returns a string | -**AsTags** | Pointer to **bool** | | [optional] [default to true] ## Methods @@ -427,31 +426,6 @@ and a boolean to check if the value has been set. SetImageName sets ImageName field to given value. -### GetAsTags - -`func (o *ComponentHighlightProjection) GetAsTags() bool` - -GetAsTags returns the AsTags field if non-nil, zero value otherwise. - -### GetAsTagsOk - -`func (o *ComponentHighlightProjection) GetAsTagsOk() (*bool, bool)` - -GetAsTagsOk returns a tuple with the AsTags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTags - -`func (o *ComponentHighlightProjection) SetAsTags(v bool)` - -SetAsTags sets AsTags field to given value. - -### HasAsTags - -`func (o *ComponentHighlightProjection) HasAsTags() bool` - -HasAsTags 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/MapField.md b/generated/stackstate_api/docs/MapField.md index cf367df7..9ddbecb6 100644 --- a/generated/stackstate_api/docs/MapField.md +++ b/generated/stackstate_api/docs/MapField.md @@ -9,13 +9,12 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Type** | **string** | | **Values** | **map[string]string** | | -**AsTag** | **bool** | | [default to false] ## Methods ### NewMapField -`func NewMapField(fieldId string, title string, type_ string, values map[string]string, asTag bool, ) *MapField` +`func NewMapField(fieldId string, title string, type_ string, values map[string]string, ) *MapField` NewMapField instantiates a new MapField object This constructor will assign default values to properties that have it defined, @@ -135,26 +134,6 @@ and a boolean to check if the value has been set. SetValues sets Values field to given value. -### GetAsTag - -`func (o *MapField) GetAsTag() bool` - -GetAsTag returns the AsTag field if non-nil, zero value otherwise. - -### GetAsTagOk - -`func (o *MapField) GetAsTagOk() (*bool, bool)` - -GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTag - -`func (o *MapField) SetAsTag(v bool)` - -SetAsTag sets AsTag 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/MapFieldAllOf.md b/generated/stackstate_api/docs/MapFieldAllOf.md index 3560806a..87de760e 100644 --- a/generated/stackstate_api/docs/MapFieldAllOf.md +++ b/generated/stackstate_api/docs/MapFieldAllOf.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Values** | **map[string]string** | | -**AsTag** | **bool** | | [default to false] ## Methods ### NewMapFieldAllOf -`func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool, ) *MapFieldAllOf` +`func NewMapFieldAllOf(type_ string, values map[string]string, ) *MapFieldAllOf` NewMapFieldAllOf instantiates a new MapFieldAllOf object This constructor will assign default values to properties that have it defined, @@ -67,26 +66,6 @@ and a boolean to check if the value has been set. SetValues sets Values field to given value. -### GetAsTag - -`func (o *MapFieldAllOf) GetAsTag() bool` - -GetAsTag returns the AsTag field if non-nil, zero value otherwise. - -### GetAsTagOk - -`func (o *MapFieldAllOf) GetAsTagOk() (*bool, bool)` - -GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTag - -`func (o *MapFieldAllOf) SetAsTag(v bool)` - -SetAsTag sets AsTag 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/MapProjection.md b/generated/stackstate_api/docs/MapProjection.md index 42d19dd5..23420e30 100644 --- a/generated/stackstate_api/docs/MapProjection.md +++ b/generated/stackstate_api/docs/MapProjection.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Value** | **string** | Cel expression that returns a map<string,dyn> | -**AsTags** | Pointer to **bool** | | [optional] [default to true] ## Methods @@ -67,31 +66,6 @@ and a boolean to check if the value has been set. SetValue sets Value field to given value. -### GetAsTags - -`func (o *MapProjection) GetAsTags() bool` - -GetAsTags returns the AsTags field if non-nil, zero value otherwise. - -### GetAsTagsOk - -`func (o *MapProjection) GetAsTagsOk() (*bool, bool)` - -GetAsTagsOk returns a tuple with the AsTags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTags - -`func (o *MapProjection) SetAsTags(v bool)` - -SetAsTags sets AsTags field to given value. - -### HasAsTags - -`func (o *MapProjection) HasAsTags() bool` - -HasAsTags 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/ListField.md b/generated/stackstate_api/docs/TagField.md similarity index 61% rename from generated/stackstate_api/docs/ListField.md rename to generated/stackstate_api/docs/TagField.md index 0405eef5..61279f59 100644 --- a/generated/stackstate_api/docs/ListField.md +++ b/generated/stackstate_api/docs/TagField.md @@ -1,4 +1,4 @@ -# ListField +# TagField ## Properties @@ -9,152 +9,131 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Type** | **string** | | **Values** | **[]string** | | -**AsTag** | **bool** | | [default to false] ## Methods -### NewListField +### NewTagField -`func NewListField(fieldId string, title string, type_ string, values []string, asTag bool, ) *ListField` +`func NewTagField(fieldId string, title string, type_ string, values []string, ) *TagField` -NewListField instantiates a new ListField object +NewTagField instantiates a new TagField 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 -### NewListFieldWithDefaults +### NewTagFieldWithDefaults -`func NewListFieldWithDefaults() *ListField` +`func NewTagFieldWithDefaults() *TagField` -NewListFieldWithDefaults instantiates a new ListField object +NewTagFieldWithDefaults instantiates a new TagField 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 ### GetFieldId -`func (o *ListField) GetFieldId() string` +`func (o *TagField) GetFieldId() string` GetFieldId returns the FieldId field if non-nil, zero value otherwise. ### GetFieldIdOk -`func (o *ListField) GetFieldIdOk() (*string, bool)` +`func (o *TagField) GetFieldIdOk() (*string, bool)` GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFieldId -`func (o *ListField) SetFieldId(v string)` +`func (o *TagField) SetFieldId(v string)` SetFieldId sets FieldId field to given value. ### GetTitle -`func (o *ListField) GetTitle() string` +`func (o *TagField) GetTitle() string` GetTitle returns the Title field if non-nil, zero value otherwise. ### GetTitleOk -`func (o *ListField) GetTitleOk() (*string, bool)` +`func (o *TagField) 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 *ListField) SetTitle(v string)` +`func (o *TagField) SetTitle(v string)` SetTitle sets Title field to given value. ### GetDescription -`func (o *ListField) GetDescription() string` +`func (o *TagField) GetDescription() string` GetDescription returns the Description field if non-nil, zero value otherwise. ### GetDescriptionOk -`func (o *ListField) GetDescriptionOk() (*string, bool)` +`func (o *TagField) GetDescriptionOk() (*string, bool)` GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDescription -`func (o *ListField) SetDescription(v string)` +`func (o *TagField) SetDescription(v string)` SetDescription sets Description field to given value. ### HasDescription -`func (o *ListField) HasDescription() bool` +`func (o *TagField) HasDescription() bool` HasDescription returns a boolean if a field has been set. ### GetType -`func (o *ListField) GetType() string` +`func (o *TagField) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ListField) GetTypeOk() (*string, bool)` +`func (o *TagField) 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 *ListField) SetType(v string)` +`func (o *TagField) SetType(v string)` SetType sets Type field to given value. ### GetValues -`func (o *ListField) GetValues() []string` +`func (o *TagField) GetValues() []string` GetValues returns the Values field if non-nil, zero value otherwise. ### GetValuesOk -`func (o *ListField) GetValuesOk() (*[]string, bool)` +`func (o *TagField) GetValuesOk() (*[]string, bool)` GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetValues -`func (o *ListField) SetValues(v []string)` +`func (o *TagField) SetValues(v []string)` SetValues sets Values field to given value. -### GetAsTag - -`func (o *ListField) GetAsTag() bool` - -GetAsTag returns the AsTag field if non-nil, zero value otherwise. - -### GetAsTagOk - -`func (o *ListField) GetAsTagOk() (*bool, bool)` - -GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTag - -`func (o *ListField) SetAsTag(v bool)` - -SetAsTag sets AsTag 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/ListFieldAllOf.md b/generated/stackstate_api/docs/TagFieldAllOf.md similarity index 53% rename from generated/stackstate_api/docs/ListFieldAllOf.md rename to generated/stackstate_api/docs/TagFieldAllOf.md index 20104043..48000992 100644 --- a/generated/stackstate_api/docs/ListFieldAllOf.md +++ b/generated/stackstate_api/docs/TagFieldAllOf.md @@ -1,4 +1,4 @@ -# ListFieldAllOf +# TagFieldAllOf ## Properties @@ -6,87 +6,66 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Values** | **[]string** | | -**AsTag** | **bool** | | [default to false] ## Methods -### NewListFieldAllOf +### NewTagFieldAllOf -`func NewListFieldAllOf(type_ string, values []string, asTag bool, ) *ListFieldAllOf` +`func NewTagFieldAllOf(type_ string, values []string, ) *TagFieldAllOf` -NewListFieldAllOf instantiates a new ListFieldAllOf object +NewTagFieldAllOf instantiates a new TagFieldAllOf 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 -### NewListFieldAllOfWithDefaults +### NewTagFieldAllOfWithDefaults -`func NewListFieldAllOfWithDefaults() *ListFieldAllOf` +`func NewTagFieldAllOfWithDefaults() *TagFieldAllOf` -NewListFieldAllOfWithDefaults instantiates a new ListFieldAllOf object +NewTagFieldAllOfWithDefaults instantiates a new TagFieldAllOf 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 *ListFieldAllOf) GetType() string` +`func (o *TagFieldAllOf) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ListFieldAllOf) GetTypeOk() (*string, bool)` +`func (o *TagFieldAllOf) 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 *ListFieldAllOf) SetType(v string)` +`func (o *TagFieldAllOf) SetType(v string)` SetType sets Type field to given value. ### GetValues -`func (o *ListFieldAllOf) GetValues() []string` +`func (o *TagFieldAllOf) GetValues() []string` GetValues returns the Values field if non-nil, zero value otherwise. ### GetValuesOk -`func (o *ListFieldAllOf) GetValuesOk() (*[]string, bool)` +`func (o *TagFieldAllOf) GetValuesOk() (*[]string, bool)` GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetValues -`func (o *ListFieldAllOf) SetValues(v []string)` +`func (o *TagFieldAllOf) SetValues(v []string)` SetValues sets Values field to given value. -### GetAsTag - -`func (o *ListFieldAllOf) GetAsTag() bool` - -GetAsTag returns the AsTag field if non-nil, zero value otherwise. - -### GetAsTagOk - -`func (o *ListFieldAllOf) GetAsTagOk() (*bool, bool)` - -GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTag - -`func (o *ListFieldAllOf) SetAsTag(v bool)` - -SetAsTag sets AsTag 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/TagProjection.md b/generated/stackstate_api/docs/TagProjection.md new file mode 100644 index 00000000..199d79a6 --- /dev/null +++ b/generated/stackstate_api/docs/TagProjection.md @@ -0,0 +1,51 @@ +# TagProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewTagProjection + +`func NewTagProjection(type_ string, ) *TagProjection` + +NewTagProjection instantiates a new TagProjection 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 + +### NewTagProjectionWithDefaults + +`func NewTagProjectionWithDefaults() *TagProjection` + +NewTagProjectionWithDefaults instantiates a new TagProjection 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 *TagProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagProjection) 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 *TagProjection) SetType(v string)` + +SetType sets Type 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/model_component_field.go b/generated/stackstate_api/model_component_field.go index 022adee6..d0a6a78b 100644 --- a/generated/stackstate_api/model_component_field.go +++ b/generated/stackstate_api/model_component_field.go @@ -23,11 +23,11 @@ type ComponentField struct { ErrorField *ErrorField HealthField *HealthField LinkField *LinkField - ListField *ListField MapField *MapField MetricField *MetricField NumericField *NumericField RatioField *RatioField + TagField *TagField TextField *TextField } @@ -66,13 +66,6 @@ func LinkFieldAsComponentField(v *LinkField) ComponentField { } } -// ListFieldAsComponentField is a convenience function that returns ListField wrapped in ComponentField -func ListFieldAsComponentField(v *ListField) ComponentField { - return ComponentField{ - ListField: v, - } -} - // MapFieldAsComponentField is a convenience function that returns MapField wrapped in ComponentField func MapFieldAsComponentField(v *MapField) ComponentField { return ComponentField{ @@ -101,6 +94,13 @@ func RatioFieldAsComponentField(v *RatioField) ComponentField { } } +// TagFieldAsComponentField is a convenience function that returns TagField wrapped in ComponentField +func TagFieldAsComponentField(v *TagField) ComponentField { + return ComponentField{ + TagField: v, + } +} + // TextFieldAsComponentField is a convenience function that returns TextField wrapped in ComponentField func TextFieldAsComponentField(v *TextField) ComponentField { return ComponentField{ @@ -178,18 +178,6 @@ func (dst *ComponentField) UnmarshalJSON(data []byte) error { } } - // check if the discriminator value is 'ListField' - if jsonDict["_type"] == "ListField" { - // try to unmarshal JSON data into ListField - err = json.Unmarshal(data, &dst.ListField) - if err == nil { - return nil // data stored in dst.ListField, return on the first match - } else { - dst.ListField = nil - return fmt.Errorf("Failed to unmarshal ComponentField as ListField: %s", err.Error()) - } - } - // check if the discriminator value is 'MapField' if jsonDict["_type"] == "MapField" { // try to unmarshal JSON data into MapField @@ -238,6 +226,18 @@ func (dst *ComponentField) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'TagField' + if jsonDict["_type"] == "TagField" { + // try to unmarshal JSON data into TagField + err = json.Unmarshal(data, &dst.TagField) + if err == nil { + return nil // data stored in dst.TagField, return on the first match + } else { + dst.TagField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as TagField: %s", err.Error()) + } + } + // check if the discriminator value is 'TextField' if jsonDict["_type"] == "TextField" { // try to unmarshal JSON data into TextField @@ -275,10 +275,6 @@ func (src ComponentField) MarshalJSON() ([]byte, error) { return json.Marshal(&src.LinkField) } - if src.ListField != nil { - return json.Marshal(&src.ListField) - } - if src.MapField != nil { return json.Marshal(&src.MapField) } @@ -295,6 +291,10 @@ func (src ComponentField) MarshalJSON() ([]byte, error) { return json.Marshal(&src.RatioField) } + if src.TagField != nil { + return json.Marshal(&src.TagField) + } + if src.TextField != nil { return json.Marshal(&src.TextField) } @@ -327,10 +327,6 @@ func (obj *ComponentField) GetActualInstance() interface{} { return obj.LinkField } - if obj.ListField != nil { - return obj.ListField - } - if obj.MapField != nil { return obj.MapField } @@ -347,6 +343,10 @@ func (obj *ComponentField) GetActualInstance() interface{} { return obj.RatioField } + if obj.TagField != nil { + return obj.TagField + } + if obj.TextField != nil { return obj.TextField } diff --git a/generated/stackstate_api/model_component_highlight_projection.go b/generated/stackstate_api/model_component_highlight_projection.go index 11fdba1f..cd2c0ad0 100644 --- a/generated/stackstate_api/model_component_highlight_projection.go +++ b/generated/stackstate_api/model_component_highlight_projection.go @@ -26,6 +26,7 @@ type ComponentHighlightProjection struct { MetricProjection *MetricProjection NumericProjection *NumericProjection RatioProjection *RatioProjection + TagProjection *TagProjection TextProjection *TextProjection } @@ -85,6 +86,13 @@ func RatioProjectionAsComponentHighlightProjection(v *RatioProjection) Component } } +// TagProjectionAsComponentHighlightProjection is a convenience function that returns TagProjection wrapped in ComponentHighlightProjection +func TagProjectionAsComponentHighlightProjection(v *TagProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + TagProjection: v, + } +} + // TextProjectionAsComponentHighlightProjection is a convenience function that returns TextProjection wrapped in ComponentHighlightProjection func TextProjectionAsComponentHighlightProjection(v *TextProjection) ComponentHighlightProjection { return ComponentHighlightProjection{ @@ -198,6 +206,18 @@ func (dst *ComponentHighlightProjection) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'TagProjection' + if jsonDict["_type"] == "TagProjection" { + // try to unmarshal JSON data into TagProjection + err = json.Unmarshal(data, &dst.TagProjection) + if err == nil { + return nil // data stored in dst.TagProjection, return on the first match + } else { + dst.TagProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as TagProjection: %s", err.Error()) + } + } + // check if the discriminator value is 'TextProjection' if jsonDict["_type"] == "TextProjection" { // try to unmarshal JSON data into TextProjection @@ -247,6 +267,10 @@ func (src ComponentHighlightProjection) MarshalJSON() ([]byte, error) { return json.Marshal(&src.RatioProjection) } + if src.TagProjection != nil { + return json.Marshal(&src.TagProjection) + } + if src.TextProjection != nil { return json.Marshal(&src.TextProjection) } @@ -291,6 +315,10 @@ func (obj *ComponentHighlightProjection) GetActualInstance() interface{} { return obj.RatioProjection } + if obj.TagProjection != nil { + return obj.TagProjection + } + if obj.TextProjection != nil { return obj.TextProjection } diff --git a/generated/stackstate_api/model_map_field.go b/generated/stackstate_api/model_map_field.go index 931e8387..a3f19c27 100644 --- a/generated/stackstate_api/model_map_field.go +++ b/generated/stackstate_api/model_map_field.go @@ -22,20 +22,18 @@ type MapField struct { Description *string `json:"description,omitempty" yaml:"description,omitempty"` Type string `json:"_type" yaml:"_type"` Values map[string]string `json:"values" yaml:"values"` - AsTag bool `json:"asTag" yaml:"asTag"` } // NewMapField instantiates a new MapField 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 NewMapField(fieldId string, title string, type_ string, values map[string]string, asTag bool) *MapField { +func NewMapField(fieldId string, title string, type_ string, values map[string]string) *MapField { this := MapField{} this.FieldId = fieldId this.Title = title this.Type = type_ this.Values = values - this.AsTag = asTag return &this } @@ -44,8 +42,6 @@ func NewMapField(fieldId string, title string, type_ string, values map[string]s // but it doesn't guarantee that properties required by API are set func NewMapFieldWithDefaults() *MapField { this := MapField{} - var asTag bool = false - this.AsTag = asTag return &this } @@ -177,30 +173,6 @@ func (o *MapField) SetValues(v map[string]string) { o.Values = v } -// GetAsTag returns the AsTag field value -func (o *MapField) GetAsTag() bool { - if o == nil { - var ret bool - return ret - } - - return o.AsTag -} - -// GetAsTagOk returns a tuple with the AsTag field value -// and a boolean to check if the value has been set. -func (o *MapField) GetAsTagOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AsTag, true -} - -// SetAsTag sets field value -func (o *MapField) SetAsTag(v bool) { - o.AsTag = v -} - func (o MapField) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -218,9 +190,6 @@ func (o MapField) MarshalJSON() ([]byte, error) { if true { toSerialize["values"] = o.Values } - if true { - toSerialize["asTag"] = o.AsTag - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_map_field_all_of.go b/generated/stackstate_api/model_map_field_all_of.go index 78281d1c..f28ab55e 100644 --- a/generated/stackstate_api/model_map_field_all_of.go +++ b/generated/stackstate_api/model_map_field_all_of.go @@ -19,18 +19,16 @@ import ( type MapFieldAllOf struct { Type string `json:"_type" yaml:"_type"` Values map[string]string `json:"values" yaml:"values"` - AsTag bool `json:"asTag" yaml:"asTag"` } // NewMapFieldAllOf instantiates a new MapFieldAllOf 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 NewMapFieldAllOf(type_ string, values map[string]string, asTag bool) *MapFieldAllOf { +func NewMapFieldAllOf(type_ string, values map[string]string) *MapFieldAllOf { this := MapFieldAllOf{} this.Type = type_ this.Values = values - this.AsTag = asTag return &this } @@ -39,8 +37,6 @@ func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool) *MapFi // but it doesn't guarantee that properties required by API are set func NewMapFieldAllOfWithDefaults() *MapFieldAllOf { this := MapFieldAllOf{} - var asTag bool = false - this.AsTag = asTag return &this } @@ -92,30 +88,6 @@ func (o *MapFieldAllOf) SetValues(v map[string]string) { o.Values = v } -// GetAsTag returns the AsTag field value -func (o *MapFieldAllOf) GetAsTag() bool { - if o == nil { - var ret bool - return ret - } - - return o.AsTag -} - -// GetAsTagOk returns a tuple with the AsTag field value -// and a boolean to check if the value has been set. -func (o *MapFieldAllOf) GetAsTagOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AsTag, true -} - -// SetAsTag sets field value -func (o *MapFieldAllOf) SetAsTag(v bool) { - o.AsTag = v -} - func (o MapFieldAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -124,9 +96,6 @@ func (o MapFieldAllOf) MarshalJSON() ([]byte, error) { if true { toSerialize["values"] = o.Values } - if true { - toSerialize["asTag"] = o.AsTag - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_map_projection.go b/generated/stackstate_api/model_map_projection.go index 94f50244..1d8ca74e 100644 --- a/generated/stackstate_api/model_map_projection.go +++ b/generated/stackstate_api/model_map_projection.go @@ -19,8 +19,7 @@ import ( type MapProjection struct { Type string `json:"_type" yaml:"_type"` // Cel expression that returns a map - Value string `json:"value" yaml:"value"` - AsTags *bool `json:"asTags,omitempty" yaml:"asTags,omitempty"` + Value string `json:"value" yaml:"value"` } // NewMapProjection instantiates a new MapProjection object @@ -31,8 +30,6 @@ func NewMapProjection(type_ string, value string) *MapProjection { this := MapProjection{} this.Type = type_ this.Value = value - var asTags bool = true - this.AsTags = &asTags return &this } @@ -41,8 +38,6 @@ func NewMapProjection(type_ string, value string) *MapProjection { // but it doesn't guarantee that properties required by API are set func NewMapProjectionWithDefaults() *MapProjection { this := MapProjection{} - var asTags bool = true - this.AsTags = &asTags return &this } @@ -94,38 +89,6 @@ func (o *MapProjection) SetValue(v string) { o.Value = v } -// GetAsTags returns the AsTags field value if set, zero value otherwise. -func (o *MapProjection) GetAsTags() bool { - if o == nil || o.AsTags == nil { - var ret bool - return ret - } - return *o.AsTags -} - -// GetAsTagsOk returns a tuple with the AsTags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MapProjection) GetAsTagsOk() (*bool, bool) { - if o == nil || o.AsTags == nil { - return nil, false - } - return o.AsTags, true -} - -// HasAsTags returns a boolean if a field has been set. -func (o *MapProjection) HasAsTags() bool { - if o != nil && o.AsTags != nil { - return true - } - - return false -} - -// SetAsTags gets a reference to the given bool and assigns it to the AsTags field. -func (o *MapProjection) SetAsTags(v bool) { - o.AsTags = &v -} - func (o MapProjection) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -134,9 +97,6 @@ func (o MapProjection) MarshalJSON() ([]byte, error) { if true { toSerialize["value"] = o.Value } - if o.AsTags != nil { - toSerialize["asTags"] = o.AsTags - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_list_field.go b/generated/stackstate_api/model_tag_field.go similarity index 65% rename from generated/stackstate_api/model_list_field.go rename to generated/stackstate_api/model_tag_field.go index c386c3aa..8117639a 100644 --- a/generated/stackstate_api/model_list_field.go +++ b/generated/stackstate_api/model_tag_field.go @@ -15,42 +15,38 @@ import ( "encoding/json" ) -// ListField struct for ListField -type ListField struct { +// TagField struct for TagField +type TagField struct { FieldId string `json:"fieldId" yaml:"fieldId"` Title string `json:"title" yaml:"title"` Description *string `json:"description,omitempty" yaml:"description,omitempty"` Type string `json:"_type" yaml:"_type"` Values []string `json:"values" yaml:"values"` - AsTag bool `json:"asTag" yaml:"asTag"` } -// NewListField instantiates a new ListField object +// NewTagField instantiates a new TagField 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 NewListField(fieldId string, title string, type_ string, values []string, asTag bool) *ListField { - this := ListField{} +func NewTagField(fieldId string, title string, type_ string, values []string) *TagField { + this := TagField{} this.FieldId = fieldId this.Title = title this.Type = type_ this.Values = values - this.AsTag = asTag return &this } -// NewListFieldWithDefaults instantiates a new ListField object +// NewTagFieldWithDefaults instantiates a new TagField 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 NewListFieldWithDefaults() *ListField { - this := ListField{} - var asTag bool = false - this.AsTag = asTag +func NewTagFieldWithDefaults() *TagField { + this := TagField{} return &this } // GetFieldId returns the FieldId field value -func (o *ListField) GetFieldId() string { +func (o *TagField) GetFieldId() string { if o == nil { var ret string return ret @@ -61,7 +57,7 @@ func (o *ListField) GetFieldId() string { // GetFieldIdOk returns a tuple with the FieldId field value // and a boolean to check if the value has been set. -func (o *ListField) GetFieldIdOk() (*string, bool) { +func (o *TagField) GetFieldIdOk() (*string, bool) { if o == nil { return nil, false } @@ -69,12 +65,12 @@ func (o *ListField) GetFieldIdOk() (*string, bool) { } // SetFieldId sets field value -func (o *ListField) SetFieldId(v string) { +func (o *TagField) SetFieldId(v string) { o.FieldId = v } // GetTitle returns the Title field value -func (o *ListField) GetTitle() string { +func (o *TagField) GetTitle() string { if o == nil { var ret string return ret @@ -85,7 +81,7 @@ func (o *ListField) GetTitle() string { // GetTitleOk returns a tuple with the Title field value // and a boolean to check if the value has been set. -func (o *ListField) GetTitleOk() (*string, bool) { +func (o *TagField) GetTitleOk() (*string, bool) { if o == nil { return nil, false } @@ -93,12 +89,12 @@ func (o *ListField) GetTitleOk() (*string, bool) { } // SetTitle sets field value -func (o *ListField) SetTitle(v string) { +func (o *TagField) SetTitle(v string) { o.Title = v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *ListField) GetDescription() string { +func (o *TagField) GetDescription() string { if o == nil || o.Description == nil { var ret string return ret @@ -108,7 +104,7 @@ func (o *ListField) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListField) GetDescriptionOk() (*string, bool) { +func (o *TagField) GetDescriptionOk() (*string, bool) { if o == nil || o.Description == nil { return nil, false } @@ -116,7 +112,7 @@ func (o *ListField) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *ListField) HasDescription() bool { +func (o *TagField) HasDescription() bool { if o != nil && o.Description != nil { return true } @@ -125,12 +121,12 @@ func (o *ListField) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ListField) SetDescription(v string) { +func (o *TagField) SetDescription(v string) { o.Description = &v } // GetType returns the Type field value -func (o *ListField) GetType() string { +func (o *TagField) GetType() string { if o == nil { var ret string return ret @@ -141,7 +137,7 @@ func (o *ListField) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ListField) GetTypeOk() (*string, bool) { +func (o *TagField) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -149,12 +145,12 @@ func (o *ListField) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *ListField) SetType(v string) { +func (o *TagField) SetType(v string) { o.Type = v } // GetValues returns the Values field value -func (o *ListField) GetValues() []string { +func (o *TagField) GetValues() []string { if o == nil { var ret []string return ret @@ -165,7 +161,7 @@ func (o *ListField) GetValues() []string { // GetValuesOk returns a tuple with the Values field value // and a boolean to check if the value has been set. -func (o *ListField) GetValuesOk() ([]string, bool) { +func (o *TagField) GetValuesOk() ([]string, bool) { if o == nil { return nil, false } @@ -173,35 +169,11 @@ func (o *ListField) GetValuesOk() ([]string, bool) { } // SetValues sets field value -func (o *ListField) SetValues(v []string) { +func (o *TagField) SetValues(v []string) { o.Values = v } -// GetAsTag returns the AsTag field value -func (o *ListField) GetAsTag() bool { - if o == nil { - var ret bool - return ret - } - - return o.AsTag -} - -// GetAsTagOk returns a tuple with the AsTag field value -// and a boolean to check if the value has been set. -func (o *ListField) GetAsTagOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AsTag, true -} - -// SetAsTag sets field value -func (o *ListField) SetAsTag(v bool) { - o.AsTag = v -} - -func (o ListField) MarshalJSON() ([]byte, error) { +func (o TagField) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["fieldId"] = o.FieldId @@ -218,44 +190,41 @@ func (o ListField) MarshalJSON() ([]byte, error) { if true { toSerialize["values"] = o.Values } - if true { - toSerialize["asTag"] = o.AsTag - } return json.Marshal(toSerialize) } -type NullableListField struct { - value *ListField +type NullableTagField struct { + value *TagField isSet bool } -func (v NullableListField) Get() *ListField { +func (v NullableTagField) Get() *TagField { return v.value } -func (v *NullableListField) Set(val *ListField) { +func (v *NullableTagField) Set(val *TagField) { v.value = val v.isSet = true } -func (v NullableListField) IsSet() bool { +func (v NullableTagField) IsSet() bool { return v.isSet } -func (v *NullableListField) Unset() { +func (v *NullableTagField) Unset() { v.value = nil v.isSet = false } -func NewNullableListField(val *ListField) *NullableListField { - return &NullableListField{value: val, isSet: true} +func NewNullableTagField(val *TagField) *NullableTagField { + return &NullableTagField{value: val, isSet: true} } -func (v NullableListField) MarshalJSON() ([]byte, error) { +func (v NullableTagField) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableListField) UnmarshalJSON(src []byte) error { +func (v *NullableTagField) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_list_field_all_of.go b/generated/stackstate_api/model_tag_field_all_of.go similarity index 55% rename from generated/stackstate_api/model_list_field_all_of.go rename to generated/stackstate_api/model_tag_field_all_of.go index 26549c33..b04ae014 100644 --- a/generated/stackstate_api/model_list_field_all_of.go +++ b/generated/stackstate_api/model_tag_field_all_of.go @@ -15,37 +15,33 @@ import ( "encoding/json" ) -// ListFieldAllOf struct for ListFieldAllOf -type ListFieldAllOf struct { +// TagFieldAllOf struct for TagFieldAllOf +type TagFieldAllOf struct { Type string `json:"_type" yaml:"_type"` Values []string `json:"values" yaml:"values"` - AsTag bool `json:"asTag" yaml:"asTag"` } -// NewListFieldAllOf instantiates a new ListFieldAllOf object +// NewTagFieldAllOf instantiates a new TagFieldAllOf 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 NewListFieldAllOf(type_ string, values []string, asTag bool) *ListFieldAllOf { - this := ListFieldAllOf{} +func NewTagFieldAllOf(type_ string, values []string) *TagFieldAllOf { + this := TagFieldAllOf{} this.Type = type_ this.Values = values - this.AsTag = asTag return &this } -// NewListFieldAllOfWithDefaults instantiates a new ListFieldAllOf object +// NewTagFieldAllOfWithDefaults instantiates a new TagFieldAllOf 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 NewListFieldAllOfWithDefaults() *ListFieldAllOf { - this := ListFieldAllOf{} - var asTag bool = false - this.AsTag = asTag +func NewTagFieldAllOfWithDefaults() *TagFieldAllOf { + this := TagFieldAllOf{} return &this } // GetType returns the Type field value -func (o *ListFieldAllOf) GetType() string { +func (o *TagFieldAllOf) GetType() string { if o == nil { var ret string return ret @@ -56,7 +52,7 @@ func (o *ListFieldAllOf) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ListFieldAllOf) GetTypeOk() (*string, bool) { +func (o *TagFieldAllOf) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -64,12 +60,12 @@ func (o *ListFieldAllOf) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *ListFieldAllOf) SetType(v string) { +func (o *TagFieldAllOf) SetType(v string) { o.Type = v } // GetValues returns the Values field value -func (o *ListFieldAllOf) GetValues() []string { +func (o *TagFieldAllOf) GetValues() []string { if o == nil { var ret []string return ret @@ -80,7 +76,7 @@ func (o *ListFieldAllOf) GetValues() []string { // GetValuesOk returns a tuple with the Values field value // and a boolean to check if the value has been set. -func (o *ListFieldAllOf) GetValuesOk() ([]string, bool) { +func (o *TagFieldAllOf) GetValuesOk() ([]string, bool) { if o == nil { return nil, false } @@ -88,35 +84,11 @@ func (o *ListFieldAllOf) GetValuesOk() ([]string, bool) { } // SetValues sets field value -func (o *ListFieldAllOf) SetValues(v []string) { +func (o *TagFieldAllOf) SetValues(v []string) { o.Values = v } -// GetAsTag returns the AsTag field value -func (o *ListFieldAllOf) GetAsTag() bool { - if o == nil { - var ret bool - return ret - } - - return o.AsTag -} - -// GetAsTagOk returns a tuple with the AsTag field value -// and a boolean to check if the value has been set. -func (o *ListFieldAllOf) GetAsTagOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AsTag, true -} - -// SetAsTag sets field value -func (o *ListFieldAllOf) SetAsTag(v bool) { - o.AsTag = v -} - -func (o ListFieldAllOf) MarshalJSON() ([]byte, error) { +func (o TagFieldAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type @@ -124,44 +96,41 @@ func (o ListFieldAllOf) MarshalJSON() ([]byte, error) { if true { toSerialize["values"] = o.Values } - if true { - toSerialize["asTag"] = o.AsTag - } return json.Marshal(toSerialize) } -type NullableListFieldAllOf struct { - value *ListFieldAllOf +type NullableTagFieldAllOf struct { + value *TagFieldAllOf isSet bool } -func (v NullableListFieldAllOf) Get() *ListFieldAllOf { +func (v NullableTagFieldAllOf) Get() *TagFieldAllOf { return v.value } -func (v *NullableListFieldAllOf) Set(val *ListFieldAllOf) { +func (v *NullableTagFieldAllOf) Set(val *TagFieldAllOf) { v.value = val v.isSet = true } -func (v NullableListFieldAllOf) IsSet() bool { +func (v NullableTagFieldAllOf) IsSet() bool { return v.isSet } -func (v *NullableListFieldAllOf) Unset() { +func (v *NullableTagFieldAllOf) Unset() { v.value = nil v.isSet = false } -func NewNullableListFieldAllOf(val *ListFieldAllOf) *NullableListFieldAllOf { - return &NullableListFieldAllOf{value: val, isSet: true} +func NewNullableTagFieldAllOf(val *TagFieldAllOf) *NullableTagFieldAllOf { + return &NullableTagFieldAllOf{value: val, isSet: true} } -func (v NullableListFieldAllOf) MarshalJSON() ([]byte, error) { +func (v NullableTagFieldAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableListFieldAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableTagFieldAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_tag_projection.go b/generated/stackstate_api/model_tag_projection.go new file mode 100644 index 00000000..961c8474 --- /dev/null +++ b/generated/stackstate_api/model_tag_projection.go @@ -0,0 +1,107 @@ +/* +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" +) + +// TagProjection struct for TagProjection +type TagProjection struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewTagProjection instantiates a new TagProjection 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 NewTagProjection(type_ string) *TagProjection { + this := TagProjection{} + this.Type = type_ + return &this +} + +// NewTagProjectionWithDefaults instantiates a new TagProjection 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 NewTagProjectionWithDefaults() *TagProjection { + this := TagProjection{} + return &this +} + +// GetType returns the Type field value +func (o *TagProjection) 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 *TagProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagProjection) SetType(v string) { + o.Type = v +} + +func (o TagProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableTagProjection struct { + value *TagProjection + isSet bool +} + +func (v NullableTagProjection) Get() *TagProjection { + return v.value +} + +func (v *NullableTagProjection) Set(val *TagProjection) { + v.value = val + v.isSet = true +} + +func (v NullableTagProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableTagProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagProjection(val *TagProjection) *NullableTagProjection { + return &NullableTagProjection{value: val, isSet: true} +} + +func (v NullableTagProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagProjection) 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 171a60e4..5be2bb9c 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -9bfdc917b39b23c720527bd93cd9b426789a2e1b \ No newline at end of file +80c2e24969230fa04aba4ec57ad41d31ebf119ed \ No newline at end of file From faf25e37f1e97f2733c13ea21885b3b2b266f679 Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Thu, 25 Jun 2026 16:23:49 +0200 Subject: [PATCH 4/4] STAC-24991: sync openapi version --- 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 5be2bb9c..48fcda2a 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -80c2e24969230fa04aba4ec57ad41d31ebf119ed \ No newline at end of file +89739b44a9e841c9063639f94b196b1d10dfe401 \ No newline at end of file