Chore: Update k8s.io to v0.33.1 (#105307)
This commit is contained in:
@@ -13,8 +13,6 @@ package dataquery
|
||||
|
||||
import (
|
||||
json "encoding/json"
|
||||
errors "errors"
|
||||
fmt "fmt"
|
||||
)
|
||||
|
||||
type AzureMonitorQuery struct {
|
||||
@@ -271,7 +269,9 @@ type BuilderQueryEditorWhereExpressionArray struct {
|
||||
|
||||
// NewBuilderQueryEditorWhereExpressionArray creates a new BuilderQueryEditorWhereExpressionArray object.
|
||||
func NewBuilderQueryEditorWhereExpressionArray() *BuilderQueryEditorWhereExpressionArray {
|
||||
return &BuilderQueryEditorWhereExpressionArray{}
|
||||
return &BuilderQueryEditorWhereExpressionArray{
|
||||
Expressions: []BuilderQueryEditorWhereExpression{},
|
||||
}
|
||||
}
|
||||
|
||||
type BuilderQueryEditorWhereExpression struct {
|
||||
@@ -281,7 +281,9 @@ type BuilderQueryEditorWhereExpression struct {
|
||||
|
||||
// NewBuilderQueryEditorWhereExpression creates a new BuilderQueryEditorWhereExpression object.
|
||||
func NewBuilderQueryEditorWhereExpression() *BuilderQueryEditorWhereExpression {
|
||||
return &BuilderQueryEditorWhereExpression{}
|
||||
return &BuilderQueryEditorWhereExpression{
|
||||
Expressions: []BuilderQueryEditorWhereExpressionItems{},
|
||||
}
|
||||
}
|
||||
|
||||
type BuilderQueryEditorWhereExpressionItems struct {
|
||||
@@ -316,7 +318,9 @@ type BuilderQueryEditorReduceExpressionArray struct {
|
||||
|
||||
// NewBuilderQueryEditorReduceExpressionArray creates a new BuilderQueryEditorReduceExpressionArray object.
|
||||
func NewBuilderQueryEditorReduceExpressionArray() *BuilderQueryEditorReduceExpressionArray {
|
||||
return &BuilderQueryEditorReduceExpressionArray{}
|
||||
return &BuilderQueryEditorReduceExpressionArray{
|
||||
Expressions: []BuilderQueryEditorReduceExpression{},
|
||||
}
|
||||
}
|
||||
|
||||
type BuilderQueryEditorReduceExpression struct {
|
||||
@@ -349,7 +353,9 @@ type BuilderQueryEditorGroupByExpressionArray struct {
|
||||
|
||||
// NewBuilderQueryEditorGroupByExpressionArray creates a new BuilderQueryEditorGroupByExpressionArray object.
|
||||
func NewBuilderQueryEditorGroupByExpressionArray() *BuilderQueryEditorGroupByExpressionArray {
|
||||
return &BuilderQueryEditorGroupByExpressionArray{}
|
||||
return &BuilderQueryEditorGroupByExpressionArray{
|
||||
Expressions: []BuilderQueryEditorGroupByExpression{},
|
||||
}
|
||||
}
|
||||
|
||||
type BuilderQueryEditorGroupByExpression struct {
|
||||
@@ -371,7 +377,9 @@ type BuilderQueryEditorOrderByExpressionArray struct {
|
||||
|
||||
// NewBuilderQueryEditorOrderByExpressionArray creates a new BuilderQueryEditorOrderByExpressionArray object.
|
||||
func NewBuilderQueryEditorOrderByExpressionArray() *BuilderQueryEditorOrderByExpressionArray {
|
||||
return &BuilderQueryEditorOrderByExpressionArray{}
|
||||
return &BuilderQueryEditorOrderByExpressionArray{
|
||||
Expressions: []BuilderQueryEditorOrderByExpression{},
|
||||
}
|
||||
}
|
||||
|
||||
type BuilderQueryEditorOrderByExpression struct {
|
||||
@@ -438,7 +446,9 @@ type AzureTracesFilter struct {
|
||||
|
||||
// NewAzureTracesFilter creates a new AzureTracesFilter object.
|
||||
func NewAzureTracesFilter() *AzureTracesFilter {
|
||||
return &AzureTracesFilter{}
|
||||
return &AzureTracesFilter{
|
||||
Filters: []string{},
|
||||
}
|
||||
}
|
||||
|
||||
type GrafanaTemplateVariableQuery = AppInsightsMetricNameQueryOrAppInsightsGroupByQueryOrSubscriptionsQueryOrResourceGroupsQueryOrResourceNamesQueryOrMetricNamespaceQueryOrMetricDefinitionsQueryOrMetricNamesQueryOrWorkspacesQueryOrUnknownQuery
|
||||
@@ -698,7 +708,8 @@ func (resource AppInsightsMetricNameQueryOrAppInsightsGroupByQueryOrSubscription
|
||||
if resource.UnknownQuery != nil {
|
||||
return json.Marshal(resource.UnknownQuery)
|
||||
}
|
||||
return nil, fmt.Errorf("no value for disjunction of refs")
|
||||
|
||||
return []byte("null"), nil
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements a custom JSON unmarshalling logic to decode `AppInsightsMetricNameQueryOrAppInsightsGroupByQueryOrSubscriptionsQueryOrResourceGroupsQueryOrResourceNamesQueryOrMetricNamespaceQueryOrMetricDefinitionsQueryOrMetricNamesQueryOrWorkspacesQueryOrUnknownQuery` from JSON.
|
||||
@@ -715,7 +726,7 @@ func (resource *AppInsightsMetricNameQueryOrAppInsightsGroupByQueryOrSubscriptio
|
||||
|
||||
discriminator, found := parsedAsMap["kind"]
|
||||
if !found {
|
||||
return errors.New("discriminator field 'kind' not found in payload")
|
||||
return nil
|
||||
}
|
||||
|
||||
switch discriminator {
|
||||
@@ -801,7 +812,7 @@ func (resource *AppInsightsMetricNameQueryOrAppInsightsGroupByQueryOrSubscriptio
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf("could not unmarshal resource with `kind = %v`", discriminator)
|
||||
return nil
|
||||
}
|
||||
|
||||
type StringOrBoolOrFloat64OrSelectableValue struct {
|
||||
|
||||
Reference in New Issue
Block a user