v1beta1

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=sms.flexibleengine.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "sms.flexibleengine.upbound.io"
	CRDVersion = "v1beta1"
)

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 (
	ServerTemplate_Kind             = "ServerTemplate"
	ServerTemplate_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ServerTemplate_Kind}.String()
	ServerTemplate_KindAPIVersion   = ServerTemplate_Kind + "." + CRDGroupVersion.String()
	ServerTemplate_GroupVersionKind = CRDGroupVersion.WithKind(ServerTemplate_Kind)
)

Repository type metadata.

View Source
var (
	Task_Kind             = "Task"
	Task_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Task_Kind}.String()
	Task_KindAPIVersion   = Task_Kind + "." + CRDGroupVersion.String()
	Task_GroupVersionKind = CRDGroupVersion.WithKind(Task_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type PhysicalVolumesObservation

type PhysicalVolumesObservation struct {
}

func (*PhysicalVolumesObservation) DeepCopy

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

func (*PhysicalVolumesObservation) DeepCopyInto

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

type PhysicalVolumesParameters

type PhysicalVolumesParameters struct {

	// Specifies the disk type. The value can be NORMAL and BOOT.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	DeviceType *string `json:"deviceType" tf:"device_type,omitempty"`

	// Specifies the file system type, e.g. "ext4".
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	FileSystem *string `json:"fileSystem" tf:"file_system,omitempty"`

	// Specifies the serial number of the volume.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	Index *float64 `json:"index" tf:"index,omitempty"`

	// Specifies the mount point, e.g. "/".
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	MountPoint *string `json:"mountPoint" tf:"mount_point,omitempty"`

	// Specifies the disk name, e.g. "/dev/sda".
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Specifies the volume size in MB. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	Size *float64 `json:"size" tf:"size,omitempty"`

	// Specifies the GUID of the volume.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"`

	// Specifies the used space in MB. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	UsedSize *float64 `json:"usedSize,omitempty" tf:"used_size,omitempty"`
}

func (*PhysicalVolumesParameters) DeepCopy

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

func (*PhysicalVolumesParameters) DeepCopyInto

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

type ServerTemplate

type ServerTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ServerTemplateSpec   `json:"spec"`
	Status            ServerTemplateStatus `json:"status,omitempty"`
}

ServerTemplate is the Schema for the ServerTemplates API. +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,flexibleengine}

func (*ServerTemplate) DeepCopy

func (in *ServerTemplate) DeepCopy() *ServerTemplate

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

func (*ServerTemplate) DeepCopyInto

func (in *ServerTemplate) DeepCopyInto(out *ServerTemplate)

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

func (*ServerTemplate) DeepCopyObject

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

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

func (*ServerTemplate) GetCondition

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

GetCondition of this ServerTemplate.

func (*ServerTemplate) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ServerTemplate

func (*ServerTemplate) GetDeletionPolicy

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

GetDeletionPolicy of this ServerTemplate.

func (*ServerTemplate) GetID

func (tr *ServerTemplate) GetID() string

GetID returns ID of underlying Terraform resource of this ServerTemplate

func (*ServerTemplate) GetObservation

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

GetObservation of this ServerTemplate

func (*ServerTemplate) GetParameters

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

GetParameters of this ServerTemplate

func (*ServerTemplate) GetProviderConfigReference

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

GetProviderConfigReference of this ServerTemplate.

func (*ServerTemplate) GetProviderReference

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

GetProviderReference of this ServerTemplate. Deprecated: Use GetProviderConfigReference.

func (*ServerTemplate) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ServerTemplate.

func (*ServerTemplate) GetTerraformResourceType

func (mg *ServerTemplate) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ServerTemplate

func (*ServerTemplate) GetTerraformSchemaVersion

func (tr *ServerTemplate) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ServerTemplate) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ServerTemplate.

func (*ServerTemplate) LateInitialize

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

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

func (*ServerTemplate) ResolveReferences

func (mg *ServerTemplate) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this ServerTemplate.

func (*ServerTemplate) SetConditions

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

SetConditions of this ServerTemplate.

func (*ServerTemplate) SetDeletionPolicy

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

SetDeletionPolicy of this ServerTemplate.

func (*ServerTemplate) SetObservation

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

SetObservation for this ServerTemplate

func (*ServerTemplate) SetParameters

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

SetParameters for this ServerTemplate

func (*ServerTemplate) SetProviderConfigReference

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

SetProviderConfigReference of this ServerTemplate.

func (*ServerTemplate) SetProviderReference

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

SetProviderReference of this ServerTemplate. Deprecated: Use SetProviderConfigReference.

func (*ServerTemplate) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ServerTemplate.

func (*ServerTemplate) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ServerTemplate.

type ServerTemplateList

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

ServerTemplateList contains a list of ServerTemplates

func (*ServerTemplateList) DeepCopy

func (in *ServerTemplateList) DeepCopy() *ServerTemplateList

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

func (*ServerTemplateList) DeepCopyInto

func (in *ServerTemplateList) DeepCopyInto(out *ServerTemplateList)

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

func (*ServerTemplateList) DeepCopyObject

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

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

func (*ServerTemplateList) GetItems

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

GetItems of this ServerTemplateList.

type ServerTemplateObservation

type ServerTemplateObservation struct {

	// The resource ID in UUID format.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The name of the VPC which the target server belongs to.
	VPCName *string `json:"vpcName,omitempty" tf:"vpc_name,omitempty"`
}

func (*ServerTemplateObservation) DeepCopy

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

func (*ServerTemplateObservation) DeepCopyInto

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

type ServerTemplateParameters

type ServerTemplateParameters struct {

	// Specifies the availability zone where the target server is located.
	// +kubebuilder:validation:Required
	AvailabilityZone *string `json:"availabilityZone" tf:"availability_zone,omitempty"`

	// Specifies the bandwidth size in Mbit/s about the public IP address
	// that will be used for migration.
	// +kubebuilder:validation:Optional
	BandwidthSize *float64 `json:"bandwidthSize,omitempty" tf:"bandwidth_size,omitempty"`

	// Specifies the flavor ID for the target server.
	// +kubebuilder:validation:Optional
	Flavor *string `json:"flavor,omitempty" tf:"flavor,omitempty"`

	// Specifies the server template name.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used.
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// References to SecurityGroup in vpc to populate securityGroupIds.
	// +kubebuilder:validation:Optional
	SecurityGroupIDRefs []v1.Reference `json:"securityGroupIdRefs,omitempty" tf:"-"`

	// Selector for a list of SecurityGroup in vpc to populate securityGroupIds.
	// +kubebuilder:validation:Optional
	SecurityGroupIDSelector *v1.Selector `json:"securityGroupIdSelector,omitempty" tf:"-"`

	// Specifies an array of one or more security group IDs to associate with
	// the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
	// +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/vpc/v1beta1.SecurityGroup
	// +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs
	// +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector
	// +kubebuilder:validation:Optional
	SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`

	// References to VPCSubnet in vpc to populate subnetIds.
	// +kubebuilder:validation:Optional
	SubnetIDRefs []v1.Reference `json:"subnetIdRefs,omitempty" tf:"-"`

	// Selector for a list of VPCSubnet in vpc to populate subnetIds.
	// +kubebuilder:validation:Optional
	SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`

	// Specifies an array of one or more VPC subnet IDs to attach to the target server.
	// If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
	// +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/vpc/v1beta1.VPCSubnet
	// +crossplane:generate:reference:extractor=github.com/FrangipaneTeam/provider-flexibleengine/pkg/tools.ExtractorParamPathfunc(true, "id")
	// +crossplane:generate:reference:refFieldName=SubnetIDRefs
	// +crossplane:generate:reference:selectorFieldName=SubnetIDSelector
	// +kubebuilder:validation:Optional
	SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`

	// Specifies the name of the target server. Defaults to the template name.
	// +kubebuilder:validation:Optional
	TargetServerName *string `json:"targetServerName,omitempty" tf:"target_server_name,omitempty"`

	// Specifies the ID of the VPC which the target server belongs to.
	// If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
	// +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/vpc/v1beta1.VPC
	// +kubebuilder:validation:Optional
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`

	// Reference to a VPC in vpc to populate vpcId.
	// +kubebuilder:validation:Optional
	VPCIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"`

	// Selector for a VPC in vpc to populate vpcId.
	// +kubebuilder:validation:Optional
	VPCIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"`

	// Specifies the disk type of the target server. Available values are: SAS, SSD,
	// GPSSD and ESSD, defaults to SAS.
	// +kubebuilder:validation:Optional
	VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}

func (*ServerTemplateParameters) DeepCopy

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

func (*ServerTemplateParameters) DeepCopyInto

func (in *ServerTemplateParameters) DeepCopyInto(out *ServerTemplateParameters)

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

type ServerTemplateSpec

type ServerTemplateSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ServerTemplateParameters `json:"forProvider"`
}

ServerTemplateSpec defines the desired state of ServerTemplate

func (*ServerTemplateSpec) DeepCopy

func (in *ServerTemplateSpec) DeepCopy() *ServerTemplateSpec

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

func (*ServerTemplateSpec) DeepCopyInto

func (in *ServerTemplateSpec) DeepCopyInto(out *ServerTemplateSpec)

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

type ServerTemplateStatus

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

ServerTemplateStatus defines the observed state of ServerTemplate.

func (*ServerTemplateStatus) DeepCopy

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

func (*ServerTemplateStatus) DeepCopyInto

func (in *ServerTemplateStatus) DeepCopyInto(out *ServerTemplateStatus)

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

type TargetServerDisksObservation

type TargetServerDisksObservation struct {
}

func (*TargetServerDisksObservation) DeepCopy

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

func (*TargetServerDisksObservation) DeepCopyInto

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

type TargetServerDisksParameters

type TargetServerDisksParameters struct {

	// Specifies the disk type. The value can be NORMAL and BOOT.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	DeviceType *string `json:"deviceType" tf:"device_type,omitempty"`

	// Specifies the disk index, e.g. "0".
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	DiskID *string `json:"diskId,omitempty" tf:"disk_id,omitempty"`

	// Specifies the disk name, e.g. "/dev/sda".
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Specifies an array of physical volume informations.
	// The object is documented below. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	PhysicalVolumes []PhysicalVolumesParameters `json:"physicalVolumes,omitempty" tf:"physical_volumes,omitempty"`

	// Specifies the volume size in MB. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	Size *float64 `json:"size" tf:"size,omitempty"`

	// Specifies the used space in MB. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	UsedSize *float64 `json:"usedSize,omitempty" tf:"used_size,omitempty"`
}

func (*TargetServerDisksParameters) DeepCopy

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

func (*TargetServerDisksParameters) DeepCopyInto

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

type Task

type Task struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TaskSpec   `json:"spec"`
	Status            TaskStatus `json:"status,omitempty"`
}

Task is the Schema for the Tasks API. +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,flexibleengine}

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

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

func (*Task) DeepCopyObject

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

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

func (*Task) GetCondition

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

GetCondition of this Task.

func (*Task) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Task

func (*Task) GetDeletionPolicy

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

GetDeletionPolicy of this Task.

func (*Task) GetID

func (tr *Task) GetID() string

GetID returns ID of underlying Terraform resource of this Task

func (*Task) GetObservation

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

GetObservation of this Task

func (*Task) GetParameters

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

GetParameters of this Task

func (*Task) GetProviderConfigReference

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

GetProviderConfigReference of this Task.

func (*Task) GetProviderReference

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

GetProviderReference of this Task. Deprecated: Use GetProviderConfigReference.

func (*Task) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Task.

func (*Task) GetTerraformResourceType

func (mg *Task) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Task

func (*Task) GetTerraformSchemaVersion

func (tr *Task) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Task) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Task.

func (*Task) LateInitialize

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

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

func (*Task) ResolveReferences

func (mg *Task) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Task.

func (*Task) SetConditions

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

SetConditions of this Task.

func (*Task) SetDeletionPolicy

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

SetDeletionPolicy of this Task.

func (*Task) SetObservation

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

SetObservation for this Task

func (*Task) SetParameters

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

SetParameters for this Task

func (*Task) SetProviderConfigReference

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

SetProviderConfigReference of this Task.

func (*Task) SetProviderReference

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

SetProviderReference of this Task. Deprecated: Use SetProviderConfigReference.

func (*Task) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Task.

func (*Task) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Task.

type TaskList

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

TaskList contains a list of Tasks

func (*TaskList) DeepCopy

func (in *TaskList) DeepCopy() *TaskList

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

func (*TaskList) DeepCopyInto

func (in *TaskList) DeepCopyInto(out *TaskList)

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

func (*TaskList) DeepCopyObject

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

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

func (*TaskList) GetItems

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

GetItems of this TaskList.

type TaskObservation

type TaskObservation struct {

	// The enterprise project id of the target server.
	EnterpriseProjectID *string `json:"enterpriseProjectId,omitempty" tf:"enterprise_project_id,omitempty"`

	// The resource ID in UUID format.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The migration rate, in MB/s.
	MigrateSpeed *float64 `json:"migrateSpeed,omitempty" tf:"migrate_speed,omitempty"`

	// The status of the migration task.
	State *string `json:"state,omitempty" tf:"state,omitempty"`

	// The name of the target server.
	TargetServerName *string `json:"targetServerName,omitempty" tf:"target_server_name,omitempty"`
}

func (*TaskObservation) DeepCopy

func (in *TaskObservation) DeepCopy() *TaskObservation

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

func (*TaskObservation) DeepCopyInto

func (in *TaskObservation) DeepCopyInto(out *TaskObservation)

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

type TaskParameters

type TaskParameters struct {

	// Specifies the operation after the task is created.
	// The value can be start, stop and restart.
	// +kubebuilder:validation:Optional
	Action *string `json:"action,omitempty" tf:"action,omitempty"`

	// Specifies the IP address of the target server.
	// Use the EIP of the target server if the migration network type is Internet.
	// Use the private IP address of the target server if the migration network type is Direct Connect or VPN.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	MigrationIP *string `json:"migrationIp,omitempty" tf:"migration_ip,omitempty"`

	// Specifies the OS type of the source server. The value can be WINDOWS and LINUX.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	OsType *string `json:"osType" tf:"os_type,omitempty"`

	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Specifies the ID of the source server.
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	SourceServerID *string `json:"sourceServerId" tf:"source_server_id,omitempty"`

	// Specifies whether to start the target server after the migration.
	// The default value is true. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	StartTargetServer *bool `json:"startTargetServer,omitempty" tf:"start_target_server,omitempty"`

	// - Specifies whether to perform a continuous synchronization after the first replication.
	// The default value is false. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	Syncing *bool `json:"syncing,omitempty" tf:"syncing,omitempty"`

	// Specifies the disk configurations of the target server.
	// If omitted, it will be obtained from the source server. The object
	// is documented below. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	TargetServerDisks []TargetServerDisksParameters `json:"targetServerDisks,omitempty" tf:"target_server_disks,omitempty"`

	// Specifies the existing server ID as the target server.
	// This parameter and vm_template_id are alternative. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	TargetServerID *string `json:"targetServerId,omitempty" tf:"target_server_id,omitempty"`

	// Specifies the type of the migration task. Available values are
	// MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
	// Changing this parameter will create a new resource.
	// +kubebuilder:validation:Required
	Type *string `json:"type" tf:"type,omitempty"`

	// Specifies whether to use a public IP address for migration.
	// The default value is true. Changing this parameter will create a new resource.
	// +kubebuilder:validation:Optional
	UsePublicIP *bool `json:"usePublicIp,omitempty" tf:"use_public_ip,omitempty"`

	// Specifies the template used to create the target server automatically.
	// This parameter and target_server_id are alternative. Changing this parameter will create a new resource.
	// +crossplane:generate:reference:type=ServerTemplate
	// +kubebuilder:validation:Optional
	VMTemplateID *string `json:"vmTemplateId,omitempty" tf:"vm_template_id,omitempty"`

	// Reference to a ServerTemplate to populate vmTemplateId.
	// +kubebuilder:validation:Optional
	VMTemplateIDRef *v1.Reference `json:"vmTemplateIdRef,omitempty" tf:"-"`

	// Selector for a ServerTemplate to populate vmTemplateId.
	// +kubebuilder:validation:Optional
	VMTemplateIDSelector *v1.Selector `json:"vmTemplateIdSelector,omitempty" tf:"-"`
}

func (*TaskParameters) DeepCopy

func (in *TaskParameters) DeepCopy() *TaskParameters

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

func (*TaskParameters) DeepCopyInto

func (in *TaskParameters) DeepCopyInto(out *TaskParameters)

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

type TaskSpec

type TaskSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     TaskParameters `json:"forProvider"`
}

TaskSpec defines the desired state of Task

func (*TaskSpec) DeepCopy

func (in *TaskSpec) DeepCopy() *TaskSpec

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

func (*TaskSpec) DeepCopyInto

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

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

type TaskStatus

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

TaskStatus defines the observed state of Task.

func (*TaskStatus) DeepCopy

func (in *TaskStatus) DeepCopy() *TaskStatus

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

func (*TaskStatus) DeepCopyInto

func (in *TaskStatus) DeepCopyInto(out *TaskStatus)

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