v1alpha1

package
v0.0.0-...-7c54378 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=independent.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "independent.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Disk_Kind             = "Disk"
	Disk_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Disk_Kind}.String()
	Disk_KindAPIVersion   = Disk_Kind + "." + CRDGroupVersion.String()
	Disk_GroupVersionKind = CRDGroupVersion.WithKind(Disk_Kind)
)

Repository type metadata.

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
)

Functions

This section is empty.

Types

type Disk

type Disk struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.name)",message="name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.sizeInMb)",message="sizeInMb is a required parameter"
	Spec   DiskSpec   `json:"spec"`
	Status DiskStatus `json:"status,omitempty"`
}

Disk is the Schema for the Disks API. Provides a VMware Cloud Director independent disk resource. This can be used to create and delete independent disks. +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,vcd}

func (*Disk) DeepCopy

func (in *Disk) DeepCopy() *Disk

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

func (*Disk) DeepCopyInto

func (in *Disk) DeepCopyInto(out *Disk)

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

func (*Disk) DeepCopyObject

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

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

func (*Disk) GetCondition

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

GetCondition of this Disk.

func (*Disk) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Disk

func (*Disk) GetDeletionPolicy

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

GetDeletionPolicy of this Disk.

func (*Disk) GetID

func (tr *Disk) GetID() string

GetID returns ID of underlying Terraform resource of this Disk

func (*Disk) GetManagementPolicy

func (mg *Disk) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Disk.

func (*Disk) GetObservation

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

GetObservation of this Disk

func (*Disk) GetParameters

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

GetParameters of this Disk

func (*Disk) GetProviderConfigReference

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

GetProviderConfigReference of this Disk.

func (*Disk) GetProviderReference

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

GetProviderReference of this Disk. Deprecated: Use GetProviderConfigReference.

func (*Disk) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Disk.

func (*Disk) GetTerraformResourceType

func (mg *Disk) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Disk

func (*Disk) GetTerraformSchemaVersion

func (tr *Disk) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Disk) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Disk.

func (*Disk) LateInitialize

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

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

func (*Disk) SetConditions

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

SetConditions of this Disk.

func (*Disk) SetDeletionPolicy

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

SetDeletionPolicy of this Disk.

func (*Disk) SetManagementPolicy

func (mg *Disk) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Disk.

func (*Disk) SetObservation

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

SetObservation for this Disk

func (*Disk) SetParameters

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

SetParameters for this Disk

func (*Disk) SetProviderConfigReference

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

SetProviderConfigReference of this Disk.

func (*Disk) SetProviderReference

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

SetProviderReference of this Disk. Deprecated: Use SetProviderConfigReference.

func (*Disk) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Disk.

func (*Disk) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Disk.

type DiskList

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

DiskList contains a list of Disks

func (*DiskList) DeepCopy

func (in *DiskList) DeepCopy() *DiskList

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

func (*DiskList) DeepCopyInto

func (in *DiskList) DeepCopyInto(out *DiskList)

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

func (*DiskList) DeepCopyObject

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

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

func (*DiskList) GetItems

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

GetItems of this DiskList.

type DiskObservation

type DiskObservation struct {

	// (Computed, v3.6+) IDs of VM which are using the disk
	// Set of VM IDs which are using the disk
	AttachedVMIds []*string `json:"attachedVmIds,omitempty" tf:"attached_vm_ids,omitempty"`

	// Disk bus subtype. Values can be: buslogic, lsilogic, lsilogicsas, VirtualSCSI for SCSI, ahci for SATA and (v3.6+) nvmecontroller for NVME
	BusSubType *string `json:"busSubType,omitempty" tf:"bus_sub_type,omitempty"`

	// Disk bus type. Values can be: IDE, SCSI, SATA, (v3.6+) NVME. Note When the disk type is IDE then VM is required to be powered off
	BusType *string `json:"busType,omitempty" tf:"bus_type,omitempty"`

	// (Computed) Data store name. Readable only for system user.
	// Datastore name
	DatastoreName *string `json:"datastoreName,omitempty" tf:"datastore_name,omitempty"`

	// independent disk description
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (Computed, v3.6+ and VCD 10.2+) True if disk is encrypted
	// True if disk is encrypted
	Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`

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

	// (Computed) IOPS request for the created disk
	// IOPS request for the created disk
	Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`

	// (Computed) True if the disk is already attached
	// True if the disk is already attached
	IsAttached *bool `json:"isAttached,omitempty" tf:"is_attached,omitempty"`

	// (Deprecated; v3.6+) Use metadata_entry instead. Key value map of metadata to assign to this independent disk.
	// Key value map of metadata to assign to this disk. Key and value can be any string.
	Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`

	// A set of metadata entries to assign. See Metadata section for details.
	// Metadata entries for the given Disk
	MetadataEntry []MetadataEntryObservation `json:"metadataEntry,omitempty" tf:"metadata_entry,omitempty"`

	// Disk name
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
	// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
	Org *string `json:"org,omitempty" tf:"org,omitempty"`

	// (Computed) The owner name of the disk
	// The owner name of the disk
	OwnerName *string `json:"ownerName,omitempty" tf:"owner_name,omitempty"`

	// This is the sharing type. Values can be: DiskSharing,ControllerSharing, or None
	// This is the sharing type. This attribute can only have values defined one of: `DiskSharing`,`ControllerSharing`, `None`
	SharingType *string `json:"sharingType,omitempty" tf:"sharing_type,omitempty"`

	// Size of disk in MB.
	// size in MB
	SizeInMb *float64 `json:"sizeInMb,omitempty" tf:"size_in_mb,omitempty"`

	// The name of storage profile where disk will be created
	StorageProfile *string `json:"storageProfile,omitempty" tf:"storage_profile,omitempty"`

	// (Computed, v3.6+ and VCD 10.2+) The UUID of this named disk's device backing
	// The UUID of this named disk's device backing
	UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"`

	// The name of VDC to use, optional if defined at provider level
	// The name of VDC to use, optional if defined at provider level
	Vdc *string `json:"vdc,omitempty" tf:"vdc,omitempty"`
}

func (*DiskObservation) DeepCopy

func (in *DiskObservation) DeepCopy() *DiskObservation

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

func (*DiskObservation) DeepCopyInto

func (in *DiskObservation) DeepCopyInto(out *DiskObservation)

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

type DiskParameters

type DiskParameters struct {

	// Disk bus subtype. Values can be: buslogic, lsilogic, lsilogicsas, VirtualSCSI for SCSI, ahci for SATA and (v3.6+) nvmecontroller for NVME
	// +kubebuilder:validation:Optional
	BusSubType *string `json:"busSubType,omitempty" tf:"bus_sub_type,omitempty"`

	// Disk bus type. Values can be: IDE, SCSI, SATA, (v3.6+) NVME. Note When the disk type is IDE then VM is required to be powered off
	// +kubebuilder:validation:Optional
	BusType *string `json:"busType,omitempty" tf:"bus_type,omitempty"`

	// independent disk description
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (Deprecated; v3.6+) Use metadata_entry instead. Key value map of metadata to assign to this independent disk.
	// Key value map of metadata to assign to this disk. Key and value can be any string.
	// +kubebuilder:validation:Optional
	Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`

	// A set of metadata entries to assign. See Metadata section for details.
	// Metadata entries for the given Disk
	// +kubebuilder:validation:Optional
	MetadataEntry []MetadataEntryParameters `json:"metadataEntry,omitempty" tf:"metadata_entry,omitempty"`

	// Disk name
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
	// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
	// +kubebuilder:validation:Optional
	Org *string `json:"org,omitempty" tf:"org,omitempty"`

	// This is the sharing type. Values can be: DiskSharing,ControllerSharing, or None
	// This is the sharing type. This attribute can only have values defined one of: `DiskSharing`,`ControllerSharing`, `None`
	// +kubebuilder:validation:Optional
	SharingType *string `json:"sharingType,omitempty" tf:"sharing_type,omitempty"`

	// Size of disk in MB.
	// size in MB
	// +kubebuilder:validation:Optional
	SizeInMb *float64 `json:"sizeInMb,omitempty" tf:"size_in_mb,omitempty"`

	// The name of storage profile where disk will be created
	// +kubebuilder:validation:Optional
	StorageProfile *string `json:"storageProfile,omitempty" tf:"storage_profile,omitempty"`

	// The name of VDC to use, optional if defined at provider level
	// The name of VDC to use, optional if defined at provider level
	// +kubebuilder:validation:Optional
	Vdc *string `json:"vdc,omitempty" tf:"vdc,omitempty"`
}

func (*DiskParameters) DeepCopy

func (in *DiskParameters) DeepCopy() *DiskParameters

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

func (*DiskParameters) DeepCopyInto

func (in *DiskParameters) DeepCopyInto(out *DiskParameters)

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

type DiskSpec

type DiskSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     DiskParameters `json:"forProvider"`
}

DiskSpec defines the desired state of Disk

func (*DiskSpec) DeepCopy

func (in *DiskSpec) DeepCopy() *DiskSpec

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

func (*DiskSpec) DeepCopyInto

func (in *DiskSpec) DeepCopyInto(out *DiskSpec)

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

type DiskStatus

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

DiskStatus defines the observed state of Disk.

func (*DiskStatus) DeepCopy

func (in *DiskStatus) DeepCopy() *DiskStatus

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

func (*DiskStatus) DeepCopyInto

func (in *DiskStatus) DeepCopyInto(out *DiskStatus)

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

type MetadataEntryObservation

type MetadataEntryObservation struct {

	// Domain for this metadata entry. true if it belongs to SYSTEM, false if it belongs to GENERAL.
	// Domain for this metadata entry. true if it belongs to SYSTEM, false if it belongs to GENERAL
	IsSystem *bool `json:"isSystem,omitempty" tf:"is_system,omitempty"`

	// Key of this metadata entry.
	// Key of this metadata entry. Required if the metadata entry is not empty
	Key *string `json:"key,omitempty" tf:"key,omitempty"`

	// Type of this metadata entry. One of: MetadataStringValue, MetadataNumberValue, MetadataDateTimeValue, MetadataBooleanValue.
	// Type of this metadata entry. One of: 'MetadataStringValue', 'MetadataNumberValue', 'MetadataBooleanValue', 'MetadataDateTimeValue'
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// User access level for this metadata entry. One of: PRIVATE (hidden), READONLY (read only), READWRITE (read/write).
	// User access level for this metadata entry. One of: 'READWRITE', 'READONLY', 'PRIVATE'
	UserAccess *string `json:"userAccess,omitempty" tf:"user_access,omitempty"`

	// Value of this metadata entry.
	// Value of this metadata entry. Required if the metadata entry is not empty
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*MetadataEntryObservation) DeepCopy

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

func (*MetadataEntryObservation) DeepCopyInto

func (in *MetadataEntryObservation) DeepCopyInto(out *MetadataEntryObservation)

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

type MetadataEntryParameters

type MetadataEntryParameters struct {

	// Domain for this metadata entry. true if it belongs to SYSTEM, false if it belongs to GENERAL.
	// Domain for this metadata entry. true if it belongs to SYSTEM, false if it belongs to GENERAL
	// +kubebuilder:validation:Optional
	IsSystem *bool `json:"isSystem,omitempty" tf:"is_system,omitempty"`

	// Key of this metadata entry.
	// Key of this metadata entry. Required if the metadata entry is not empty
	// +kubebuilder:validation:Optional
	Key *string `json:"key,omitempty" tf:"key,omitempty"`

	// Type of this metadata entry. One of: MetadataStringValue, MetadataNumberValue, MetadataDateTimeValue, MetadataBooleanValue.
	// Type of this metadata entry. One of: 'MetadataStringValue', 'MetadataNumberValue', 'MetadataBooleanValue', 'MetadataDateTimeValue'
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// User access level for this metadata entry. One of: PRIVATE (hidden), READONLY (read only), READWRITE (read/write).
	// User access level for this metadata entry. One of: 'READWRITE', 'READONLY', 'PRIVATE'
	// +kubebuilder:validation:Optional
	UserAccess *string `json:"userAccess,omitempty" tf:"user_access,omitempty"`

	// Value of this metadata entry.
	// Value of this metadata entry. Required if the metadata entry is not empty
	// +kubebuilder:validation:Optional
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*MetadataEntryParameters) DeepCopy

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

func (*MetadataEntryParameters) DeepCopyInto

func (in *MetadataEntryParameters) DeepCopyInto(out *MetadataEntryParameters)

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