mirror of https://github.com/grafana/grafana.git
70 lines
3.2 KiB
Go
70 lines
3.2 KiB
Go
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||
|
|
||
|
package v0alpha1
|
||
|
|
||
|
// IntegrationApplyConfiguration represents an declarative configuration of the Integration type for use
|
||
|
// with apply.
|
||
|
type IntegrationApplyConfiguration struct {
|
||
|
DisableResolveMessage *bool `json:"disableResolveMessage,omitempty"`
|
||
|
SecureFields map[string]bool `json:"SecureFields,omitempty"`
|
||
|
Settings []byte `json:"settings,omitempty"`
|
||
|
Type *string `json:"type,omitempty"`
|
||
|
Uid *string `json:"uid,omitempty"`
|
||
|
}
|
||
|
|
||
|
// IntegrationApplyConfiguration constructs an declarative configuration of the Integration type for use with
|
||
|
// apply.
|
||
|
func Integration() *IntegrationApplyConfiguration {
|
||
|
return &IntegrationApplyConfiguration{}
|
||
|
}
|
||
|
|
||
|
// WithDisableResolveMessage sets the DisableResolveMessage field in the declarative configuration to the given value
|
||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||
|
// If called multiple times, the DisableResolveMessage field is set to the value of the last call.
|
||
|
func (b *IntegrationApplyConfiguration) WithDisableResolveMessage(value bool) *IntegrationApplyConfiguration {
|
||
|
b.DisableResolveMessage = &value
|
||
|
return b
|
||
|
}
|
||
|
|
||
|
// WithSecureFields puts the entries into the SecureFields field in the declarative configuration
|
||
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||
|
// If called multiple times, the entries provided by each call will be put on the SecureFields field,
|
||
|
// overwriting an existing map entries in SecureFields field with the same key.
|
||
|
func (b *IntegrationApplyConfiguration) WithSecureFields(entries map[string]bool) *IntegrationApplyConfiguration {
|
||
|
if b.SecureFields == nil && len(entries) > 0 {
|
||
|
b.SecureFields = make(map[string]bool, len(entries))
|
||
|
}
|
||
|
for k, v := range entries {
|
||
|
b.SecureFields[k] = v
|
||
|
}
|
||
|
return b
|
||
|
}
|
||
|
|
||
|
// WithSettings adds the given value to the Settings field in the declarative configuration
|
||
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||
|
// If called multiple times, values provided by each call will be appended to the Settings field.
|
||
|
func (b *IntegrationApplyConfiguration) WithSettings(values ...byte) *IntegrationApplyConfiguration {
|
||
|
for i := range values {
|
||
|
b.Settings = append(b.Settings, values[i])
|
||
|
}
|
||
|
return b
|
||
|
}
|
||
|
|
||
|
// WithType sets the Type field in the declarative configuration to the given value
|
||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||
|
// If called multiple times, the Type field is set to the value of the last call.
|
||
|
func (b *IntegrationApplyConfiguration) WithType(value string) *IntegrationApplyConfiguration {
|
||
|
b.Type = &value
|
||
|
return b
|
||
|
}
|
||
|
|
||
|
// WithUid sets the Uid field in the declarative configuration to the given value
|
||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||
|
// If called multiple times, the Uid field is set to the value of the last call.
|
||
|
func (b *IntegrationApplyConfiguration) WithUid(value string) *IntegrationApplyConfiguration {
|
||
|
b.Uid = &value
|
||
|
return b
|
||
|
}
|