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=virtualmachinesnapshot.vsphere.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "virtualmachinesnapshot.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 (
	MachineSnapshot_Kind             = "MachineSnapshot"
	MachineSnapshot_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: MachineSnapshot_Kind}.String()
	MachineSnapshot_KindAPIVersion   = MachineSnapshot_Kind + "." + CRDGroupVersion.String()
	MachineSnapshot_GroupVersionKind = CRDGroupVersion.WithKind(MachineSnapshot_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type MachineSnapshot

type MachineSnapshot struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MachineSnapshotSpec   `json:"spec"`
	Status            MachineSnapshotStatus `json:"status,omitempty"`
}

MachineSnapshot is the Schema for the MachineSnapshots API. Provides a VMware vSphere virtual machine snapshot resource. This can be used to create and delete virtual machine snapshots. +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 (*MachineSnapshot) DeepCopy

func (in *MachineSnapshot) DeepCopy() *MachineSnapshot

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

func (*MachineSnapshot) DeepCopyInto

func (in *MachineSnapshot) DeepCopyInto(out *MachineSnapshot)

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

func (*MachineSnapshot) DeepCopyObject

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

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

func (*MachineSnapshot) GetCondition

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

GetCondition of this MachineSnapshot.

func (*MachineSnapshot) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this MachineSnapshot

func (*MachineSnapshot) GetDeletionPolicy

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

GetDeletionPolicy of this MachineSnapshot.

func (*MachineSnapshot) GetID

func (tr *MachineSnapshot) GetID() string

GetID returns ID of underlying Terraform resource of this MachineSnapshot

func (*MachineSnapshot) GetObservation

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

GetObservation of this MachineSnapshot

func (*MachineSnapshot) GetParameters

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

GetParameters of this MachineSnapshot

func (*MachineSnapshot) GetProviderConfigReference

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

GetProviderConfigReference of this MachineSnapshot.

func (*MachineSnapshot) GetProviderReference

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

GetProviderReference of this MachineSnapshot. Deprecated: Use GetProviderConfigReference.

func (*MachineSnapshot) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this MachineSnapshot.

func (*MachineSnapshot) GetTerraformResourceType

func (mg *MachineSnapshot) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this MachineSnapshot

func (*MachineSnapshot) GetTerraformSchemaVersion

func (tr *MachineSnapshot) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*MachineSnapshot) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this MachineSnapshot.

func (*MachineSnapshot) LateInitialize

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

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

func (*MachineSnapshot) SetConditions

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

SetConditions of this MachineSnapshot.

func (*MachineSnapshot) SetDeletionPolicy

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

SetDeletionPolicy of this MachineSnapshot.

func (*MachineSnapshot) SetObservation

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

SetObservation for this MachineSnapshot

func (*MachineSnapshot) SetParameters

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

SetParameters for this MachineSnapshot

func (*MachineSnapshot) SetProviderConfigReference

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

SetProviderConfigReference of this MachineSnapshot.

func (*MachineSnapshot) SetProviderReference

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

SetProviderReference of this MachineSnapshot. Deprecated: Use SetProviderConfigReference.

func (*MachineSnapshot) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this MachineSnapshot.

func (*MachineSnapshot) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this MachineSnapshot.

type MachineSnapshotList

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

MachineSnapshotList contains a list of MachineSnapshots

func (*MachineSnapshotList) DeepCopy

func (in *MachineSnapshotList) DeepCopy() *MachineSnapshotList

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

func (*MachineSnapshotList) DeepCopyInto

func (in *MachineSnapshotList) DeepCopyInto(out *MachineSnapshotList)

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

func (*MachineSnapshotList) DeepCopyObject

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

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

func (*MachineSnapshotList) GetItems

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

GetItems of this MachineSnapshotList.

type MachineSnapshotObservation

type MachineSnapshotObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*MachineSnapshotObservation) DeepCopy

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

func (*MachineSnapshotObservation) DeepCopyInto

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

type MachineSnapshotParameters

type MachineSnapshotParameters struct {

	// If set to true, the delta disks involved in this
	// snapshot will be consolidated into the parent when this resource is
	// destroyed.
	// +kubebuilder:validation:Optional
	Consolidate *bool `json:"consolidate,omitempty" tf:"consolidate,omitempty"`

	// A description for the snapshot.
	// +kubebuilder:validation:Required
	Description *string `json:"description" tf:"description,omitempty"`

	// If set to true, a dump of the internal state of the
	// virtual machine is included in the snapshot.
	// +kubebuilder:validation:Required
	Memory *bool `json:"memory" tf:"memory,omitempty"`

	// If set to true, and the virtual machine is powered
	// on when the snapshot is taken, VMware Tools is used to quiesce the file
	// system in the virtual machine.
	// +kubebuilder:validation:Required
	Quiesce *bool `json:"quiesce" tf:"quiesce,omitempty"`

	// If set to true, the entire snapshot subtree
	// is removed when this resource is destroyed.
	// +kubebuilder:validation:Optional
	RemoveChildren *bool `json:"removeChildren,omitempty" tf:"remove_children,omitempty"`

	// The name of the snapshot.
	// +kubebuilder:validation:Required
	SnapshotName *string `json:"snapshotName" tf:"snapshot_name,omitempty"`

	// The virtual machine UUID.
	// +kubebuilder:validation:Required
	VirtualMachineUUID *string `json:"virtualMachineUuid" tf:"virtual_machine_uuid,omitempty"`
}

func (*MachineSnapshotParameters) DeepCopy

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

func (*MachineSnapshotParameters) DeepCopyInto

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

type MachineSnapshotSpec

type MachineSnapshotSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     MachineSnapshotParameters `json:"forProvider"`
}

MachineSnapshotSpec defines the desired state of MachineSnapshot

func (*MachineSnapshotSpec) DeepCopy

func (in *MachineSnapshotSpec) DeepCopy() *MachineSnapshotSpec

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

func (*MachineSnapshotSpec) DeepCopyInto

func (in *MachineSnapshotSpec) DeepCopyInto(out *MachineSnapshotSpec)

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

type MachineSnapshotStatus

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

MachineSnapshotStatus defines the observed state of MachineSnapshot.

func (*MachineSnapshotStatus) DeepCopy

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

func (*MachineSnapshotStatus) DeepCopyInto

func (in *MachineSnapshotStatus) DeepCopyInto(out *MachineSnapshotStatus)

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