v1alpha1

package
v0.0.0-...-6fe2522 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=license.vsphere.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "license.vsphere.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	License_Kind             = "License"
	License_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: License_Kind}.String()
	License_KindAPIVersion   = License_Kind + "." + CRDGroupVersion.String()
	License_GroupVersionKind = CRDGroupVersion.WithKind(License_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type License

type License struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LicenseSpec   `json:"spec"`
	Status            LicenseStatus `json:"status,omitempty"`
}

License is the Schema for the Licenses API. Provides a VMware vSphere license resource. This can be used to add and remove license keys. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vsphere}

func (*License) DeepCopy

func (in *License) DeepCopy() *License

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

func (*License) DeepCopyInto

func (in *License) DeepCopyInto(out *License)

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

func (*License) DeepCopyObject

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

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

func (*License) GetCondition

func (mg *License) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this License.

func (*License) GetConnectionDetailsMapping

func (tr *License) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this License

func (*License) GetDeletionPolicy

func (mg *License) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this License.

func (*License) GetID

func (tr *License) GetID() string

GetID returns ID of underlying Terraform resource of this License

func (*License) GetObservation

func (tr *License) GetObservation() (map[string]any, error)

GetObservation of this License

func (*License) GetParameters

func (tr *License) GetParameters() (map[string]any, error)

GetParameters of this License

func (*License) GetProviderConfigReference

func (mg *License) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this License.

func (*License) GetProviderReference

func (mg *License) GetProviderReference() *xpv1.Reference

GetProviderReference of this License. Deprecated: Use GetProviderConfigReference.

func (*License) GetPublishConnectionDetailsTo

func (mg *License) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this License.

func (*License) GetTerraformResourceType

func (mg *License) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this License

func (*License) GetTerraformSchemaVersion

func (tr *License) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*License) GetWriteConnectionSecretToReference

func (mg *License) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this License.

func (*License) LateInitialize

func (tr *License) LateInitialize(attrs []byte) (bool, error)

LateInitialize this License using its observed tfState. returns True if there are any spec changes for the resource.

func (*License) SetConditions

func (mg *License) SetConditions(c ...xpv1.Condition)

SetConditions of this License.

func (*License) SetDeletionPolicy

func (mg *License) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this License.

func (*License) SetObservation

func (tr *License) SetObservation(obs map[string]any) error

SetObservation for this License

func (*License) SetParameters

func (tr *License) SetParameters(params map[string]any) error

SetParameters for this License

func (*License) SetProviderConfigReference

func (mg *License) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this License.

func (*License) SetProviderReference

func (mg *License) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this License. Deprecated: Use SetProviderConfigReference.

func (*License) SetPublishConnectionDetailsTo

func (mg *License) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this License.

func (*License) SetWriteConnectionSecretToReference

func (mg *License) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this License.

type LicenseList

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

LicenseList contains a list of Licenses

func (*LicenseList) DeepCopy

func (in *LicenseList) DeepCopy() *LicenseList

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

func (*LicenseList) DeepCopyInto

func (in *LicenseList) DeepCopyInto(out *LicenseList)

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

func (*LicenseList) DeepCopyObject

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

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

func (*LicenseList) GetItems

func (l *LicenseList) GetItems() []resource.Managed

GetItems of this LicenseList.

type LicenseObservation

type LicenseObservation struct {

	// The product edition of the license key.
	EditionKey *string `json:"editionKey,omitempty" tf:"edition_key,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The display name for the license.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Total number of units (example: CPUs) contained in the license.
	Total *float64 `json:"total,omitempty" tf:"total,omitempty"`

	// The number of units (example: CPUs) assigned to this license.
	Used *float64 `json:"used,omitempty" tf:"used,omitempty"`
}

func (*LicenseObservation) DeepCopy

func (in *LicenseObservation) DeepCopy() *LicenseObservation

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

func (*LicenseObservation) DeepCopyInto

func (in *LicenseObservation) DeepCopyInto(out *LicenseObservation)

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

type LicenseParameters

type LicenseParameters struct {

	// A map of key/value pairs to be attached as labels (tags) to the license key.
	// +kubebuilder:validation:Optional
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// The license key to add.
	// +kubebuilder:validation:Required
	LicenseKey *string `json:"licenseKey" tf:"license_key,omitempty"`
}

func (*LicenseParameters) DeepCopy

func (in *LicenseParameters) DeepCopy() *LicenseParameters

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

func (*LicenseParameters) DeepCopyInto

func (in *LicenseParameters) DeepCopyInto(out *LicenseParameters)

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

type LicenseSpec

type LicenseSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     LicenseParameters `json:"forProvider"`
}

LicenseSpec defines the desired state of License

func (*LicenseSpec) DeepCopy

func (in *LicenseSpec) DeepCopy() *LicenseSpec

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

func (*LicenseSpec) DeepCopyInto

func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec)

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

type LicenseStatus

type LicenseStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        LicenseObservation `json:"atProvider,omitempty"`
}

LicenseStatus defines the observed state of License.

func (*LicenseStatus) DeepCopy

func (in *LicenseStatus) DeepCopy() *LicenseStatus

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

func (*LicenseStatus) DeepCopyInto

func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus)

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