v1alpha1

package
v0.7.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "mongodb.tencentcloud.crossplane.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 (
	Instance_Kind             = "Instance"
	Instance_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Instance_Kind}.String()
	Instance_KindAPIVersion   = Instance_Kind + "." + CRDGroupVersion.String()
	Instance_GroupVersionKind = CRDGroupVersion.WithKind(Instance_Kind)
)

Repository type metadata.

View Source
var (
	ShardingInstance_Kind             = "ShardingInstance"
	ShardingInstance_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ShardingInstance_Kind}.String()
	ShardingInstance_KindAPIVersion   = ShardingInstance_Kind + "." + CRDGroupVersion.String()
	ShardingInstance_GroupVersionKind = CRDGroupVersion.WithKind(ShardingInstance_Kind)
)

Repository type metadata.

View Source
var (
	StandbyInstance_Kind             = "StandbyInstance"
	StandbyInstance_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: StandbyInstance_Kind}.String()
	StandbyInstance_KindAPIVersion   = StandbyInstance_Kind + "." + CRDGroupVersion.String()
	StandbyInstance_GroupVersionKind = CRDGroupVersion.WithKind(StandbyInstance_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              InstanceSpec   `json:"spec"`
	Status            InstanceStatus `json:"status,omitempty"`
}

Instance is the Schema for the Instances 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,tencentcloudjet}

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

func (*Instance) DeepCopyObject

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

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

func (*Instance) GetCondition

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

GetCondition of this Instance.

func (*Instance) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Instance

func (*Instance) GetDeletionPolicy

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

GetDeletionPolicy of this Instance.

func (*Instance) GetID

func (tr *Instance) GetID() string

GetID returns ID of underlying Terraform resource of this Instance

func (*Instance) GetObservation

func (tr *Instance) GetObservation() (map[string]interface{}, error)

GetObservation of this Instance

func (*Instance) GetParameters

func (tr *Instance) GetParameters() (map[string]interface{}, error)

GetParameters of this Instance

func (*Instance) GetProviderConfigReference

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

GetProviderConfigReference of this Instance.

func (*Instance) GetProviderReference

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

GetProviderReference of this Instance. Deprecated: Use GetProviderConfigReference.

func (*Instance) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Instance.

func (*Instance) GetTerraformResourceType

func (mg *Instance) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Instance

func (*Instance) GetTerraformSchemaVersion

func (tr *Instance) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Instance) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Instance.

func (*Instance) LateInitialize

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

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

func (*Instance) ResolveReferences

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

ResolveReferences of this Instance.

func (*Instance) SetConditions

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

SetConditions of this Instance.

func (*Instance) SetDeletionPolicy

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

SetDeletionPolicy of this Instance.

func (*Instance) SetObservation

func (tr *Instance) SetObservation(obs map[string]interface{}) error

SetObservation for this Instance

func (*Instance) SetParameters

func (tr *Instance) SetParameters(params map[string]interface{}) error

SetParameters for this Instance

func (*Instance) SetProviderConfigReference

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

SetProviderConfigReference of this Instance.

func (*Instance) SetProviderReference

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

SetProviderReference of this Instance. Deprecated: Use SetProviderConfigReference.

func (*Instance) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Instance.

func (*Instance) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Instance.

type InstanceList

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

InstanceList contains a list of Instances

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

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

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

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

func (*InstanceList) DeepCopyObject

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

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

func (*InstanceList) GetItems

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

GetItems of this InstanceList.

type InstanceObservation

type InstanceObservation struct {
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

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

	StandbyInstanceList []StandbyInstanceListObservation `json:"standbyInstanceList,omitempty" tf:"standby_instance_list,omitempty"`

	Status *float64 `json:"status,omitempty" tf:"status,omitempty"`

	Vip *string `json:"vip,omitempty" tf:"vip,omitempty"`

	Vport *float64 `json:"vport,omitempty" tf:"vport,omitempty"`
}

func (*InstanceObservation) DeepCopy

func (in *InstanceObservation) DeepCopy() *InstanceObservation

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

func (*InstanceObservation) DeepCopyInto

func (in *InstanceObservation) DeepCopyInto(out *InstanceObservation)

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

type InstanceParameters

type InstanceParameters struct {

	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	// +kubebuilder:validation:Optional
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// The available zone of the Mongodb.
	// +kubebuilder:validation:Required
	AvailableZone *string `json:"availableZone" tf:"available_zone,omitempty"`

	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	// +kubebuilder:validation:Optional
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"`

	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	// +kubebuilder:validation:Required
	EngineVersion *string `json:"engineVersion" tf:"engine_version,omitempty"`

	// Name of the Mongodb instance.
	// +kubebuilder:validation:Required
	InstanceName *string `json:"instanceName" tf:"instance_name,omitempty"`

	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	// +kubebuilder:validation:Required
	MachineType *string `json:"machineType" tf:"machine_type,omitempty"`

	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	// +kubebuilder:validation:Required
	Memory *float64 `json:"memory" tf:"memory,omitempty"`

	// Password of this Mongodb account.
	// +kubebuilder:validation:Optional
	PasswordSecretRef *v1.SecretKeySelector `json:"passwordSecretRef,omitempty" tf:"-"`

	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to `PREPAID`.
	// +kubebuilder:validation:Optional
	PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"`

	// ID of the project which the instance belongs.
	// +kubebuilder:validation:Optional
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// ID of the security group. NOTE: for instance which `engine_version` is `MONGO_40_WT`, `security_groups` is not supported.
	// +kubebuilder:validation:Optional
	SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`

	// ID of the subnet within this VPC. The value is required if `vpc_id` is set.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.Subnet
	// +kubebuilder:validation:Optional
	SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`

	// +kubebuilder:validation:Optional
	SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`

	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	// +kubebuilder:validation:Optional
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// ID of the VPC.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.VPC
	// +kubebuilder:validation:Optional
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`

	// +kubebuilder:validation:Optional
	VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"`

	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	// +kubebuilder:validation:Required
	Volume *float64 `json:"volume" tf:"volume,omitempty"`
}

func (*InstanceParameters) DeepCopy

func (in *InstanceParameters) DeepCopy() *InstanceParameters

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

func (*InstanceParameters) DeepCopyInto

func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters)

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

type InstanceSpec

type InstanceSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     InstanceParameters `json:"forProvider"`
}

InstanceSpec defines the desired state of Instance

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

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

type InstanceStatus

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

InstanceStatus defines the observed state of Instance.

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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

type ShardingInstance

type ShardingInstance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ShardingInstanceSpec   `json:"spec"`
	Status            ShardingInstanceStatus `json:"status,omitempty"`
}

ShardingInstance is the Schema for the ShardingInstances 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,tencentcloudjet}

func (*ShardingInstance) DeepCopy

func (in *ShardingInstance) DeepCopy() *ShardingInstance

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

func (*ShardingInstance) DeepCopyInto

func (in *ShardingInstance) DeepCopyInto(out *ShardingInstance)

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

func (*ShardingInstance) DeepCopyObject

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

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

func (*ShardingInstance) GetCondition

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

GetCondition of this ShardingInstance.

func (*ShardingInstance) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ShardingInstance

func (*ShardingInstance) GetDeletionPolicy

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

GetDeletionPolicy of this ShardingInstance.

func (*ShardingInstance) GetID

func (tr *ShardingInstance) GetID() string

GetID returns ID of underlying Terraform resource of this ShardingInstance

func (*ShardingInstance) GetObservation

func (tr *ShardingInstance) GetObservation() (map[string]interface{}, error)

GetObservation of this ShardingInstance

func (*ShardingInstance) GetParameters

func (tr *ShardingInstance) GetParameters() (map[string]interface{}, error)

GetParameters of this ShardingInstance

func (*ShardingInstance) GetProviderConfigReference

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

GetProviderConfigReference of this ShardingInstance.

func (*ShardingInstance) GetProviderReference

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

GetProviderReference of this ShardingInstance. Deprecated: Use GetProviderConfigReference.

func (*ShardingInstance) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ShardingInstance.

func (*ShardingInstance) GetTerraformResourceType

func (mg *ShardingInstance) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ShardingInstance

func (*ShardingInstance) GetTerraformSchemaVersion

func (tr *ShardingInstance) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ShardingInstance) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ShardingInstance.

func (*ShardingInstance) LateInitialize

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

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

func (*ShardingInstance) ResolveReferences

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

ResolveReferences of this ShardingInstance.

func (*ShardingInstance) SetConditions

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

SetConditions of this ShardingInstance.

func (*ShardingInstance) SetDeletionPolicy

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

SetDeletionPolicy of this ShardingInstance.

func (*ShardingInstance) SetObservation

func (tr *ShardingInstance) SetObservation(obs map[string]interface{}) error

SetObservation for this ShardingInstance

func (*ShardingInstance) SetParameters

func (tr *ShardingInstance) SetParameters(params map[string]interface{}) error

SetParameters for this ShardingInstance

func (*ShardingInstance) SetProviderConfigReference

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

SetProviderConfigReference of this ShardingInstance.

func (*ShardingInstance) SetProviderReference

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

SetProviderReference of this ShardingInstance. Deprecated: Use SetProviderConfigReference.

func (*ShardingInstance) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ShardingInstance.

func (*ShardingInstance) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ShardingInstance.

type ShardingInstanceList

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

ShardingInstanceList contains a list of ShardingInstances

func (*ShardingInstanceList) DeepCopy

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

func (*ShardingInstanceList) DeepCopyInto

func (in *ShardingInstanceList) DeepCopyInto(out *ShardingInstanceList)

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

func (*ShardingInstanceList) DeepCopyObject

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

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

func (*ShardingInstanceList) GetItems

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

GetItems of this ShardingInstanceList.

type ShardingInstanceObservation

type ShardingInstanceObservation struct {
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

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

	Status *float64 `json:"status,omitempty" tf:"status,omitempty"`

	Vip *string `json:"vip,omitempty" tf:"vip,omitempty"`

	Vport *float64 `json:"vport,omitempty" tf:"vport,omitempty"`
}

func (*ShardingInstanceObservation) DeepCopy

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

func (*ShardingInstanceObservation) DeepCopyInto

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

type ShardingInstanceParameters

type ShardingInstanceParameters struct {

	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	// +kubebuilder:validation:Optional
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// The available zone of the Mongodb.
	// +kubebuilder:validation:Required
	AvailableZone *string `json:"availableZone" tf:"available_zone,omitempty"`

	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	// +kubebuilder:validation:Optional
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"`

	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	// +kubebuilder:validation:Required
	EngineVersion *string `json:"engineVersion" tf:"engine_version,omitempty"`

	// Name of the Mongodb instance.
	// +kubebuilder:validation:Required
	InstanceName *string `json:"instanceName" tf:"instance_name,omitempty"`

	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	// +kubebuilder:validation:Required
	MachineType *string `json:"machineType" tf:"machine_type,omitempty"`

	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	// +kubebuilder:validation:Required
	Memory *float64 `json:"memory" tf:"memory,omitempty"`

	// Number of nodes per shard, at least 3(one master and two slaves).
	// +kubebuilder:validation:Required
	NodesPerShard *float64 `json:"nodesPerShard" tf:"nodes_per_shard,omitempty"`

	// Password of this Mongodb account.
	// +kubebuilder:validation:Optional
	PasswordSecretRef *v1.SecretKeySelector `json:"passwordSecretRef,omitempty" tf:"-"`

	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to `PREPAID`.
	// +kubebuilder:validation:Optional
	PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"`

	// ID of the project which the instance belongs.
	// +kubebuilder:validation:Optional
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// ID of the security group. NOTE: for instance which `engine_version` is `MONGO_40_WT`, `security_groups` is not supported.
	// +kubebuilder:validation:Optional
	SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`

	// Number of sharding.
	// +kubebuilder:validation:Required
	ShardQuantity *float64 `json:"shardQuantity" tf:"shard_quantity,omitempty"`

	// ID of the subnet within this VPC. The value is required if `vpc_id` is set.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.Subnet
	// +kubebuilder:validation:Optional
	SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`

	// +kubebuilder:validation:Optional
	SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`

	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	// +kubebuilder:validation:Optional
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// ID of the VPC.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.VPC
	// +kubebuilder:validation:Optional
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`

	// +kubebuilder:validation:Optional
	VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"`

	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	// +kubebuilder:validation:Required
	Volume *float64 `json:"volume" tf:"volume,omitempty"`
}

func (*ShardingInstanceParameters) DeepCopy

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

func (*ShardingInstanceParameters) DeepCopyInto

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

type ShardingInstanceSpec

type ShardingInstanceSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ShardingInstanceParameters `json:"forProvider"`
}

ShardingInstanceSpec defines the desired state of ShardingInstance

func (*ShardingInstanceSpec) DeepCopy

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

func (*ShardingInstanceSpec) DeepCopyInto

func (in *ShardingInstanceSpec) DeepCopyInto(out *ShardingInstanceSpec)

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

type ShardingInstanceStatus

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

ShardingInstanceStatus defines the observed state of ShardingInstance.

func (*ShardingInstanceStatus) DeepCopy

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

func (*ShardingInstanceStatus) DeepCopyInto

func (in *ShardingInstanceStatus) DeepCopyInto(out *ShardingInstanceStatus)

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

type StandbyInstance

type StandbyInstance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StandbyInstanceSpec   `json:"spec"`
	Status            StandbyInstanceStatus `json:"status,omitempty"`
}

StandbyInstance is the Schema for the StandbyInstances 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,tencentcloudjet}

func (*StandbyInstance) DeepCopy

func (in *StandbyInstance) DeepCopy() *StandbyInstance

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

func (*StandbyInstance) DeepCopyInto

func (in *StandbyInstance) DeepCopyInto(out *StandbyInstance)

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

func (*StandbyInstance) DeepCopyObject

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

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

func (*StandbyInstance) GetCondition

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

GetCondition of this StandbyInstance.

func (*StandbyInstance) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this StandbyInstance

func (*StandbyInstance) GetDeletionPolicy

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

GetDeletionPolicy of this StandbyInstance.

func (*StandbyInstance) GetID

func (tr *StandbyInstance) GetID() string

GetID returns ID of underlying Terraform resource of this StandbyInstance

func (*StandbyInstance) GetObservation

func (tr *StandbyInstance) GetObservation() (map[string]interface{}, error)

GetObservation of this StandbyInstance

func (*StandbyInstance) GetParameters

func (tr *StandbyInstance) GetParameters() (map[string]interface{}, error)

GetParameters of this StandbyInstance

func (*StandbyInstance) GetProviderConfigReference

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

GetProviderConfigReference of this StandbyInstance.

func (*StandbyInstance) GetProviderReference

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

GetProviderReference of this StandbyInstance. Deprecated: Use GetProviderConfigReference.

func (*StandbyInstance) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this StandbyInstance.

func (*StandbyInstance) GetTerraformResourceType

func (mg *StandbyInstance) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this StandbyInstance

func (*StandbyInstance) GetTerraformSchemaVersion

func (tr *StandbyInstance) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*StandbyInstance) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this StandbyInstance.

func (*StandbyInstance) LateInitialize

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

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

func (*StandbyInstance) ResolveReferences

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

ResolveReferences of this StandbyInstance.

func (*StandbyInstance) SetConditions

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

SetConditions of this StandbyInstance.

func (*StandbyInstance) SetDeletionPolicy

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

SetDeletionPolicy of this StandbyInstance.

func (*StandbyInstance) SetObservation

func (tr *StandbyInstance) SetObservation(obs map[string]interface{}) error

SetObservation for this StandbyInstance

func (*StandbyInstance) SetParameters

func (tr *StandbyInstance) SetParameters(params map[string]interface{}) error

SetParameters for this StandbyInstance

func (*StandbyInstance) SetProviderConfigReference

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

SetProviderConfigReference of this StandbyInstance.

func (*StandbyInstance) SetProviderReference

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

SetProviderReference of this StandbyInstance. Deprecated: Use SetProviderConfigReference.

func (*StandbyInstance) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this StandbyInstance.

func (*StandbyInstance) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this StandbyInstance.

type StandbyInstanceList

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

StandbyInstanceList contains a list of StandbyInstances

func (*StandbyInstanceList) DeepCopy

func (in *StandbyInstanceList) DeepCopy() *StandbyInstanceList

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

func (*StandbyInstanceList) DeepCopyInto

func (in *StandbyInstanceList) DeepCopyInto(out *StandbyInstanceList)

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

func (*StandbyInstanceList) DeepCopyObject

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

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

func (*StandbyInstanceList) GetItems

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

GetItems of this StandbyInstanceList.

type StandbyInstanceListObservation

type StandbyInstanceListObservation struct {
	StandbyInstanceID *string `json:"standbyInstanceId,omitempty" tf:"standby_instance_id,omitempty"`

	StandbyInstanceRegion *string `json:"standbyInstanceRegion,omitempty" tf:"standby_instance_region,omitempty"`
}

func (*StandbyInstanceListObservation) DeepCopy

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

func (*StandbyInstanceListObservation) DeepCopyInto

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

type StandbyInstanceListParameters

type StandbyInstanceListParameters struct {
}

func (*StandbyInstanceListParameters) DeepCopy

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

func (*StandbyInstanceListParameters) DeepCopyInto

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

type StandbyInstanceObservation

type StandbyInstanceObservation struct {
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

	EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`

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

	MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`

	Status *float64 `json:"status,omitempty" tf:"status,omitempty"`

	Vip *string `json:"vip,omitempty" tf:"vip,omitempty"`

	Vport *float64 `json:"vport,omitempty" tf:"vport,omitempty"`
}

func (*StandbyInstanceObservation) DeepCopy

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

func (*StandbyInstanceObservation) DeepCopyInto

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

type StandbyInstanceParameters

type StandbyInstanceParameters struct {

	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	// +kubebuilder:validation:Optional
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
	// +kubebuilder:validation:Required
	AvailableZone *string `json:"availableZone" tf:"available_zone,omitempty"`

	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	// +kubebuilder:validation:Optional
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"`

	// Indicates the main instance ID of standby instances.
	// +crossplane:generate:reference:type=Instance
	// +kubebuilder:validation:Optional
	FatherInstanceID *string `json:"fatherInstanceId,omitempty" tf:"father_instance_id,omitempty"`

	// +kubebuilder:validation:Optional
	FatherInstanceIDRef *v1.Reference `json:"fatherInstanceIdRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	FatherInstanceIDSelector *v1.Selector `json:"fatherInstanceIdSelector,omitempty" tf:"-"`

	// Indicates the region of main instance.
	// +kubebuilder:validation:Required
	FatherInstanceRegion *string `json:"fatherInstanceRegion" tf:"father_instance_region,omitempty"`

	// Name of the Mongodb instance.
	// +kubebuilder:validation:Required
	InstanceName *string `json:"instanceName" tf:"instance_name,omitempty"`

	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	// +kubebuilder:validation:Required
	Memory *float64 `json:"memory" tf:"memory,omitempty"`

	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to `PREPAID`.
	// +kubebuilder:validation:Optional
	PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"`

	// ID of the project which the instance belongs.
	// +kubebuilder:validation:Optional
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// ID of the security group. NOTE: for instance which `engine_version` is `MONGO_40_WT`, `security_groups` is not supported.
	// +kubebuilder:validation:Optional
	SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`

	// ID of the subnet within this VPC. The value is required if `vpc_id` is set.
	// +kubebuilder:validation:Optional
	SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`

	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	// +kubebuilder:validation:Optional
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// ID of the VPC.
	// +kubebuilder:validation:Optional
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`

	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	// +kubebuilder:validation:Required
	Volume *float64 `json:"volume" tf:"volume,omitempty"`
}

func (*StandbyInstanceParameters) DeepCopy

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

func (*StandbyInstanceParameters) DeepCopyInto

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

type StandbyInstanceSpec

type StandbyInstanceSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StandbyInstanceParameters `json:"forProvider"`
}

StandbyInstanceSpec defines the desired state of StandbyInstance

func (*StandbyInstanceSpec) DeepCopy

func (in *StandbyInstanceSpec) DeepCopy() *StandbyInstanceSpec

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

func (*StandbyInstanceSpec) DeepCopyInto

func (in *StandbyInstanceSpec) DeepCopyInto(out *StandbyInstanceSpec)

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

type StandbyInstanceStatus

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

StandbyInstanceStatus defines the observed state of StandbyInstance.

func (*StandbyInstanceStatus) DeepCopy

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

func (*StandbyInstanceStatus) DeepCopyInto

func (in *StandbyInstanceStatus) DeepCopyInto(out *StandbyInstanceStatus)

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