mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 22:52:20 +08:00

* Provisioning: Remove S3 * Provisioning: Use URL for GitHub Co-Authored-By: Ryan McKinley <ryantxu@gmail.com> Co-Authored-By: Alex Khomenko <Clarity-89@users.noreply.github.com> * Provisioning: Use workflow list Co-Authored-By: =?UTF-8?q?Roberto=20Jim=C3=A9nez=20S=C3=A1nchez?= <roberto.jimenez@grafana.com> * Provisioning: Model secrets * Provisioning: Define a total in the job summary * Provisioning: Generate code * Provisioning: Update testdata --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com> Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> Co-authored-by: =?UTF-8?q?Roberto=20Jim=C3=A9nez=20S=C3=A1nchez?= <roberto.jimenez@grafana.com>
66 lines
3.0 KiB
Go
66 lines
3.0 KiB
Go
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v0alpha1
|
|
|
|
// WebhookStatusApplyConfiguration represents a declarative configuration of the WebhookStatus type for use
|
|
// with apply.
|
|
type WebhookStatusApplyConfiguration struct {
|
|
ID *int64 `json:"id,omitempty"`
|
|
URL *string `json:"url,omitempty"`
|
|
Secret *string `json:"secret,omitempty"`
|
|
EncryptedSecret []byte `json:"encryptedSecret,omitempty"`
|
|
SubscribedEvents []string `json:"subscribedEvents,omitempty"`
|
|
}
|
|
|
|
// WebhookStatusApplyConfiguration constructs a declarative configuration of the WebhookStatus type for use with
|
|
// apply.
|
|
func WebhookStatus() *WebhookStatusApplyConfiguration {
|
|
return &WebhookStatusApplyConfiguration{}
|
|
}
|
|
|
|
// WithID sets the ID 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 ID field is set to the value of the last call.
|
|
func (b *WebhookStatusApplyConfiguration) WithID(value int64) *WebhookStatusApplyConfiguration {
|
|
b.ID = &value
|
|
return b
|
|
}
|
|
|
|
// WithURL sets the URL 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 URL field is set to the value of the last call.
|
|
func (b *WebhookStatusApplyConfiguration) WithURL(value string) *WebhookStatusApplyConfiguration {
|
|
b.URL = &value
|
|
return b
|
|
}
|
|
|
|
// WithSecret sets the Secret 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 Secret field is set to the value of the last call.
|
|
func (b *WebhookStatusApplyConfiguration) WithSecret(value string) *WebhookStatusApplyConfiguration {
|
|
b.Secret = &value
|
|
return b
|
|
}
|
|
|
|
// WithEncryptedSecret adds the given value to the EncryptedSecret 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 EncryptedSecret field.
|
|
func (b *WebhookStatusApplyConfiguration) WithEncryptedSecret(values ...byte) *WebhookStatusApplyConfiguration {
|
|
for i := range values {
|
|
b.EncryptedSecret = append(b.EncryptedSecret, values[i])
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithSubscribedEvents adds the given value to the SubscribedEvents 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 SubscribedEvents field.
|
|
func (b *WebhookStatusApplyConfiguration) WithSubscribedEvents(values ...string) *WebhookStatusApplyConfiguration {
|
|
for i := range values {
|
|
b.SubscribedEvents = append(b.SubscribedEvents, values[i])
|
|
}
|
|
return b
|
|
}
|