From beffd6aa3a379cbeba0ac48fc794015c1619c0ea Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 19 Oct 2026 07:07:32 +0000 Subject: [PATCH] Generate telemetryrouter --- services/telemetryrouter/oas_commit | 2 +- .../v1api/model_config_filter_attributes.go | 2 +- .../model_create_telemetry_router_payload.go | 41 +++++++++- ...model_destination_config_open_telemetry.go | 4 +- ...nation_config_open_telemetry_basic_auth.go | 4 +- .../v1api/model_destination_config_s3.go | 4 +- .../model_destination_config_s3_access_key.go | 4 +- .../v1api/model_telemetry_router_response.go | 79 ++++++++++++++++++- .../model_update_telemetry_router_payload.go | 41 +++++++++- 9 files changed, 165 insertions(+), 16 deletions(-) diff --git a/services/telemetryrouter/oas_commit b/services/telemetryrouter/oas_commit index fa742ff4a1..0962e389dc 100644 --- a/services/telemetryrouter/oas_commit +++ b/services/telemetryrouter/oas_commit @@ -1 +1 @@ -7fd0fb8e513021dfbad1f5ee736785ec72987b40 +b155367fdf354045bbd1d2403a19bf4e363e76a3 diff --git a/services/telemetryrouter/v1api/model_config_filter_attributes.go b/services/telemetryrouter/v1api/model_config_filter_attributes.go index 21c608b452..fea613168d 100644 --- a/services/telemetryrouter/v1api/model_config_filter_attributes.go +++ b/services/telemetryrouter/v1api/model_config_filter_attributes.go @@ -20,7 +20,7 @@ var _ MappedNullable = &ConfigFilterAttributes{} // ConfigFilterAttributes struct for ConfigFilterAttributes type ConfigFilterAttributes struct { - Key string `json:"key"` + Key string `json:"key" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` Level ConfigFilterLevel `json:"level"` Matcher ConfigFilterMatcher `json:"matcher"` Values []string `json:"values"` diff --git a/services/telemetryrouter/v1api/model_create_telemetry_router_payload.go b/services/telemetryrouter/v1api/model_create_telemetry_router_payload.go index 86e8df39f4..edcc6933a8 100644 --- a/services/telemetryrouter/v1api/model_create_telemetry_router_payload.go +++ b/services/telemetryrouter/v1api/model_create_telemetry_router_payload.go @@ -23,8 +23,9 @@ type CreateTelemetryRouterPayload struct { // The description is a longer text chosen by the user to provide more context for the resource. Description *string `json:"description,omitempty" validate:"regexp=^([a-zA-Z0-9][a-zA-Z0-9 \\-]*)?$"` // The display name is a short name chosen by the user to identify the resource. - DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9 \\-]*$"` - Filter *ConfigFilter `json:"filter,omitempty"` + DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9 \\-]*$"` + Filter *ConfigFilter `json:"filter,omitempty"` + ResourceLabels *map[string]string `json:"resourceLabels,omitempty"` AdditionalProperties map[string]interface{} } @@ -136,6 +137,38 @@ func (o *CreateTelemetryRouterPayload) SetFilter(v ConfigFilter) { o.Filter = &v } +// GetResourceLabels returns the ResourceLabels field value if set, zero value otherwise. +func (o *CreateTelemetryRouterPayload) GetResourceLabels() map[string]string { + if o == nil || IsNil(o.ResourceLabels) { + var ret map[string]string + return ret + } + return *o.ResourceLabels +} + +// GetResourceLabelsOk returns a tuple with the ResourceLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTelemetryRouterPayload) GetResourceLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.ResourceLabels) { + return nil, false + } + return o.ResourceLabels, true +} + +// HasResourceLabels returns a boolean if a field has been set. +func (o *CreateTelemetryRouterPayload) HasResourceLabels() bool { + if o != nil && !IsNil(o.ResourceLabels) { + return true + } + + return false +} + +// SetResourceLabels gets a reference to the given map[string]string and assigns it to the ResourceLabels field. +func (o *CreateTelemetryRouterPayload) SetResourceLabels(v map[string]string) { + o.ResourceLabels = &v +} + func (o CreateTelemetryRouterPayload) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -153,6 +186,9 @@ func (o CreateTelemetryRouterPayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } + if !IsNil(o.ResourceLabels) { + toSerialize["resourceLabels"] = o.ResourceLabels + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -199,6 +235,7 @@ func (o *CreateTelemetryRouterPayload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "description") delete(additionalProperties, "displayName") delete(additionalProperties, "filter") + delete(additionalProperties, "resourceLabels") o.AdditionalProperties = additionalProperties } diff --git a/services/telemetryrouter/v1api/model_destination_config_open_telemetry.go b/services/telemetryrouter/v1api/model_destination_config_open_telemetry.go index 9d601862a0..043cf4c655 100644 --- a/services/telemetryrouter/v1api/model_destination_config_open_telemetry.go +++ b/services/telemetryrouter/v1api/model_destination_config_open_telemetry.go @@ -22,9 +22,9 @@ var _ MappedNullable = &DestinationConfigOpenTelemetry{} type DestinationConfigOpenTelemetry struct { BasicAuth *DestinationConfigOpenTelemetryBasicAuth `json:"basicAuth,omitempty"` // A bearer token to authenticate at the OpenTelemetry URI. - BearerToken *string `json:"bearerToken,omitempty"` + BearerToken *string `json:"bearerToken,omitempty" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` // The URI for reaching the resource. - Uri string `json:"uri"` + Uri string `json:"uri" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` AdditionalProperties map[string]interface{} } diff --git a/services/telemetryrouter/v1api/model_destination_config_open_telemetry_basic_auth.go b/services/telemetryrouter/v1api/model_destination_config_open_telemetry_basic_auth.go index 328090ccc8..54c61e0f24 100644 --- a/services/telemetryrouter/v1api/model_destination_config_open_telemetry_basic_auth.go +++ b/services/telemetryrouter/v1api/model_destination_config_open_telemetry_basic_auth.go @@ -20,8 +20,8 @@ var _ MappedNullable = &DestinationConfigOpenTelemetryBasicAuth{} // DestinationConfigOpenTelemetryBasicAuth Basic auth to authenticate at the OpenTelemetry URI type DestinationConfigOpenTelemetryBasicAuth struct { - Password string `json:"password"` - Username string `json:"username"` + Password string `json:"password" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` + Username string `json:"username" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` AdditionalProperties map[string]interface{} } diff --git a/services/telemetryrouter/v1api/model_destination_config_s3.go b/services/telemetryrouter/v1api/model_destination_config_s3.go index fda0e07ca8..5399625051 100644 --- a/services/telemetryrouter/v1api/model_destination_config_s3.go +++ b/services/telemetryrouter/v1api/model_destination_config_s3.go @@ -21,9 +21,9 @@ var _ MappedNullable = &DestinationConfigS3{} // DestinationConfigS3 struct for DestinationConfigS3 type DestinationConfigS3 struct { AccessKey *DestinationConfigS3AccessKey `json:"accessKey,omitempty"` - Bucket string `json:"bucket"` + Bucket string `json:"bucket" validate:"regexp=^[a-z0-9\\-]+$"` // The URI for reaching the resource. - Endpoint string `json:"endpoint"` + Endpoint string `json:"endpoint" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` AdditionalProperties map[string]interface{} } diff --git a/services/telemetryrouter/v1api/model_destination_config_s3_access_key.go b/services/telemetryrouter/v1api/model_destination_config_s3_access_key.go index 2ad0578421..ba02ebb4ab 100644 --- a/services/telemetryrouter/v1api/model_destination_config_s3_access_key.go +++ b/services/telemetryrouter/v1api/model_destination_config_s3_access_key.go @@ -20,8 +20,8 @@ var _ MappedNullable = &DestinationConfigS3AccessKey{} // DestinationConfigS3AccessKey The S3 access key type DestinationConfigS3AccessKey struct { - Id string `json:"id"` - Secret string `json:"secret"` + Id string `json:"id" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` + Secret string `json:"secret" validate:"regexp=^[^\\0-\\x1F\\x7F-\\x9F]+$"` AdditionalProperties map[string]interface{} } diff --git a/services/telemetryrouter/v1api/model_telemetry_router_response.go b/services/telemetryrouter/v1api/model_telemetry_router_response.go index 01b4dc13a6..4ad4668b58 100644 --- a/services/telemetryrouter/v1api/model_telemetry_router_response.go +++ b/services/telemetryrouter/v1api/model_telemetry_router_response.go @@ -25,12 +25,15 @@ type TelemetryRouterResponse struct { CreationTime time.Time `json:"creationTime"` // The description is a longer text chosen by the user to provide more context for the resource. Description *string `json:"description,omitempty" validate:"regexp=^([a-zA-Z0-9][a-zA-Z0-9 \\-]*)?$"` + // The number of destinations configured for the telemetry router. + DestinationCount *int32 `json:"destinationCount,omitempty"` // The display name is a short name chosen by the user to identify the resource. DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9 \\-]*$"` Filter *ConfigFilter `json:"filter,omitempty"` // A auto generated unique id which identifies the resource. - Id string `json:"id"` - Status TelemetryRouterResponseStatus `json:"status"` + Id string `json:"id"` + ResourceLabels *map[string]string `json:"resourceLabels,omitempty"` + Status TelemetryRouterResponseStatus `json:"status"` // The URI for reaching the resource. Uri string `json:"uri"` AdditionalProperties map[string]interface{} @@ -116,6 +119,38 @@ func (o *TelemetryRouterResponse) SetDescription(v string) { o.Description = &v } +// GetDestinationCount returns the DestinationCount field value if set, zero value otherwise. +func (o *TelemetryRouterResponse) GetDestinationCount() int32 { + if o == nil || IsNil(o.DestinationCount) { + var ret int32 + return ret + } + return *o.DestinationCount +} + +// GetDestinationCountOk returns a tuple with the DestinationCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TelemetryRouterResponse) GetDestinationCountOk() (*int32, bool) { + if o == nil || IsNil(o.DestinationCount) { + return nil, false + } + return o.DestinationCount, true +} + +// HasDestinationCount returns a boolean if a field has been set. +func (o *TelemetryRouterResponse) HasDestinationCount() bool { + if o != nil && !IsNil(o.DestinationCount) { + return true + } + + return false +} + +// SetDestinationCount gets a reference to the given int32 and assigns it to the DestinationCount field. +func (o *TelemetryRouterResponse) SetDestinationCount(v int32) { + o.DestinationCount = &v +} + // GetDisplayName returns the DisplayName field value func (o *TelemetryRouterResponse) GetDisplayName() string { if o == nil { @@ -196,6 +231,38 @@ func (o *TelemetryRouterResponse) SetId(v string) { o.Id = v } +// GetResourceLabels returns the ResourceLabels field value if set, zero value otherwise. +func (o *TelemetryRouterResponse) GetResourceLabels() map[string]string { + if o == nil || IsNil(o.ResourceLabels) { + var ret map[string]string + return ret + } + return *o.ResourceLabels +} + +// GetResourceLabelsOk returns a tuple with the ResourceLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TelemetryRouterResponse) GetResourceLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.ResourceLabels) { + return nil, false + } + return o.ResourceLabels, true +} + +// HasResourceLabels returns a boolean if a field has been set. +func (o *TelemetryRouterResponse) HasResourceLabels() bool { + if o != nil && !IsNil(o.ResourceLabels) { + return true + } + + return false +} + +// SetResourceLabels gets a reference to the given map[string]string and assigns it to the ResourceLabels field. +func (o *TelemetryRouterResponse) SetResourceLabels(v map[string]string) { + o.ResourceLabels = &v +} + // GetStatus returns the Status field value func (o *TelemetryRouterResponse) GetStatus() TelemetryRouterResponseStatus { if o == nil { @@ -258,11 +325,17 @@ func (o TelemetryRouterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.DestinationCount) { + toSerialize["destinationCount"] = o.DestinationCount + } toSerialize["displayName"] = o.DisplayName if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } toSerialize["id"] = o.Id + if !IsNil(o.ResourceLabels) { + toSerialize["resourceLabels"] = o.ResourceLabels + } toSerialize["status"] = o.Status toSerialize["uri"] = o.Uri @@ -314,9 +387,11 @@ func (o *TelemetryRouterResponse) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "creationTime") delete(additionalProperties, "description") + delete(additionalProperties, "destinationCount") delete(additionalProperties, "displayName") delete(additionalProperties, "filter") delete(additionalProperties, "id") + delete(additionalProperties, "resourceLabels") delete(additionalProperties, "status") delete(additionalProperties, "uri") o.AdditionalProperties = additionalProperties diff --git a/services/telemetryrouter/v1api/model_update_telemetry_router_payload.go b/services/telemetryrouter/v1api/model_update_telemetry_router_payload.go index ad42f6b7a5..a41e2375ad 100644 --- a/services/telemetryrouter/v1api/model_update_telemetry_router_payload.go +++ b/services/telemetryrouter/v1api/model_update_telemetry_router_payload.go @@ -22,8 +22,9 @@ type UpdateTelemetryRouterPayload struct { // The description is a longer text chosen by the user to provide more context for the resource. Description *string `json:"description,omitempty" validate:"regexp=^([a-zA-Z0-9][a-zA-Z0-9 \\-]*)?$"` // The display name is a short name chosen by the user to identify the resource. - DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9 \\-]*$"` - Filter *ConfigFilter `json:"filter,omitempty"` + DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9 \\-]*$"` + Filter *ConfigFilter `json:"filter,omitempty"` + ResourceLabels *map[string]string `json:"resourceLabels,omitempty"` AdditionalProperties map[string]interface{} } @@ -142,6 +143,38 @@ func (o *UpdateTelemetryRouterPayload) SetFilter(v ConfigFilter) { o.Filter = &v } +// GetResourceLabels returns the ResourceLabels field value if set, zero value otherwise. +func (o *UpdateTelemetryRouterPayload) GetResourceLabels() map[string]string { + if o == nil || IsNil(o.ResourceLabels) { + var ret map[string]string + return ret + } + return *o.ResourceLabels +} + +// GetResourceLabelsOk returns a tuple with the ResourceLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTelemetryRouterPayload) GetResourceLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.ResourceLabels) { + return nil, false + } + return o.ResourceLabels, true +} + +// HasResourceLabels returns a boolean if a field has been set. +func (o *UpdateTelemetryRouterPayload) HasResourceLabels() bool { + if o != nil && !IsNil(o.ResourceLabels) { + return true + } + + return false +} + +// SetResourceLabels gets a reference to the given map[string]string and assigns it to the ResourceLabels field. +func (o *UpdateTelemetryRouterPayload) SetResourceLabels(v map[string]string) { + o.ResourceLabels = &v +} + func (o UpdateTelemetryRouterPayload) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -161,6 +194,9 @@ func (o UpdateTelemetryRouterPayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } + if !IsNil(o.ResourceLabels) { + toSerialize["resourceLabels"] = o.ResourceLabels + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -186,6 +222,7 @@ func (o *UpdateTelemetryRouterPayload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "description") delete(additionalProperties, "displayName") delete(additionalProperties, "filter") + delete(additionalProperties, "resourceLabels") o.AdditionalProperties = additionalProperties }