v1alpha1

package
v1.123.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the serviceusage v1alpha1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/serviceusage +k8s:defaulter-gen=TypeMeta +groupName=serviceusage.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "serviceusage.cnrm.cloud.google.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme

	ServiceUsageConsumerQuotaOverrideGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(ServiceUsageConsumerQuotaOverride{}).Name(),
	}
)

Functions

This section is empty.

Types

type ServiceUsageConsumerQuotaOverride

type ServiceUsageConsumerQuotaOverride struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServiceUsageConsumerQuotaOverrideSpec   `json:"spec,omitempty"`
	Status ServiceUsageConsumerQuotaOverrideStatus `json:"status,omitempty"`
}

ServiceUsageConsumerQuotaOverride is the Schema for the serviceusage API +k8s:openapi-gen=true

func (*ServiceUsageConsumerQuotaOverride) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceUsageConsumerQuotaOverride.

func (*ServiceUsageConsumerQuotaOverride) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceUsageConsumerQuotaOverride) DeepCopyObject

func (in *ServiceUsageConsumerQuotaOverride) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceUsageConsumerQuotaOverrideList

type ServiceUsageConsumerQuotaOverrideList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceUsageConsumerQuotaOverride `json:"items"`
}

ServiceUsageConsumerQuotaOverrideList contains a list of ServiceUsageConsumerQuotaOverride

func (*ServiceUsageConsumerQuotaOverrideList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceUsageConsumerQuotaOverrideList.

func (*ServiceUsageConsumerQuotaOverrideList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceUsageConsumerQuotaOverrideList) DeepCopyObject

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceUsageConsumerQuotaOverrideSpec

type ServiceUsageConsumerQuotaOverrideSpec struct {
	/* Immutable. If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. */
	// +optional
	Dimensions map[string]string `json:"dimensions,omitempty"`

	/* If the new quota would decrease the existing quota by more than 10%, the request is rejected.
	If 'force' is 'true', that safety check is ignored. */
	// +optional
	Force *bool `json:"force,omitempty"`

	/* Immutable. The limit on the metric, e.g. '/project/region'.

	~> Make sure that 'limit' is in a format that doesn't start with '1/' or contain curly braces.
	E.g. use '/project/user' instead of '1/{project}/{user}'. */
	Limit string `json:"limit"`

	/* Immutable. The metric that should be limited, e.g. 'compute.googleapis.com/cpus'. */
	Metric string `json:"metric"`

	/* The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota). */
	OverrideValue string `json:"overrideValue"`

	/* The project that this resource belongs to. */
	ProjectRef v1alpha1.ResourceRef `json:"projectRef"`

	/* Immutable. Optional. The service-generated name of the resource. Used for acquisition only. Leave unset to create a new resource. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`

	/* Immutable. The service that the metrics belong to, e.g. 'compute.googleapis.com'. */
	Service string `json:"service"`
}

func (*ServiceUsageConsumerQuotaOverrideSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceUsageConsumerQuotaOverrideSpec.

func (*ServiceUsageConsumerQuotaOverrideSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceUsageConsumerQuotaOverrideStatus

type ServiceUsageConsumerQuotaOverrideStatus struct {
	/* Conditions represent the latest available observations of the
	   ServiceUsageConsumerQuotaOverride's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* The server-generated name of the quota override. */
	// +optional
	Name *string `json:"name,omitempty"`

	/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
	// +optional
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
}

func (*ServiceUsageConsumerQuotaOverrideStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceUsageConsumerQuotaOverrideStatus.

func (*ServiceUsageConsumerQuotaOverrideStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL