mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
48 lines
1.9 KiB
Go
48 lines
1.9 KiB
Go
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v0alpha1
|
|
|
|
import (
|
|
v0alpha1 "github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1"
|
|
)
|
|
|
|
// ServiceApplyConfiguration represents a declarative configuration of the Service type for use
|
|
// with apply.
|
|
type ServiceApplyConfiguration struct {
|
|
Type *v0alpha1.ServiceType `json:"type,omitempty"`
|
|
Method *string `json:"method,omitempty"`
|
|
Path *string `json:"path,omitempty"`
|
|
}
|
|
|
|
// ServiceApplyConfiguration constructs a declarative configuration of the Service type for use with
|
|
// apply.
|
|
func Service() *ServiceApplyConfiguration {
|
|
return &ServiceApplyConfiguration{}
|
|
}
|
|
|
|
// 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 *ServiceApplyConfiguration) WithType(value v0alpha1.ServiceType) *ServiceApplyConfiguration {
|
|
b.Type = &value
|
|
return b
|
|
}
|
|
|
|
// WithMethod sets the Method 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 Method field is set to the value of the last call.
|
|
func (b *ServiceApplyConfiguration) WithMethod(value string) *ServiceApplyConfiguration {
|
|
b.Method = &value
|
|
return b
|
|
}
|
|
|
|
// WithPath sets the Path 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 Path field is set to the value of the last call.
|
|
func (b *ServiceApplyConfiguration) WithPath(value string) *ServiceApplyConfiguration {
|
|
b.Path = &value
|
|
return b
|
|
}
|