fix: correct more details in templates/apply API (#159)

This commit is contained in:
Daniel Moran
2021-06-29 15:08:36 -04:00
committed by GitHub
parent eb99827966
commit 69dedbcaa9
32 changed files with 884 additions and 348 deletions

View File

@ -351,6 +351,8 @@ components:
$ref: "./overrides/schemas/TemplateSummaryDiffLabel.yml" $ref: "./overrides/schemas/TemplateSummaryDiffLabel.yml"
TemplateSummaryDiffLabelFields: TemplateSummaryDiffLabelFields:
$ref: "./overrides/schemas/TemplateSummaryDiffLabelFields.yml" $ref: "./overrides/schemas/TemplateSummaryDiffLabelFields.yml"
TemplateSummaryDiffLabelMapping:
$ref: "./overrides/schemas/TemplateSummaryDiffLabelMapping.yml"
TemplateSummaryDiffNotificationEndpoint: TemplateSummaryDiffNotificationEndpoint:
$ref: "./overrides/schemas/TemplateSummaryDiffNotificationEndpoint.yml" $ref: "./overrides/schemas/TemplateSummaryDiffNotificationEndpoint.yml"
TemplateSummaryDiffNotificationEndpointFields: TemplateSummaryDiffNotificationEndpointFields:

View File

@ -12,6 +12,7 @@ allOf:
type: string type: string
retentionPeriod: retentionPeriod:
type: integer type: integer
format: int64
schemaType: schemaType:
type: string $ref: "../../openapi/src/common/schemas/SchemaType.yml"
required: [id, name, retentionPeriod] required: [id, name, retentionPeriod]

View File

@ -8,4 +8,4 @@ properties:
type: array type: array
items: items:
$ref: "./TemplateEnvReference.yml" $ref: "./TemplateEnvReference.yml"
required: [kind, tempateMetaName, envReferences] required: [kind, templateMetaName, envReferences]

View File

@ -19,7 +19,7 @@ properties:
labelMappings: labelMappings:
type: array type: array
items: items:
$ref: "./TemplateSummaryLabelMapping.yml" $ref: "./TemplateSummaryDiffLabelMapping.yml"
notificationEndpoints: notificationEndpoints:
type: array type: array
items: items:

View File

@ -6,4 +6,10 @@ properties:
type: string type: string
retentionRules: retentionRules:
$ref: "../../openapi/src/common/schemas/RetentionRules.yml" $ref: "../../openapi/src/common/schemas/RetentionRules.yml"
required: [name, retentionRules] schemaType:
$ref: "../../openapi/src/common/schemas/SchemaType.yml"
measurementSchemas:
type: array
items:
type: object
required: [name, retentionRules, measurementSchemas]

View File

@ -0,0 +1,7 @@
allOf:
- $ref: "./TemplateSummaryLabelMapping.yml"
- type: object
properties:
stateStatus:
type: string
required: [stateStatus]

View File

@ -6,4 +6,4 @@ properties:
type: string type: string
args: args:
$ref: "./TemplateSummaryVariableArgs.yml" $ref: "./TemplateSummaryVariableArgs.yml"
required: [name, args] required: [name]

View File

@ -2,6 +2,10 @@ allOf:
- $ref: "./TemplateSummaryCommon.yml" - $ref: "./TemplateSummaryCommon.yml"
- type: object - type: object
properties: properties:
id:
type: integer
format: int64
x-go-field-type: uint64
name: name:
type: string type: string
description: description:
@ -18,4 +22,4 @@ allOf:
type: string type: string
offset: offset:
type: string type: string
required: [name, endpointTemplateMetaName, endpointID, endpointType, every, offset] required: [id, name, endpointTemplateMetaName, endpointID, endpointType, every, offset]

View File

@ -1,9 +1,7 @@
type: object type: object
properties: properties:
id: id:
type: integer type: string
format: int64
x-go-field-type: uint64
name: name:
type: string type: string
description: description:

View File

@ -12,4 +12,4 @@ allOf:
type: string type: string
arguments: arguments:
$ref: "./TemplateSummaryVariableArgs.yml" $ref: "./TemplateSummaryVariableArgs.yml"
required: [id, name, arguments] required: [id, name]

View File

@ -2,5 +2,6 @@ type: object
properties: properties:
type: type:
type: string type: string
required: [type] values:
additionalProperties: true x-go-field-type: 'interface{}'
required: [type, values]

View File

@ -17,23 +17,24 @@ import (
// TemplateSummaryBucket struct for TemplateSummaryBucket // TemplateSummaryBucket struct for TemplateSummaryBucket
type TemplateSummaryBucket struct { type TemplateSummaryBucket struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
RetentionPeriod int32 `json:"retentionPeriod" yaml:"retentionPeriod"` RetentionPeriod int64 `json:"retentionPeriod" yaml:"retentionPeriod"`
SchemaType *string `json:"schemaType,omitempty" yaml:"schemaType,omitempty"` SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
} }
// NewTemplateSummaryBucket instantiates a new TemplateSummaryBucket object // NewTemplateSummaryBucket instantiates a new TemplateSummaryBucket object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryBucket(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, retentionPeriod int32) *TemplateSummaryBucket { func NewTemplateSummaryBucket(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, retentionPeriod int64) *TemplateSummaryBucket {
this := TemplateSummaryBucket{} this := TemplateSummaryBucket{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id this.Id = id
@ -74,36 +75,28 @@ func (o *TemplateSummaryBucket) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryBucket) GetTemplateMetaName() string { func (o *TemplateSummaryBucket) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryBucket) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryBucket) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryBucket) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryBucket) SetTemplateMetaName(v string) { func (o *TemplateSummaryBucket) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -235,9 +228,9 @@ func (o *TemplateSummaryBucket) SetDescription(v string) {
} }
// GetRetentionPeriod returns the RetentionPeriod field value // GetRetentionPeriod returns the RetentionPeriod field value
func (o *TemplateSummaryBucket) GetRetentionPeriod() int32 { func (o *TemplateSummaryBucket) GetRetentionPeriod() int64 {
if o == nil { if o == nil {
var ret int32 var ret int64
return ret return ret
} }
@ -246,7 +239,7 @@ func (o *TemplateSummaryBucket) GetRetentionPeriod() int32 {
// GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value // GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryBucket) GetRetentionPeriodOk() (*int32, bool) { func (o *TemplateSummaryBucket) GetRetentionPeriodOk() (*int64, bool) {
if o == nil { if o == nil {
return nil, false return nil, false
} }
@ -254,14 +247,14 @@ func (o *TemplateSummaryBucket) GetRetentionPeriodOk() (*int32, bool) {
} }
// SetRetentionPeriod sets field value // SetRetentionPeriod sets field value
func (o *TemplateSummaryBucket) SetRetentionPeriod(v int32) { func (o *TemplateSummaryBucket) SetRetentionPeriod(v int64) {
o.RetentionPeriod = v o.RetentionPeriod = v
} }
// GetSchemaType returns the SchemaType field value if set, zero value otherwise. // GetSchemaType returns the SchemaType field value if set, zero value otherwise.
func (o *TemplateSummaryBucket) GetSchemaType() string { func (o *TemplateSummaryBucket) GetSchemaType() SchemaType {
if o == nil || o.SchemaType == nil { if o == nil || o.SchemaType == nil {
var ret string var ret SchemaType
return ret return ret
} }
return *o.SchemaType return *o.SchemaType
@ -269,7 +262,7 @@ func (o *TemplateSummaryBucket) GetSchemaType() string {
// GetSchemaTypeOk returns a tuple with the SchemaType field value if set, nil otherwise // GetSchemaTypeOk returns a tuple with the SchemaType field value if set, nil otherwise
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryBucket) GetSchemaTypeOk() (*string, bool) { func (o *TemplateSummaryBucket) GetSchemaTypeOk() (*SchemaType, bool) {
if o == nil || o.SchemaType == nil { if o == nil || o.SchemaType == nil {
return nil, false return nil, false
} }
@ -285,8 +278,8 @@ func (o *TemplateSummaryBucket) HasSchemaType() bool {
return false return false
} }
// SetSchemaType gets a reference to the given string and assigns it to the SchemaType field. // SetSchemaType gets a reference to the given SchemaType and assigns it to the SchemaType field.
func (o *TemplateSummaryBucket) SetSchemaType(v string) { func (o *TemplateSummaryBucket) SetSchemaType(v SchemaType) {
o.SchemaType = &v o.SchemaType = &v
} }
@ -295,7 +288,7 @@ func (o TemplateSummaryBucket) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -16,18 +16,18 @@ import (
// TemplateSummaryBucketAllOf struct for TemplateSummaryBucketAllOf // TemplateSummaryBucketAllOf struct for TemplateSummaryBucketAllOf
type TemplateSummaryBucketAllOf struct { type TemplateSummaryBucketAllOf struct {
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
RetentionPeriod int32 `json:"retentionPeriod" yaml:"retentionPeriod"` RetentionPeriod int64 `json:"retentionPeriod" yaml:"retentionPeriod"`
SchemaType *string `json:"schemaType,omitempty" yaml:"schemaType,omitempty"` SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
} }
// NewTemplateSummaryBucketAllOf instantiates a new TemplateSummaryBucketAllOf object // NewTemplateSummaryBucketAllOf instantiates a new TemplateSummaryBucketAllOf object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryBucketAllOf(id uint64, name string, retentionPeriod int32) *TemplateSummaryBucketAllOf { func NewTemplateSummaryBucketAllOf(id uint64, name string, retentionPeriod int64) *TemplateSummaryBucketAllOf {
this := TemplateSummaryBucketAllOf{} this := TemplateSummaryBucketAllOf{}
this.Id = id this.Id = id
this.Name = name this.Name = name
@ -124,9 +124,9 @@ func (o *TemplateSummaryBucketAllOf) SetDescription(v string) {
} }
// GetRetentionPeriod returns the RetentionPeriod field value // GetRetentionPeriod returns the RetentionPeriod field value
func (o *TemplateSummaryBucketAllOf) GetRetentionPeriod() int32 { func (o *TemplateSummaryBucketAllOf) GetRetentionPeriod() int64 {
if o == nil { if o == nil {
var ret int32 var ret int64
return ret return ret
} }
@ -135,7 +135,7 @@ func (o *TemplateSummaryBucketAllOf) GetRetentionPeriod() int32 {
// GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value // GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryBucketAllOf) GetRetentionPeriodOk() (*int32, bool) { func (o *TemplateSummaryBucketAllOf) GetRetentionPeriodOk() (*int64, bool) {
if o == nil { if o == nil {
return nil, false return nil, false
} }
@ -143,14 +143,14 @@ func (o *TemplateSummaryBucketAllOf) GetRetentionPeriodOk() (*int32, bool) {
} }
// SetRetentionPeriod sets field value // SetRetentionPeriod sets field value
func (o *TemplateSummaryBucketAllOf) SetRetentionPeriod(v int32) { func (o *TemplateSummaryBucketAllOf) SetRetentionPeriod(v int64) {
o.RetentionPeriod = v o.RetentionPeriod = v
} }
// GetSchemaType returns the SchemaType field value if set, zero value otherwise. // GetSchemaType returns the SchemaType field value if set, zero value otherwise.
func (o *TemplateSummaryBucketAllOf) GetSchemaType() string { func (o *TemplateSummaryBucketAllOf) GetSchemaType() SchemaType {
if o == nil || o.SchemaType == nil { if o == nil || o.SchemaType == nil {
var ret string var ret SchemaType
return ret return ret
} }
return *o.SchemaType return *o.SchemaType
@ -158,7 +158,7 @@ func (o *TemplateSummaryBucketAllOf) GetSchemaType() string {
// GetSchemaTypeOk returns a tuple with the SchemaType field value if set, nil otherwise // GetSchemaTypeOk returns a tuple with the SchemaType field value if set, nil otherwise
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryBucketAllOf) GetSchemaTypeOk() (*string, bool) { func (o *TemplateSummaryBucketAllOf) GetSchemaTypeOk() (*SchemaType, bool) {
if o == nil || o.SchemaType == nil { if o == nil || o.SchemaType == nil {
return nil, false return nil, false
} }
@ -174,8 +174,8 @@ func (o *TemplateSummaryBucketAllOf) HasSchemaType() bool {
return false return false
} }
// SetSchemaType gets a reference to the given string and assigns it to the SchemaType field. // SetSchemaType gets a reference to the given SchemaType and assigns it to the SchemaType field.
func (o *TemplateSummaryBucketAllOf) SetSchemaType(v string) { func (o *TemplateSummaryBucketAllOf) SetSchemaType(v SchemaType) {
o.SchemaType = &v o.SchemaType = &v
} }

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryCheck struct for TemplateSummaryCheck // TemplateSummaryCheck struct for TemplateSummaryCheck
type TemplateSummaryCheck struct { type TemplateSummaryCheck struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
@ -29,9 +29,10 @@ type TemplateSummaryCheck struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryCheck(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryCheck { func NewTemplateSummaryCheck(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryCheck {
this := TemplateSummaryCheck{} this := TemplateSummaryCheck{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id this.Id = id
@ -71,36 +72,28 @@ func (o *TemplateSummaryCheck) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryCheck) GetTemplateMetaName() string { func (o *TemplateSummaryCheck) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryCheck) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryCheck) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryCheck) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryCheck) SetTemplateMetaName(v string) { func (o *TemplateSummaryCheck) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -236,7 +229,7 @@ func (o TemplateSummaryCheck) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryCommon struct for TemplateSummaryCommon // TemplateSummaryCommon struct for TemplateSummaryCommon
type TemplateSummaryCommon struct { type TemplateSummaryCommon struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
} }
@ -26,9 +26,10 @@ type TemplateSummaryCommon struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryCommon(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel) *TemplateSummaryCommon { func NewTemplateSummaryCommon(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel) *TemplateSummaryCommon {
this := TemplateSummaryCommon{} this := TemplateSummaryCommon{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
return &this return &this
@ -66,36 +67,28 @@ func (o *TemplateSummaryCommon) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryCommon) GetTemplateMetaName() string { func (o *TemplateSummaryCommon) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryCommon) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryCommon) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryCommon) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryCommon) SetTemplateMetaName(v string) { func (o *TemplateSummaryCommon) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -151,7 +144,7 @@ func (o TemplateSummaryCommon) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryCore struct for TemplateSummaryCore // TemplateSummaryCore struct for TemplateSummaryCore
type TemplateSummaryCore struct { type TemplateSummaryCore struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
} }
@ -25,9 +25,10 @@ type TemplateSummaryCore struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryCore(kind string, envReferences []TemplateEnvReference) *TemplateSummaryCore { func NewTemplateSummaryCore(kind string, templateMetaName string, envReferences []TemplateEnvReference) *TemplateSummaryCore {
this := TemplateSummaryCore{} this := TemplateSummaryCore{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
return &this return &this
} }
@ -64,36 +65,28 @@ func (o *TemplateSummaryCore) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryCore) GetTemplateMetaName() string { func (o *TemplateSummaryCore) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryCore) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryCore) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryCore) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryCore) SetTemplateMetaName(v string) { func (o *TemplateSummaryCore) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -125,7 +118,7 @@ func (o TemplateSummaryCore) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryDashboard struct for TemplateSummaryDashboard // TemplateSummaryDashboard struct for TemplateSummaryDashboard
type TemplateSummaryDashboard struct { type TemplateSummaryDashboard struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
@ -29,9 +29,10 @@ type TemplateSummaryDashboard struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryDashboard(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryDashboard { func NewTemplateSummaryDashboard(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryDashboard {
this := TemplateSummaryDashboard{} this := TemplateSummaryDashboard{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id this.Id = id
@ -71,36 +72,28 @@ func (o *TemplateSummaryDashboard) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryDashboard) GetTemplateMetaName() string { func (o *TemplateSummaryDashboard) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryDashboard) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryDashboard) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryDashboard) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryDashboard) SetTemplateMetaName(v string) { func (o *TemplateSummaryDashboard) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -236,7 +229,7 @@ func (o TemplateSummaryDashboard) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -20,7 +20,7 @@ type TemplateSummaryDiff struct {
Checks []TemplateSummaryDiffCheck `json:"checks" yaml:"checks"` Checks []TemplateSummaryDiffCheck `json:"checks" yaml:"checks"`
Dashboards []TemplateSummaryDiffDashboard `json:"dashboards" yaml:"dashboards"` Dashboards []TemplateSummaryDiffDashboard `json:"dashboards" yaml:"dashboards"`
Labels []TemplateSummaryDiffLabel `json:"labels" yaml:"labels"` Labels []TemplateSummaryDiffLabel `json:"labels" yaml:"labels"`
LabelMappings []TemplateSummaryLabelMapping `json:"labelMappings" yaml:"labelMappings"` LabelMappings []TemplateSummaryDiffLabelMapping `json:"labelMappings" yaml:"labelMappings"`
NotificationEndpoints []TemplateSummaryDiffNotificationEndpoint `json:"notificationEndpoints" yaml:"notificationEndpoints"` NotificationEndpoints []TemplateSummaryDiffNotificationEndpoint `json:"notificationEndpoints" yaml:"notificationEndpoints"`
NotificationRules []TemplateSummaryDiffNotificationRule `json:"notificationRules" yaml:"notificationRules"` NotificationRules []TemplateSummaryDiffNotificationRule `json:"notificationRules" yaml:"notificationRules"`
Tasks []TemplateSummaryDiffTask `json:"tasks" yaml:"tasks"` Tasks []TemplateSummaryDiffTask `json:"tasks" yaml:"tasks"`
@ -32,7 +32,7 @@ type TemplateSummaryDiff struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryDiff(buckets []TemplateSummaryDiffBucket, checks []TemplateSummaryDiffCheck, dashboards []TemplateSummaryDiffDashboard, labels []TemplateSummaryDiffLabel, labelMappings []TemplateSummaryLabelMapping, notificationEndpoints []TemplateSummaryDiffNotificationEndpoint, notificationRules []TemplateSummaryDiffNotificationRule, tasks []TemplateSummaryDiffTask, telegrafConfigs []TemplateSummaryDiffTelegraf, variables []TemplateSummaryDiffVariable) *TemplateSummaryDiff { func NewTemplateSummaryDiff(buckets []TemplateSummaryDiffBucket, checks []TemplateSummaryDiffCheck, dashboards []TemplateSummaryDiffDashboard, labels []TemplateSummaryDiffLabel, labelMappings []TemplateSummaryDiffLabelMapping, notificationEndpoints []TemplateSummaryDiffNotificationEndpoint, notificationRules []TemplateSummaryDiffNotificationRule, tasks []TemplateSummaryDiffTask, telegrafConfigs []TemplateSummaryDiffTelegraf, variables []TemplateSummaryDiffVariable) *TemplateSummaryDiff {
this := TemplateSummaryDiff{} this := TemplateSummaryDiff{}
this.Buckets = buckets this.Buckets = buckets
this.Checks = checks this.Checks = checks
@ -152,9 +152,9 @@ func (o *TemplateSummaryDiff) SetLabels(v []TemplateSummaryDiffLabel) {
} }
// GetLabelMappings returns the LabelMappings field value // GetLabelMappings returns the LabelMappings field value
func (o *TemplateSummaryDiff) GetLabelMappings() []TemplateSummaryLabelMapping { func (o *TemplateSummaryDiff) GetLabelMappings() []TemplateSummaryDiffLabelMapping {
if o == nil { if o == nil {
var ret []TemplateSummaryLabelMapping var ret []TemplateSummaryDiffLabelMapping
return ret return ret
} }
@ -163,7 +163,7 @@ func (o *TemplateSummaryDiff) GetLabelMappings() []TemplateSummaryLabelMapping {
// GetLabelMappingsOk returns a tuple with the LabelMappings field value // GetLabelMappingsOk returns a tuple with the LabelMappings field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryDiff) GetLabelMappingsOk() (*[]TemplateSummaryLabelMapping, bool) { func (o *TemplateSummaryDiff) GetLabelMappingsOk() (*[]TemplateSummaryDiffLabelMapping, bool) {
if o == nil { if o == nil {
return nil, false return nil, false
} }
@ -171,7 +171,7 @@ func (o *TemplateSummaryDiff) GetLabelMappingsOk() (*[]TemplateSummaryLabelMappi
} }
// SetLabelMappings sets field value // SetLabelMappings sets field value
func (o *TemplateSummaryDiff) SetLabelMappings(v []TemplateSummaryLabelMapping) { func (o *TemplateSummaryDiff) SetLabelMappings(v []TemplateSummaryDiffLabelMapping) {
o.LabelMappings = v o.LabelMappings = v
} }

View File

@ -19,17 +19,20 @@ type TemplateSummaryDiffBucketFields struct {
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Rules to expire or retain data. No rules means data never expires. // Rules to expire or retain data. No rules means data never expires.
RetentionRules []RetentionRule `json:"retentionRules" yaml:"retentionRules"` RetentionRules []RetentionRule `json:"retentionRules" yaml:"retentionRules"`
SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
MeasurementSchemas []map[string]interface{} `json:"measurementSchemas" yaml:"measurementSchemas"`
} }
// NewTemplateSummaryDiffBucketFields instantiates a new TemplateSummaryDiffBucketFields object // NewTemplateSummaryDiffBucketFields instantiates a new TemplateSummaryDiffBucketFields object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryDiffBucketFields(name string, retentionRules []RetentionRule) *TemplateSummaryDiffBucketFields { func NewTemplateSummaryDiffBucketFields(name string, retentionRules []RetentionRule, measurementSchemas []map[string]interface{}) *TemplateSummaryDiffBucketFields {
this := TemplateSummaryDiffBucketFields{} this := TemplateSummaryDiffBucketFields{}
this.Name = name this.Name = name
this.RetentionRules = retentionRules this.RetentionRules = retentionRules
this.MeasurementSchemas = measurementSchemas
return &this return &this
} }
@ -121,6 +124,62 @@ func (o *TemplateSummaryDiffBucketFields) SetRetentionRules(v []RetentionRule) {
o.RetentionRules = v o.RetentionRules = v
} }
// GetSchemaType returns the SchemaType field value if set, zero value otherwise.
func (o *TemplateSummaryDiffBucketFields) GetSchemaType() SchemaType {
if o == nil || o.SchemaType == nil {
var ret SchemaType
return ret
}
return *o.SchemaType
}
// GetSchemaTypeOk returns a tuple with the SchemaType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffBucketFields) GetSchemaTypeOk() (*SchemaType, bool) {
if o == nil || o.SchemaType == nil {
return nil, false
}
return o.SchemaType, true
}
// HasSchemaType returns a boolean if a field has been set.
func (o *TemplateSummaryDiffBucketFields) HasSchemaType() bool {
if o != nil && o.SchemaType != nil {
return true
}
return false
}
// SetSchemaType gets a reference to the given SchemaType and assigns it to the SchemaType field.
func (o *TemplateSummaryDiffBucketFields) SetSchemaType(v SchemaType) {
o.SchemaType = &v
}
// GetMeasurementSchemas returns the MeasurementSchemas field value
func (o *TemplateSummaryDiffBucketFields) GetMeasurementSchemas() []map[string]interface{} {
if o == nil {
var ret []map[string]interface{}
return ret
}
return o.MeasurementSchemas
}
// GetMeasurementSchemasOk returns a tuple with the MeasurementSchemas field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffBucketFields) GetMeasurementSchemasOk() (*[]map[string]interface{}, bool) {
if o == nil {
return nil, false
}
return &o.MeasurementSchemas, true
}
// SetMeasurementSchemas sets field value
func (o *TemplateSummaryDiffBucketFields) SetMeasurementSchemas(v []map[string]interface{}) {
o.MeasurementSchemas = v
}
func (o TemplateSummaryDiffBucketFields) MarshalJSON() ([]byte, error) { func (o TemplateSummaryDiffBucketFields) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{} toSerialize := map[string]interface{}{}
if true { if true {
@ -132,6 +191,12 @@ func (o TemplateSummaryDiffBucketFields) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["retentionRules"] = o.RetentionRules toSerialize["retentionRules"] = o.RetentionRules
} }
if o.SchemaType != nil {
toSerialize["schemaType"] = o.SchemaType
}
if true {
toSerialize["measurementSchemas"] = o.MeasurementSchemas
}
return json.Marshal(toSerialize) return json.Marshal(toSerialize)
} }

View File

@ -0,0 +1,338 @@
/*
* Subset of Influx API covered by Influx CLI
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// TemplateSummaryDiffLabelMapping struct for TemplateSummaryDiffLabelMapping
type TemplateSummaryDiffLabelMapping struct {
Status string `json:"status" yaml:"status"`
ResourceTemplateMetaName string `json:"resourceTemplateMetaName" yaml:"resourceTemplateMetaName"`
ResourceName string `json:"resourceName" yaml:"resourceName"`
ResourceID uint64 `json:"resourceID" yaml:"resourceID"`
ResourceType string `json:"resourceType" yaml:"resourceType"`
LabelTemplateMetaName string `json:"labelTemplateMetaName" yaml:"labelTemplateMetaName"`
LabelName string `json:"labelName" yaml:"labelName"`
LabelID uint64 `json:"labelID" yaml:"labelID"`
StateStatus string `json:"stateStatus" yaml:"stateStatus"`
}
// NewTemplateSummaryDiffLabelMapping instantiates a new TemplateSummaryDiffLabelMapping 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 NewTemplateSummaryDiffLabelMapping(status string, resourceTemplateMetaName string, resourceName string, resourceID uint64, resourceType string, labelTemplateMetaName string, labelName string, labelID uint64, stateStatus string) *TemplateSummaryDiffLabelMapping {
this := TemplateSummaryDiffLabelMapping{}
this.Status = status
this.ResourceTemplateMetaName = resourceTemplateMetaName
this.ResourceName = resourceName
this.ResourceID = resourceID
this.ResourceType = resourceType
this.LabelTemplateMetaName = labelTemplateMetaName
this.LabelName = labelName
this.LabelID = labelID
this.StateStatus = stateStatus
return &this
}
// NewTemplateSummaryDiffLabelMappingWithDefaults instantiates a new TemplateSummaryDiffLabelMapping 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 NewTemplateSummaryDiffLabelMappingWithDefaults() *TemplateSummaryDiffLabelMapping {
this := TemplateSummaryDiffLabelMapping{}
return &this
}
// GetStatus returns the Status field value
func (o *TemplateSummaryDiffLabelMapping) GetStatus() string {
if o == nil {
var ret string
return ret
}
return o.Status
}
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Status, true
}
// SetStatus sets field value
func (o *TemplateSummaryDiffLabelMapping) SetStatus(v string) {
o.Status = v
}
// GetResourceTemplateMetaName returns the ResourceTemplateMetaName field value
func (o *TemplateSummaryDiffLabelMapping) GetResourceTemplateMetaName() string {
if o == nil {
var ret string
return ret
}
return o.ResourceTemplateMetaName
}
// GetResourceTemplateMetaNameOk returns a tuple with the ResourceTemplateMetaName field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetResourceTemplateMetaNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ResourceTemplateMetaName, true
}
// SetResourceTemplateMetaName sets field value
func (o *TemplateSummaryDiffLabelMapping) SetResourceTemplateMetaName(v string) {
o.ResourceTemplateMetaName = v
}
// GetResourceName returns the ResourceName field value
func (o *TemplateSummaryDiffLabelMapping) GetResourceName() string {
if o == nil {
var ret string
return ret
}
return o.ResourceName
}
// GetResourceNameOk returns a tuple with the ResourceName field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetResourceNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ResourceName, true
}
// SetResourceName sets field value
func (o *TemplateSummaryDiffLabelMapping) SetResourceName(v string) {
o.ResourceName = v
}
// GetResourceID returns the ResourceID field value
func (o *TemplateSummaryDiffLabelMapping) GetResourceID() uint64 {
if o == nil {
var ret uint64
return ret
}
return o.ResourceID
}
// GetResourceIDOk returns a tuple with the ResourceID field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetResourceIDOk() (*uint64, bool) {
if o == nil {
return nil, false
}
return &o.ResourceID, true
}
// SetResourceID sets field value
func (o *TemplateSummaryDiffLabelMapping) SetResourceID(v uint64) {
o.ResourceID = v
}
// GetResourceType returns the ResourceType field value
func (o *TemplateSummaryDiffLabelMapping) GetResourceType() string {
if o == nil {
var ret string
return ret
}
return o.ResourceType
}
// GetResourceTypeOk returns a tuple with the ResourceType field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetResourceTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ResourceType, true
}
// SetResourceType sets field value
func (o *TemplateSummaryDiffLabelMapping) SetResourceType(v string) {
o.ResourceType = v
}
// GetLabelTemplateMetaName returns the LabelTemplateMetaName field value
func (o *TemplateSummaryDiffLabelMapping) GetLabelTemplateMetaName() string {
if o == nil {
var ret string
return ret
}
return o.LabelTemplateMetaName
}
// GetLabelTemplateMetaNameOk returns a tuple with the LabelTemplateMetaName field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetLabelTemplateMetaNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.LabelTemplateMetaName, true
}
// SetLabelTemplateMetaName sets field value
func (o *TemplateSummaryDiffLabelMapping) SetLabelTemplateMetaName(v string) {
o.LabelTemplateMetaName = v
}
// GetLabelName returns the LabelName field value
func (o *TemplateSummaryDiffLabelMapping) GetLabelName() string {
if o == nil {
var ret string
return ret
}
return o.LabelName
}
// GetLabelNameOk returns a tuple with the LabelName field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetLabelNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.LabelName, true
}
// SetLabelName sets field value
func (o *TemplateSummaryDiffLabelMapping) SetLabelName(v string) {
o.LabelName = v
}
// GetLabelID returns the LabelID field value
func (o *TemplateSummaryDiffLabelMapping) GetLabelID() uint64 {
if o == nil {
var ret uint64
return ret
}
return o.LabelID
}
// GetLabelIDOk returns a tuple with the LabelID field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetLabelIDOk() (*uint64, bool) {
if o == nil {
return nil, false
}
return &o.LabelID, true
}
// SetLabelID sets field value
func (o *TemplateSummaryDiffLabelMapping) SetLabelID(v uint64) {
o.LabelID = v
}
// GetStateStatus returns the StateStatus field value
func (o *TemplateSummaryDiffLabelMapping) GetStateStatus() string {
if o == nil {
var ret string
return ret
}
return o.StateStatus
}
// GetStateStatusOk returns a tuple with the StateStatus field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMapping) GetStateStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.StateStatus, true
}
// SetStateStatus sets field value
func (o *TemplateSummaryDiffLabelMapping) SetStateStatus(v string) {
o.StateStatus = v
}
func (o TemplateSummaryDiffLabelMapping) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["status"] = o.Status
}
if true {
toSerialize["resourceTemplateMetaName"] = o.ResourceTemplateMetaName
}
if true {
toSerialize["resourceName"] = o.ResourceName
}
if true {
toSerialize["resourceID"] = o.ResourceID
}
if true {
toSerialize["resourceType"] = o.ResourceType
}
if true {
toSerialize["labelTemplateMetaName"] = o.LabelTemplateMetaName
}
if true {
toSerialize["labelName"] = o.LabelName
}
if true {
toSerialize["labelID"] = o.LabelID
}
if true {
toSerialize["stateStatus"] = o.StateStatus
}
return json.Marshal(toSerialize)
}
type NullableTemplateSummaryDiffLabelMapping struct {
value *TemplateSummaryDiffLabelMapping
isSet bool
}
func (v NullableTemplateSummaryDiffLabelMapping) Get() *TemplateSummaryDiffLabelMapping {
return v.value
}
func (v *NullableTemplateSummaryDiffLabelMapping) Set(val *TemplateSummaryDiffLabelMapping) {
v.value = val
v.isSet = true
}
func (v NullableTemplateSummaryDiffLabelMapping) IsSet() bool {
return v.isSet
}
func (v *NullableTemplateSummaryDiffLabelMapping) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTemplateSummaryDiffLabelMapping(val *TemplateSummaryDiffLabelMapping) *NullableTemplateSummaryDiffLabelMapping {
return &NullableTemplateSummaryDiffLabelMapping{value: val, isSet: true}
}
func (v NullableTemplateSummaryDiffLabelMapping) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTemplateSummaryDiffLabelMapping) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@ -0,0 +1,106 @@
/*
* Subset of Influx API covered by Influx CLI
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// TemplateSummaryDiffLabelMappingAllOf struct for TemplateSummaryDiffLabelMappingAllOf
type TemplateSummaryDiffLabelMappingAllOf struct {
StateStatus string `json:"stateStatus" yaml:"stateStatus"`
}
// NewTemplateSummaryDiffLabelMappingAllOf instantiates a new TemplateSummaryDiffLabelMappingAllOf 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 NewTemplateSummaryDiffLabelMappingAllOf(stateStatus string) *TemplateSummaryDiffLabelMappingAllOf {
this := TemplateSummaryDiffLabelMappingAllOf{}
this.StateStatus = stateStatus
return &this
}
// NewTemplateSummaryDiffLabelMappingAllOfWithDefaults instantiates a new TemplateSummaryDiffLabelMappingAllOf 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 NewTemplateSummaryDiffLabelMappingAllOfWithDefaults() *TemplateSummaryDiffLabelMappingAllOf {
this := TemplateSummaryDiffLabelMappingAllOf{}
return &this
}
// GetStateStatus returns the StateStatus field value
func (o *TemplateSummaryDiffLabelMappingAllOf) GetStateStatus() string {
if o == nil {
var ret string
return ret
}
return o.StateStatus
}
// GetStateStatusOk returns a tuple with the StateStatus field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffLabelMappingAllOf) GetStateStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.StateStatus, true
}
// SetStateStatus sets field value
func (o *TemplateSummaryDiffLabelMappingAllOf) SetStateStatus(v string) {
o.StateStatus = v
}
func (o TemplateSummaryDiffLabelMappingAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["stateStatus"] = o.StateStatus
}
return json.Marshal(toSerialize)
}
type NullableTemplateSummaryDiffLabelMappingAllOf struct {
value *TemplateSummaryDiffLabelMappingAllOf
isSet bool
}
func (v NullableTemplateSummaryDiffLabelMappingAllOf) Get() *TemplateSummaryDiffLabelMappingAllOf {
return v.value
}
func (v *NullableTemplateSummaryDiffLabelMappingAllOf) Set(val *TemplateSummaryDiffLabelMappingAllOf) {
v.value = val
v.isSet = true
}
func (v NullableTemplateSummaryDiffLabelMappingAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableTemplateSummaryDiffLabelMappingAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTemplateSummaryDiffLabelMappingAllOf(val *TemplateSummaryDiffLabelMappingAllOf) *NullableTemplateSummaryDiffLabelMappingAllOf {
return &NullableTemplateSummaryDiffLabelMappingAllOf{value: val, isSet: true}
}
func (v NullableTemplateSummaryDiffLabelMappingAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTemplateSummaryDiffLabelMappingAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@ -16,19 +16,18 @@ import (
// TemplateSummaryDiffVariableFields struct for TemplateSummaryDiffVariableFields // TemplateSummaryDiffVariableFields struct for TemplateSummaryDiffVariableFields
type TemplateSummaryDiffVariableFields struct { type TemplateSummaryDiffVariableFields struct {
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Args TemplateSummaryVariableArgs `json:"args" yaml:"args"` Args *TemplateSummaryVariableArgs `json:"args,omitempty" yaml:"args,omitempty"`
} }
// NewTemplateSummaryDiffVariableFields instantiates a new TemplateSummaryDiffVariableFields object // NewTemplateSummaryDiffVariableFields instantiates a new TemplateSummaryDiffVariableFields object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryDiffVariableFields(name string, args TemplateSummaryVariableArgs) *TemplateSummaryDiffVariableFields { func NewTemplateSummaryDiffVariableFields(name string) *TemplateSummaryDiffVariableFields {
this := TemplateSummaryDiffVariableFields{} this := TemplateSummaryDiffVariableFields{}
this.Name = name this.Name = name
this.Args = args
return &this return &this
} }
@ -96,28 +95,36 @@ func (o *TemplateSummaryDiffVariableFields) SetDescription(v string) {
o.Description = &v o.Description = &v
} }
// GetArgs returns the Args field value // GetArgs returns the Args field value if set, zero value otherwise.
func (o *TemplateSummaryDiffVariableFields) GetArgs() TemplateSummaryVariableArgs { func (o *TemplateSummaryDiffVariableFields) GetArgs() TemplateSummaryVariableArgs {
if o == nil { if o == nil || o.Args == nil {
var ret TemplateSummaryVariableArgs var ret TemplateSummaryVariableArgs
return ret return ret
} }
return *o.Args
return o.Args
} }
// GetArgsOk returns a tuple with the Args field value // GetArgsOk returns a tuple with the Args field value if set, nil otherwise
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryDiffVariableFields) GetArgsOk() (*TemplateSummaryVariableArgs, bool) { func (o *TemplateSummaryDiffVariableFields) GetArgsOk() (*TemplateSummaryVariableArgs, bool) {
if o == nil { if o == nil || o.Args == nil {
return nil, false return nil, false
} }
return &o.Args, true return o.Args, true
} }
// SetArgs sets field value // HasArgs returns a boolean if a field has been set.
func (o *TemplateSummaryDiffVariableFields) HasArgs() bool {
if o != nil && o.Args != nil {
return true
}
return false
}
// SetArgs gets a reference to the given TemplateSummaryVariableArgs and assigns it to the Args field.
func (o *TemplateSummaryDiffVariableFields) SetArgs(v TemplateSummaryVariableArgs) { func (o *TemplateSummaryDiffVariableFields) SetArgs(v TemplateSummaryVariableArgs) {
o.Args = v o.Args = &v
} }
func (o TemplateSummaryDiffVariableFields) MarshalJSON() ([]byte, error) { func (o TemplateSummaryDiffVariableFields) MarshalJSON() ([]byte, error) {
@ -128,7 +135,7 @@ func (o TemplateSummaryDiffVariableFields) MarshalJSON() ([]byte, error) {
if o.Description != nil { if o.Description != nil {
toSerialize["description"] = o.Description toSerialize["description"] = o.Description
} }
if true { if o.Args != nil {
toSerialize["args"] = o.Args toSerialize["args"] = o.Args
} }
return json.Marshal(toSerialize) return json.Marshal(toSerialize)

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryLabel struct for TemplateSummaryLabel // TemplateSummaryLabel struct for TemplateSummaryLabel
type TemplateSummaryLabel struct { type TemplateSummaryLabel struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
OrgID *uint64 `json:"orgID,omitempty" yaml:"orgID,omitempty"` OrgID *uint64 `json:"orgID,omitempty" yaml:"orgID,omitempty"`
@ -29,9 +29,10 @@ type TemplateSummaryLabel struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryLabel(kind string, envReferences []TemplateEnvReference, id uint64, name string, properties TemplateSummaryLabelAllOfProperties) *TemplateSummaryLabel { func NewTemplateSummaryLabel(kind string, templateMetaName string, envReferences []TemplateEnvReference, id uint64, name string, properties TemplateSummaryLabelAllOfProperties) *TemplateSummaryLabel {
this := TemplateSummaryLabel{} this := TemplateSummaryLabel{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.Id = id this.Id = id
this.Name = name this.Name = name
@ -71,36 +72,28 @@ func (o *TemplateSummaryLabel) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryLabel) GetTemplateMetaName() string { func (o *TemplateSummaryLabel) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryLabel) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryLabel) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryLabel) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryLabel) SetTemplateMetaName(v string) { func (o *TemplateSummaryLabel) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -236,7 +229,7 @@ func (o TemplateSummaryLabel) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryNotificationEndpoint struct for TemplateSummaryNotificationEndpoint // TemplateSummaryNotificationEndpoint struct for TemplateSummaryNotificationEndpoint
type TemplateSummaryNotificationEndpoint struct { type TemplateSummaryNotificationEndpoint struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
@ -30,9 +30,10 @@ type TemplateSummaryNotificationEndpoint struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryNotificationEndpoint(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, status string) *TemplateSummaryNotificationEndpoint { func NewTemplateSummaryNotificationEndpoint(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, status string) *TemplateSummaryNotificationEndpoint {
this := TemplateSummaryNotificationEndpoint{} this := TemplateSummaryNotificationEndpoint{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id this.Id = id
@ -73,36 +74,28 @@ func (o *TemplateSummaryNotificationEndpoint) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryNotificationEndpoint) GetTemplateMetaName() string { func (o *TemplateSummaryNotificationEndpoint) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryNotificationEndpoint) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryNotificationEndpoint) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryNotificationEndpoint) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryNotificationEndpoint) SetTemplateMetaName(v string) { func (o *TemplateSummaryNotificationEndpoint) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -262,7 +255,7 @@ func (o TemplateSummaryNotificationEndpoint) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -17,9 +17,10 @@ import (
// TemplateSummaryNotificationRule struct for TemplateSummaryNotificationRule // TemplateSummaryNotificationRule struct for TemplateSummaryNotificationRule
type TemplateSummaryNotificationRule struct { type TemplateSummaryNotificationRule struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
EndpointTemplateMetaName string `json:"endpointTemplateMetaName" yaml:"endpointTemplateMetaName"` EndpointTemplateMetaName string `json:"endpointTemplateMetaName" yaml:"endpointTemplateMetaName"`
@ -33,11 +34,13 @@ type TemplateSummaryNotificationRule struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryNotificationRule(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRule { func NewTemplateSummaryNotificationRule(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRule {
this := TemplateSummaryNotificationRule{} this := TemplateSummaryNotificationRule{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id
this.Name = name this.Name = name
this.EndpointTemplateMetaName = endpointTemplateMetaName this.EndpointTemplateMetaName = endpointTemplateMetaName
this.EndpointID = endpointID this.EndpointID = endpointID
@ -79,36 +82,28 @@ func (o *TemplateSummaryNotificationRule) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryNotificationRule) GetTemplateMetaName() string { func (o *TemplateSummaryNotificationRule) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryNotificationRule) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryNotificationRule) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryNotificationRule) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryNotificationRule) SetTemplateMetaName(v string) { func (o *TemplateSummaryNotificationRule) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -159,6 +154,30 @@ func (o *TemplateSummaryNotificationRule) SetLabelAssociations(v []TemplateSumma
o.LabelAssociations = v o.LabelAssociations = v
} }
// GetId returns the Id field value
func (o *TemplateSummaryNotificationRule) GetId() uint64 {
if o == nil {
var ret uint64
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryNotificationRule) GetIdOk() (*uint64, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *TemplateSummaryNotificationRule) SetId(v uint64) {
o.Id = v
}
// GetName returns the Name field value // GetName returns the Name field value
func (o *TemplateSummaryNotificationRule) GetName() string { func (o *TemplateSummaryNotificationRule) GetName() string {
if o == nil { if o == nil {
@ -340,7 +359,7 @@ func (o TemplateSummaryNotificationRule) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {
@ -349,6 +368,9 @@ func (o TemplateSummaryNotificationRule) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["labelAssociations"] = o.LabelAssociations toSerialize["labelAssociations"] = o.LabelAssociations
} }
if true {
toSerialize["id"] = o.Id
}
if true { if true {
toSerialize["name"] = o.Name toSerialize["name"] = o.Name
} }

View File

@ -16,6 +16,7 @@ import (
// TemplateSummaryNotificationRuleAllOf struct for TemplateSummaryNotificationRuleAllOf // TemplateSummaryNotificationRuleAllOf struct for TemplateSummaryNotificationRuleAllOf
type TemplateSummaryNotificationRuleAllOf struct { type TemplateSummaryNotificationRuleAllOf struct {
Id uint64 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
EndpointTemplateMetaName string `json:"endpointTemplateMetaName" yaml:"endpointTemplateMetaName"` EndpointTemplateMetaName string `json:"endpointTemplateMetaName" yaml:"endpointTemplateMetaName"`
@ -29,8 +30,9 @@ type TemplateSummaryNotificationRuleAllOf struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryNotificationRuleAllOf(name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRuleAllOf { func NewTemplateSummaryNotificationRuleAllOf(id uint64, name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRuleAllOf {
this := TemplateSummaryNotificationRuleAllOf{} this := TemplateSummaryNotificationRuleAllOf{}
this.Id = id
this.Name = name this.Name = name
this.EndpointTemplateMetaName = endpointTemplateMetaName this.EndpointTemplateMetaName = endpointTemplateMetaName
this.EndpointID = endpointID this.EndpointID = endpointID
@ -48,6 +50,30 @@ func NewTemplateSummaryNotificationRuleAllOfWithDefaults() *TemplateSummaryNotif
return &this return &this
} }
// GetId returns the Id field value
func (o *TemplateSummaryNotificationRuleAllOf) GetId() uint64 {
if o == nil {
var ret uint64
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryNotificationRuleAllOf) GetIdOk() (*uint64, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *TemplateSummaryNotificationRuleAllOf) SetId(v uint64) {
o.Id = v
}
// GetName returns the Name field value // GetName returns the Name field value
func (o *TemplateSummaryNotificationRuleAllOf) GetName() string { func (o *TemplateSummaryNotificationRuleAllOf) GetName() string {
if o == nil { if o == nil {
@ -226,6 +252,9 @@ func (o *TemplateSummaryNotificationRuleAllOf) SetOffset(v string) {
func (o TemplateSummaryNotificationRuleAllOf) MarshalJSON() ([]byte, error) { func (o TemplateSummaryNotificationRuleAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{} toSerialize := map[string]interface{}{}
if true {
toSerialize["id"] = o.Id
}
if true { if true {
toSerialize["name"] = o.Name toSerialize["name"] = o.Name
} }

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryTask struct for TemplateSummaryTask // TemplateSummaryTask struct for TemplateSummaryTask
type TemplateSummaryTask struct { type TemplateSummaryTask struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
@ -32,9 +32,10 @@ type TemplateSummaryTask struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryTask(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryTask { func NewTemplateSummaryTask(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryTask {
this := TemplateSummaryTask{} this := TemplateSummaryTask{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id this.Id = id
@ -74,36 +75,28 @@ func (o *TemplateSummaryTask) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryTask) GetTemplateMetaName() string { func (o *TemplateSummaryTask) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryTask) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryTask) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryTask) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryTask) SetTemplateMetaName(v string) { func (o *TemplateSummaryTask) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -335,7 +328,7 @@ func (o TemplateSummaryTask) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -17,7 +17,7 @@ import (
// TemplateSummaryTelegraf struct for TemplateSummaryTelegraf // TemplateSummaryTelegraf struct for TemplateSummaryTelegraf
type TemplateSummaryTelegraf struct { type TemplateSummaryTelegraf struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
TelegrafConfig TemplateSummaryTelegrafConfig `json:"telegrafConfig" yaml:"telegrafConfig"` TelegrafConfig TemplateSummaryTelegrafConfig `json:"telegrafConfig" yaml:"telegrafConfig"`
@ -27,9 +27,10 @@ type TemplateSummaryTelegraf struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryTelegraf(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, telegrafConfig TemplateSummaryTelegrafConfig) *TemplateSummaryTelegraf { func NewTemplateSummaryTelegraf(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, telegrafConfig TemplateSummaryTelegrafConfig) *TemplateSummaryTelegraf {
this := TemplateSummaryTelegraf{} this := TemplateSummaryTelegraf{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.TelegrafConfig = telegrafConfig this.TelegrafConfig = telegrafConfig
@ -68,36 +69,28 @@ func (o *TemplateSummaryTelegraf) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryTelegraf) GetTemplateMetaName() string { func (o *TemplateSummaryTelegraf) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryTelegraf) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryTelegraf) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryTelegraf) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryTelegraf) SetTemplateMetaName(v string) { func (o *TemplateSummaryTelegraf) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -177,7 +170,7 @@ func (o TemplateSummaryTelegraf) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {

View File

@ -16,7 +16,7 @@ import (
// TemplateSummaryTelegrafConfig struct for TemplateSummaryTelegrafConfig // TemplateSummaryTelegrafConfig struct for TemplateSummaryTelegrafConfig
type TemplateSummaryTelegrafConfig struct { type TemplateSummaryTelegrafConfig struct {
Id uint64 `json:"id" yaml:"id"` Id string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
} }
@ -25,7 +25,7 @@ type TemplateSummaryTelegrafConfig struct {
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryTelegrafConfig(id uint64, name string) *TemplateSummaryTelegrafConfig { func NewTemplateSummaryTelegrafConfig(id string, name string) *TemplateSummaryTelegrafConfig {
this := TemplateSummaryTelegrafConfig{} this := TemplateSummaryTelegrafConfig{}
this.Id = id this.Id = id
this.Name = name this.Name = name
@ -41,9 +41,9 @@ func NewTemplateSummaryTelegrafConfigWithDefaults() *TemplateSummaryTelegrafConf
} }
// GetId returns the Id field value // GetId returns the Id field value
func (o *TemplateSummaryTelegrafConfig) GetId() uint64 { func (o *TemplateSummaryTelegrafConfig) GetId() string {
if o == nil { if o == nil {
var ret uint64 var ret string
return ret return ret
} }
@ -52,7 +52,7 @@ func (o *TemplateSummaryTelegrafConfig) GetId() uint64 {
// GetIdOk returns a tuple with the Id field value // GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryTelegrafConfig) GetIdOk() (*uint64, bool) { func (o *TemplateSummaryTelegrafConfig) GetIdOk() (*string, bool) {
if o == nil { if o == nil {
return nil, false return nil, false
} }
@ -60,7 +60,7 @@ func (o *TemplateSummaryTelegrafConfig) GetIdOk() (*uint64, bool) {
} }
// SetId sets field value // SetId sets field value
func (o *TemplateSummaryTelegrafConfig) SetId(v uint64) { func (o *TemplateSummaryTelegrafConfig) SetId(v string) {
o.Id = v o.Id = v
} }

View File

@ -16,28 +16,28 @@ import (
// TemplateSummaryVariable struct for TemplateSummaryVariable // TemplateSummaryVariable struct for TemplateSummaryVariable
type TemplateSummaryVariable struct { type TemplateSummaryVariable struct {
Kind string `json:"kind" yaml:"kind"` Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Arguments TemplateSummaryVariableArgs `json:"arguments" yaml:"arguments"` Arguments *TemplateSummaryVariableArgs `json:"arguments,omitempty" yaml:"arguments,omitempty"`
} }
// NewTemplateSummaryVariable instantiates a new TemplateSummaryVariable object // NewTemplateSummaryVariable instantiates a new TemplateSummaryVariable object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryVariable(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, arguments TemplateSummaryVariableArgs) *TemplateSummaryVariable { func NewTemplateSummaryVariable(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryVariable {
this := TemplateSummaryVariable{} this := TemplateSummaryVariable{}
this.Kind = kind this.Kind = kind
this.TemplateMetaName = templateMetaName
this.EnvReferences = envReferences this.EnvReferences = envReferences
this.LabelAssociations = labelAssociations this.LabelAssociations = labelAssociations
this.Id = id this.Id = id
this.Name = name this.Name = name
this.Arguments = arguments
return &this return &this
} }
@ -73,36 +73,28 @@ func (o *TemplateSummaryVariable) SetKind(v string) {
o.Kind = v o.Kind = v
} }
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. // GetTemplateMetaName returns the TemplateMetaName field value
func (o *TemplateSummaryVariable) GetTemplateMetaName() string { func (o *TemplateSummaryVariable) GetTemplateMetaName() string {
if o == nil || o.TemplateMetaName == nil { if o == nil {
var ret string var ret string
return ret return ret
} }
return *o.TemplateMetaName
return o.TemplateMetaName
} }
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryVariable) GetTemplateMetaNameOk() (*string, bool) { func (o *TemplateSummaryVariable) GetTemplateMetaNameOk() (*string, bool) {
if o == nil || o.TemplateMetaName == nil { if o == nil {
return nil, false return nil, false
} }
return o.TemplateMetaName, true return &o.TemplateMetaName, true
} }
// HasTemplateMetaName returns a boolean if a field has been set. // SetTemplateMetaName sets field value
func (o *TemplateSummaryVariable) HasTemplateMetaName() bool {
if o != nil && o.TemplateMetaName != nil {
return true
}
return false
}
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
func (o *TemplateSummaryVariable) SetTemplateMetaName(v string) { func (o *TemplateSummaryVariable) SetTemplateMetaName(v string) {
o.TemplateMetaName = &v o.TemplateMetaName = v
} }
// GetEnvReferences returns the EnvReferences field value // GetEnvReferences returns the EnvReferences field value
@ -233,28 +225,36 @@ func (o *TemplateSummaryVariable) SetDescription(v string) {
o.Description = &v o.Description = &v
} }
// GetArguments returns the Arguments field value // GetArguments returns the Arguments field value if set, zero value otherwise.
func (o *TemplateSummaryVariable) GetArguments() TemplateSummaryVariableArgs { func (o *TemplateSummaryVariable) GetArguments() TemplateSummaryVariableArgs {
if o == nil { if o == nil || o.Arguments == nil {
var ret TemplateSummaryVariableArgs var ret TemplateSummaryVariableArgs
return ret return ret
} }
return *o.Arguments
return o.Arguments
} }
// GetArgumentsOk returns a tuple with the Arguments field value // GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryVariable) GetArgumentsOk() (*TemplateSummaryVariableArgs, bool) { func (o *TemplateSummaryVariable) GetArgumentsOk() (*TemplateSummaryVariableArgs, bool) {
if o == nil { if o == nil || o.Arguments == nil {
return nil, false return nil, false
} }
return &o.Arguments, true return o.Arguments, true
} }
// SetArguments sets field value // HasArguments returns a boolean if a field has been set.
func (o *TemplateSummaryVariable) HasArguments() bool {
if o != nil && o.Arguments != nil {
return true
}
return false
}
// SetArguments gets a reference to the given TemplateSummaryVariableArgs and assigns it to the Arguments field.
func (o *TemplateSummaryVariable) SetArguments(v TemplateSummaryVariableArgs) { func (o *TemplateSummaryVariable) SetArguments(v TemplateSummaryVariableArgs) {
o.Arguments = v o.Arguments = &v
} }
func (o TemplateSummaryVariable) MarshalJSON() ([]byte, error) { func (o TemplateSummaryVariable) MarshalJSON() ([]byte, error) {
@ -262,7 +262,7 @@ func (o TemplateSummaryVariable) MarshalJSON() ([]byte, error) {
if true { if true {
toSerialize["kind"] = o.Kind toSerialize["kind"] = o.Kind
} }
if o.TemplateMetaName != nil { if true {
toSerialize["templateMetaName"] = o.TemplateMetaName toSerialize["templateMetaName"] = o.TemplateMetaName
} }
if true { if true {
@ -280,7 +280,7 @@ func (o TemplateSummaryVariable) MarshalJSON() ([]byte, error) {
if o.Description != nil { if o.Description != nil {
toSerialize["description"] = o.Description toSerialize["description"] = o.Description
} }
if true { if o.Arguments != nil {
toSerialize["arguments"] = o.Arguments toSerialize["arguments"] = o.Arguments
} }
return json.Marshal(toSerialize) return json.Marshal(toSerialize)

View File

@ -16,21 +16,20 @@ import (
// TemplateSummaryVariableAllOf struct for TemplateSummaryVariableAllOf // TemplateSummaryVariableAllOf struct for TemplateSummaryVariableAllOf
type TemplateSummaryVariableAllOf struct { type TemplateSummaryVariableAllOf struct {
Id uint64 `json:"id" yaml:"id"` Id uint64 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"` Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Arguments TemplateSummaryVariableArgs `json:"arguments" yaml:"arguments"` Arguments *TemplateSummaryVariableArgs `json:"arguments,omitempty" yaml:"arguments,omitempty"`
} }
// NewTemplateSummaryVariableAllOf instantiates a new TemplateSummaryVariableAllOf object // NewTemplateSummaryVariableAllOf instantiates a new TemplateSummaryVariableAllOf object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryVariableAllOf(id uint64, name string, arguments TemplateSummaryVariableArgs) *TemplateSummaryVariableAllOf { func NewTemplateSummaryVariableAllOf(id uint64, name string) *TemplateSummaryVariableAllOf {
this := TemplateSummaryVariableAllOf{} this := TemplateSummaryVariableAllOf{}
this.Id = id this.Id = id
this.Name = name this.Name = name
this.Arguments = arguments
return &this return &this
} }
@ -122,28 +121,36 @@ func (o *TemplateSummaryVariableAllOf) SetDescription(v string) {
o.Description = &v o.Description = &v
} }
// GetArguments returns the Arguments field value // GetArguments returns the Arguments field value if set, zero value otherwise.
func (o *TemplateSummaryVariableAllOf) GetArguments() TemplateSummaryVariableArgs { func (o *TemplateSummaryVariableAllOf) GetArguments() TemplateSummaryVariableArgs {
if o == nil { if o == nil || o.Arguments == nil {
var ret TemplateSummaryVariableArgs var ret TemplateSummaryVariableArgs
return ret return ret
} }
return *o.Arguments
return o.Arguments
} }
// GetArgumentsOk returns a tuple with the Arguments field value // GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise
// and a boolean to check if the value has been set. // and a boolean to check if the value has been set.
func (o *TemplateSummaryVariableAllOf) GetArgumentsOk() (*TemplateSummaryVariableArgs, bool) { func (o *TemplateSummaryVariableAllOf) GetArgumentsOk() (*TemplateSummaryVariableArgs, bool) {
if o == nil { if o == nil || o.Arguments == nil {
return nil, false return nil, false
} }
return &o.Arguments, true return o.Arguments, true
} }
// SetArguments sets field value // HasArguments returns a boolean if a field has been set.
func (o *TemplateSummaryVariableAllOf) HasArguments() bool {
if o != nil && o.Arguments != nil {
return true
}
return false
}
// SetArguments gets a reference to the given TemplateSummaryVariableArgs and assigns it to the Arguments field.
func (o *TemplateSummaryVariableAllOf) SetArguments(v TemplateSummaryVariableArgs) { func (o *TemplateSummaryVariableAllOf) SetArguments(v TemplateSummaryVariableArgs) {
o.Arguments = v o.Arguments = &v
} }
func (o TemplateSummaryVariableAllOf) MarshalJSON() ([]byte, error) { func (o TemplateSummaryVariableAllOf) MarshalJSON() ([]byte, error) {
@ -157,7 +164,7 @@ func (o TemplateSummaryVariableAllOf) MarshalJSON() ([]byte, error) {
if o.Description != nil { if o.Description != nil {
toSerialize["description"] = o.Description toSerialize["description"] = o.Description
} }
if true { if o.Arguments != nil {
toSerialize["arguments"] = o.Arguments toSerialize["arguments"] = o.Arguments
} }
return json.Marshal(toSerialize) return json.Marshal(toSerialize)

View File

@ -16,19 +16,18 @@ import (
// TemplateSummaryVariableArgs struct for TemplateSummaryVariableArgs // TemplateSummaryVariableArgs struct for TemplateSummaryVariableArgs
type TemplateSummaryVariableArgs struct { type TemplateSummaryVariableArgs struct {
Type string `json:"type" yaml:"type"` Type string `json:"type" yaml:"type"`
AdditionalProperties map[string]interface{} Values interface{} `json:"values" yaml:"values"`
} }
type _TemplateSummaryVariableArgs TemplateSummaryVariableArgs
// NewTemplateSummaryVariableArgs instantiates a new TemplateSummaryVariableArgs object // NewTemplateSummaryVariableArgs instantiates a new TemplateSummaryVariableArgs object
// This constructor will assign default values to properties that have it defined, // 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 // and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed // will change when the set of required properties is changed
func NewTemplateSummaryVariableArgs(type_ string) *TemplateSummaryVariableArgs { func NewTemplateSummaryVariableArgs(type_ string, values interface{}) *TemplateSummaryVariableArgs {
this := TemplateSummaryVariableArgs{} this := TemplateSummaryVariableArgs{}
this.Type = type_ this.Type = type_
this.Values = values
return &this return &this
} }
@ -64,36 +63,43 @@ func (o *TemplateSummaryVariableArgs) SetType(v string) {
o.Type = v o.Type = v
} }
// GetValues returns the Values field value
// If the value is explicit nil, the zero value for interface{} will be returned
func (o *TemplateSummaryVariableArgs) GetValues() interface{} {
if o == nil {
var ret interface{}
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.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TemplateSummaryVariableArgs) GetValuesOk() (*interface{}, bool) {
if o == nil || o.Values == nil {
return nil, false
}
return &o.Values, true
}
// SetValues sets field value
func (o *TemplateSummaryVariableArgs) SetValues(v interface{}) {
o.Values = v
}
func (o TemplateSummaryVariableArgs) MarshalJSON() ([]byte, error) { func (o TemplateSummaryVariableArgs) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{} toSerialize := map[string]interface{}{}
if true { if true {
toSerialize["type"] = o.Type toSerialize["type"] = o.Type
} }
if o.Values != nil {
for key, value := range o.AdditionalProperties { toSerialize["values"] = o.Values
toSerialize[key] = value
} }
return json.Marshal(toSerialize) return json.Marshal(toSerialize)
} }
func (o *TemplateSummaryVariableArgs) UnmarshalJSON(bytes []byte) (err error) {
varTemplateSummaryVariableArgs := _TemplateSummaryVariableArgs{}
if err = json.Unmarshal(bytes, &varTemplateSummaryVariableArgs); err == nil {
*o = TemplateSummaryVariableArgs(varTemplateSummaryVariableArgs)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "type")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableTemplateSummaryVariableArgs struct { type NullableTemplateSummaryVariableArgs struct {
value *TemplateSummaryVariableArgs value *TemplateSummaryVariableArgs
isSet bool isSet bool