mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 19:12:12 +08:00

* Provisioning: Define secrets service * Provisioning: Create and store secrets service * Provisioning: Define safepath * Provisioning: Define the repository * Identity: Support a provisioning service * Provisioning: Define a job queue * Chore: Regen code * Provisioning: Show progress more often Co-Authored-By: Ryan McKinley <ryantxu@gmail.com> * Provisioning: Rename hash field to lastRef Co-Authored-By: =?UTF-8?q?Roberto=20Jim=C3=A9nez=20S=C3=A1nchez?= <roberto.jimenez@grafana.com> * Provisioning: Workflows as write access Co-Authored-By: Ryan McKinley <ryantxu@gmail.com> * Provisioning: Regen OpenAPI snapshot * Provisioning: Update tests to match new fields --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com> Co-authored-by: =?UTF-8?q?Roberto=20Jim=C3=A9nez=20S=C3=A1nchez?= <roberto.jimenez@grafana.com>
95 lines
4.4 KiB
Go
95 lines
4.4 KiB
Go
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v0alpha1
|
|
|
|
import (
|
|
provisioningv0alpha1 "github.com/grafana/grafana/pkg/apis/provisioning/v0alpha1"
|
|
)
|
|
|
|
// SyncStatusApplyConfiguration represents a declarative configuration of the SyncStatus type for use
|
|
// with apply.
|
|
type SyncStatusApplyConfiguration struct {
|
|
State *provisioningv0alpha1.JobState `json:"state,omitempty"`
|
|
JobID *string `json:"job,omitempty"`
|
|
Started *int64 `json:"started,omitempty"`
|
|
Finished *int64 `json:"finished,omitempty"`
|
|
Scheduled *int64 `json:"scheduled,omitempty"`
|
|
Message []string `json:"message,omitempty"`
|
|
LastRef *string `json:"lastRef,omitempty"`
|
|
Incremental *bool `json:"incremental,omitempty"`
|
|
}
|
|
|
|
// SyncStatusApplyConfiguration constructs a declarative configuration of the SyncStatus type for use with
|
|
// apply.
|
|
func SyncStatus() *SyncStatusApplyConfiguration {
|
|
return &SyncStatusApplyConfiguration{}
|
|
}
|
|
|
|
// WithState sets the State 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 State field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithState(value provisioningv0alpha1.JobState) *SyncStatusApplyConfiguration {
|
|
b.State = &value
|
|
return b
|
|
}
|
|
|
|
// WithJobID sets the JobID 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 JobID field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithJobID(value string) *SyncStatusApplyConfiguration {
|
|
b.JobID = &value
|
|
return b
|
|
}
|
|
|
|
// WithStarted sets the Started 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 Started field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithStarted(value int64) *SyncStatusApplyConfiguration {
|
|
b.Started = &value
|
|
return b
|
|
}
|
|
|
|
// WithFinished sets the Finished 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 Finished field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithFinished(value int64) *SyncStatusApplyConfiguration {
|
|
b.Finished = &value
|
|
return b
|
|
}
|
|
|
|
// WithScheduled sets the Scheduled 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 Scheduled field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithScheduled(value int64) *SyncStatusApplyConfiguration {
|
|
b.Scheduled = &value
|
|
return b
|
|
}
|
|
|
|
// WithMessage adds the given value to the Message 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 Message field.
|
|
func (b *SyncStatusApplyConfiguration) WithMessage(values ...string) *SyncStatusApplyConfiguration {
|
|
for i := range values {
|
|
b.Message = append(b.Message, values[i])
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithLastRef sets the LastRef 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 LastRef field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithLastRef(value string) *SyncStatusApplyConfiguration {
|
|
b.LastRef = &value
|
|
return b
|
|
}
|
|
|
|
// WithIncremental sets the Incremental 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 Incremental field is set to the value of the last call.
|
|
func (b *SyncStatusApplyConfiguration) WithIncremental(value bool) *SyncStatusApplyConfiguration {
|
|
b.Incremental = &value
|
|
return b
|
|
}
|