mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:12:59 +08:00

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com> Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com>
53 lines
2.6 KiB
Go
53 lines
2.6 KiB
Go
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v0alpha1
|
|
|
|
// RepositoryStatusApplyConfiguration represents a declarative configuration of the RepositoryStatus type for use
|
|
// with apply.
|
|
type RepositoryStatusApplyConfiguration struct {
|
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
|
Health *HealthStatusApplyConfiguration `json:"health,omitempty"`
|
|
Sync *SyncStatusApplyConfiguration `json:"sync,omitempty"`
|
|
Webhook *WebhookStatusApplyConfiguration `json:"webhook,omitempty"`
|
|
}
|
|
|
|
// RepositoryStatusApplyConfiguration constructs a declarative configuration of the RepositoryStatus type for use with
|
|
// apply.
|
|
func RepositoryStatus() *RepositoryStatusApplyConfiguration {
|
|
return &RepositoryStatusApplyConfiguration{}
|
|
}
|
|
|
|
// WithObservedGeneration sets the ObservedGeneration 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 ObservedGeneration field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithObservedGeneration(value int64) *RepositoryStatusApplyConfiguration {
|
|
b.ObservedGeneration = &value
|
|
return b
|
|
}
|
|
|
|
// WithHealth sets the Health 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 Health field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithHealth(value *HealthStatusApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
b.Health = value
|
|
return b
|
|
}
|
|
|
|
// WithSync sets the Sync 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 Sync field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithSync(value *SyncStatusApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
b.Sync = value
|
|
return b
|
|
}
|
|
|
|
// WithWebhook sets the Webhook 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 Webhook field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithWebhook(value *WebhookStatusApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
b.Webhook = value
|
|
return b
|
|
}
|