Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=cynosdb.tencentcloud.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Cluster
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (in *Cluster) DeepCopyObject() runtime.Object
- func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Cluster) GetConnectionDetailsMapping() map[string]string
- func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Cluster) GetID() string
- func (tr *Cluster) GetInitParameters() (map[string]any, error)
- func (mg *Cluster) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Cluster) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Cluster) GetObservation() (map[string]any, error)
- func (tr *Cluster) GetParameters() (map[string]any, error)
- func (mg *Cluster) GetProviderConfigReference() *xpv1.Reference
- func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Cluster) GetTerraformResourceType() string
- func (tr *Cluster) GetTerraformSchemaVersion() int
- func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Cluster) Hub()
- func (tr *Cluster) LateInitialize(attrs []byte) (bool, error)
- func (mg *Cluster) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Cluster) SetConditions(c ...xpv1.Condition)
- func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Cluster) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Cluster) SetObservation(obs map[string]any) error
- func (tr *Cluster) SetParameters(params map[string]any) error
- func (mg *Cluster) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ClusterInitParameters
- type ClusterList
- type ClusterObservation
- type ClusterParameters
- type ClusterSpec
- type ClusterStatus
- type ParamItemsInitParameters
- type ParamItemsObservation
- type ParamItemsParameters
- type ReadonlyInstance
- func (in *ReadonlyInstance) DeepCopy() *ReadonlyInstance
- func (in *ReadonlyInstance) DeepCopyInto(out *ReadonlyInstance)
- func (in *ReadonlyInstance) DeepCopyObject() runtime.Object
- func (mg *ReadonlyInstance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *ReadonlyInstance) GetConnectionDetailsMapping() map[string]string
- func (mg *ReadonlyInstance) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *ReadonlyInstance) GetID() string
- func (tr *ReadonlyInstance) GetInitParameters() (map[string]any, error)
- func (mg *ReadonlyInstance) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *ReadonlyInstance) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *ReadonlyInstance) GetObservation() (map[string]any, error)
- func (tr *ReadonlyInstance) GetParameters() (map[string]any, error)
- func (mg *ReadonlyInstance) GetProviderConfigReference() *xpv1.Reference
- func (mg *ReadonlyInstance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *ReadonlyInstance) GetTerraformResourceType() string
- func (tr *ReadonlyInstance) GetTerraformSchemaVersion() int
- func (mg *ReadonlyInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *ReadonlyInstance) Hub()
- func (tr *ReadonlyInstance) LateInitialize(attrs []byte) (bool, error)
- func (mg *ReadonlyInstance) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *ReadonlyInstance) SetConditions(c ...xpv1.Condition)
- func (mg *ReadonlyInstance) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *ReadonlyInstance) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *ReadonlyInstance) SetObservation(obs map[string]any) error
- func (tr *ReadonlyInstance) SetParameters(params map[string]any) error
- func (mg *ReadonlyInstance) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *ReadonlyInstance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *ReadonlyInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ReadonlyInstanceInitParameters
- type ReadonlyInstanceList
- type ReadonlyInstanceObservation
- type ReadonlyInstanceParameters
- type ReadonlyInstanceSpec
- type ReadonlyInstanceStatus
- type RoGroupAddrInitParameters
- type RoGroupAddrObservation
- type RoGroupAddrParameters
- type RoGroupInstancesInitParameters
- type RoGroupInstancesObservation
- type RoGroupInstancesParameters
- type RwGroupAddrInitParameters
- type RwGroupAddrObservation
- type RwGroupAddrParameters
- type RwGroupInstancesInitParameters
- type RwGroupInstancesObservation
- type RwGroupInstancesParameters
Constants ¶
const ( CRDGroup = "cynosdb.tencentcloud.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( Cluster_Kind = "Cluster" Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String() Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String() Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind) )
Repository type metadata.
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 )
var ( ReadonlyInstance_Kind = "ReadonlyInstance" ReadonlyInstance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ReadonlyInstance_Kind}.String() ReadonlyInstance_KindAPIVersion = ReadonlyInstance_Kind + "." + CRDGroupVersion.String() ReadonlyInstance_GroupVersionKind = CRDGroupVersion.WithKind(ReadonlyInstance_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availableZone) || (has(self.initProvider) && has(self.initProvider.availableZone))",message="spec.forProvider.availableZone is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.clusterName) || (has(self.initProvider) && has(self.initProvider.clusterName))",message="spec.forProvider.clusterName is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dbType) || (has(self.initProvider) && has(self.initProvider.dbType))",message="spec.forProvider.dbType is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dbVersion) || (has(self.initProvider) && has(self.initProvider.dbVersion))",message="spec.forProvider.dbVersion is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.passwordSecretRef)",message="spec.forProvider.passwordSecretRef is a required parameter" Spec ClusterSpec `json:"spec"` Status ClusterStatus `json:"status,omitempty"` }
Cluster is the Schema for the Clusters API. Provide a resource to create a CynosDB cluster. +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:resource:scope=Cluster,categories={crossplane,managed,tencentcloud}
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Cluster) GetCondition ¶
func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Cluster.
func (*Cluster) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Cluster
func (*Cluster) GetDeletionPolicy ¶
func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Cluster.
func (*Cluster) GetInitParameters ¶ added in v0.8.0
GetInitParameters of this Cluster
func (*Cluster) GetManagementPolicies ¶ added in v0.8.0
func (mg *Cluster) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Cluster.
func (*Cluster) GetMergedParameters ¶ added in v0.8.1
GetInitParameters of this Cluster
func (*Cluster) GetObservation ¶
GetObservation of this Cluster
func (*Cluster) GetParameters ¶
GetParameters of this Cluster
func (*Cluster) GetProviderConfigReference ¶
GetProviderConfigReference of this Cluster.
func (*Cluster) GetPublishConnectionDetailsTo ¶
func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Cluster.
func (*Cluster) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Cluster
func (*Cluster) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Cluster) GetWriteConnectionSecretToReference ¶
func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Cluster.
func (*Cluster) Hub ¶ added in v0.8.1
func (tr *Cluster) Hub()
Hub marks this type as a conversion hub.
func (*Cluster) LateInitialize ¶
LateInitialize this Cluster using its observed tfState. returns True if there are any spec changes for the resource.
func (*Cluster) ResolveReferences ¶
ResolveReferences of this Cluster.
func (*Cluster) SetConditions ¶
SetConditions of this Cluster.
func (*Cluster) SetDeletionPolicy ¶
func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Cluster.
func (*Cluster) SetManagementPolicies ¶ added in v0.8.0
func (mg *Cluster) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Cluster.
func (*Cluster) SetObservation ¶
SetObservation for this Cluster
func (*Cluster) SetParameters ¶
SetParameters for this Cluster
func (*Cluster) SetProviderConfigReference ¶
SetProviderConfigReference of this Cluster.
func (*Cluster) SetPublishConnectionDetailsTo ¶
func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Cluster.
func (*Cluster) SetWriteConnectionSecretToReference ¶
func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Cluster.
type ClusterInitParameters ¶ added in v0.8.0
type ClusterInitParameters struct { // Specify whether the cluster can auto-pause while db_mode is SERVERLESS. Values: yes (default), no. // Specify whether the cluster can auto-pause while `db_mode` is `SERVERLESS`. Values: `yes` (default), `no`. AutoPause *string `json:"autoPause,omitempty" tf:"auto_pause,omitempty"` // Specify auto-pause delay in second while db_mode is SERVERLESS. Value range: [600, 691200]. Default: 600. // Specify auto-pause delay in second while `db_mode` is `SERVERLESS`. Value range: `[600, 691200]`. Default: `600`. AutoPauseDelay *float64 `json:"autoPauseDelay,omitempty" tf:"auto_pause_delay,omitempty"` // Auto renew flag. Valid values are 0(MANUAL_RENEW), 1(AUTO_RENEW). Default value is 0. Only works for PREPAID cluster. // Auto renew flag. Valid values are `0`(MANUAL_RENEW), `1`(AUTO_RENEW). Default value is `0`. Only works for PREPAID cluster. AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"` // The available zone of the CynosDB Cluster. // The available zone of the CynosDB Cluster. AvailableZone *string `json:"availableZone,omitempty" tf:"available_zone,omitempty"` // The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. Default value is POSTPAID_BY_HOUR. // The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"` // Name of CynosDB cluster. // Name of CynosDB cluster. ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name,omitempty"` // Specify DB mode, only available when db_type is MYSQL. Values: NORMAL (Default), SERVERLESS. // Specify DB mode, only available when `db_type` is `MYSQL`. Values: `NORMAL` (Default), `SERVERLESS`. DBMode *string `json:"dbMode,omitempty" tf:"db_mode,omitempty"` // Type of CynosDB, and available values include MYSQL. // Type of CynosDB, and available values include `MYSQL`. DBType *string `json:"dbType,omitempty" tf:"db_type,omitempty"` // Version of CynosDB, which is related to db_type. For MYSQL, available value is 5.7, 8.0. // Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`, `8.0`. DBVersion *string `json:"dbVersion,omitempty" tf:"db_version,omitempty"` // Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its All RELATED INSTANCES will be deleted instead of staying recycle bin. Note: works for both PREPAID and POSTPAID_BY_HOUR cluster. // Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its `All RELATED INSTANCES` will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster. ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceCPUCore *float64 `json:"instanceCpuCore,omitempty" tf:"instance_cpu_core,omitempty"` // Duration time for maintenance, unit in second. 3600 by default. // Duration time for maintenance, unit in second. `3600` by default. InstanceMaintainDuration *float64 `json:"instanceMaintainDuration,omitempty" tf:"instance_maintain_duration,omitempty"` // Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default. // Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default. InstanceMaintainStartTime *float64 `json:"instanceMaintainStartTime,omitempty" tf:"instance_maintain_start_time,omitempty"` // Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default. // Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default. // +listType=set InstanceMaintainWeekdays []*string `json:"instanceMaintainWeekdays,omitempty" tf:"instance_maintain_weekdays,omitempty"` // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceMemorySize *float64 `json:"instanceMemorySize,omitempty" tf:"instance_memory_size,omitempty"` // Maximum CPU core count, required while db_mode is SERVERLESS, request DescribeServerlessInstanceSpecs for more reference. // Maximum CPU core count, required while `db_mode` is `SERVERLESS`, request DescribeServerlessInstanceSpecs for more reference. MaxCPU *float64 `json:"maxCpu,omitempty" tf:"max_cpu,omitempty"` // Minimum CPU core count, required while db_mode is SERVERLESS, request DescribeServerlessInstanceSpecs for more reference. // Minimum CPU core count, required while `db_mode` is `SERVERLESS`, request DescribeServerlessInstanceSpecs for more reference. MinCPU *float64 `json:"minCpu,omitempty" tf:"min_cpu,omitempty"` // Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc. // Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc. OldIPReserveHours *float64 `json:"oldIpReserveHours,omitempty" tf:"old_ip_reserve_hours,omitempty"` // Specify parameter list of database. It is valid when param_template_id is set in create cluster. Use data.tencentcloud_mysql_default_params to query available parameter details. // Specify parameter list of database. It is valid when `param_template_id` is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details. ParamItems []ParamItemsInitParameters `json:"paramItems,omitempty" tf:"param_items,omitempty"` // The ID of the parameter template. // The ID of the parameter template. ParamTemplateID *float64 `json:"paramTemplateId,omitempty" tf:"param_template_id,omitempty"` // Port of CynosDB cluster. // Port of CynosDB cluster. Port *float64 `json:"port,omitempty" tf:"port,omitempty"` // It will be deprecated. Use param_template_id instead. The ID of the parameter template. // The ID of the parameter template. PrarmTemplateID *float64 `json:"prarmTemplateId,omitempty" tf:"prarm_template_id,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. // 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`. PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"` // ID of the project. 0 by default. // ID of the project. `0` by default. ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"` // IDs of security group for ro_group. // IDs of security group for `ro_group`. RoGroupSg []*string `json:"roGroupSg,omitempty" tf:"ro_group_sg,omitempty"` // IDs of security group for rw_group. // IDs of security group for `rw_group`. RwGroupSg []*string `json:"rwGroupSg,omitempty" tf:"rw_group_sg,omitempty"` // Specify whether to pause or resume serverless cluster. values: resume, pause. // Specify whether to pause or resume serverless cluster. values: `resume`, `pause`. ServerlessStatusFlag *string `json:"serverlessStatusFlag,omitempty" tf:"serverless_status_flag,omitempty"` // Multi zone Addresses of the CynosDB Cluster. // Multi zone Addresses of the CynosDB Cluster. SlaveZone *string `json:"slaveZone,omitempty" tf:"slave_zone,omitempty"` // Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is MYSQL and charge_type is PREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode is order and pay. when charge_type is POSTPAID_BY_HOUR, this argument is unnecessary. // Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is `MYSQL` and charge_type is `PREPAID`, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode is `order and pay`. when charge_type is `POSTPAID_BY_HOUR`, this argument is unnecessary. StorageLimit *float64 `json:"storageLimit,omitempty" tf:"storage_limit,omitempty"` // Cluster storage billing mode, pay-as-you-go: 0-yearly/monthly: 1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. // Cluster storage billing mode, pay-as-you-go: `0`-yearly/monthly: `1`-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. StoragePayMode *float64 `json:"storagePayMode,omitempty" tf:"storage_pay_mode,omitempty"` // ID of the subnet within this VPC. // ID of the subnet within this VPC. // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.Subnet SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // Reference to a Subnet in vpc to populate subnetId. // +kubebuilder:validation:Optional SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"` // Selector for a Subnet in vpc to populate subnetId. // +kubebuilder:validation:Optional SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"` // The tags of the CynosDB cluster. // The tags of the CynosDB cluster. // +mapType=granular Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // ID of the VPC. // ID of the VPC. // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.VPC 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:"-"` }
func (*ClusterInitParameters) DeepCopy ¶ added in v0.8.0
func (in *ClusterInitParameters) DeepCopy() *ClusterInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInitParameters.
func (*ClusterInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *ClusterInitParameters) DeepCopyInto(out *ClusterInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Cluster `json:"items"` }
ClusterList contains a list of Clusters
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterList) GetItems ¶
func (l *ClusterList) GetItems() []resource.Managed
GetItems of this ClusterList.
type ClusterObservation ¶
type ClusterObservation struct { // Specify whether the cluster can auto-pause while db_mode is SERVERLESS. Values: yes (default), no. // Specify whether the cluster can auto-pause while `db_mode` is `SERVERLESS`. Values: `yes` (default), `no`. AutoPause *string `json:"autoPause,omitempty" tf:"auto_pause,omitempty"` // Specify auto-pause delay in second while db_mode is SERVERLESS. Value range: [600, 691200]. Default: 600. // Specify auto-pause delay in second while `db_mode` is `SERVERLESS`. Value range: `[600, 691200]`. Default: `600`. AutoPauseDelay *float64 `json:"autoPauseDelay,omitempty" tf:"auto_pause_delay,omitempty"` // Auto renew flag. Valid values are 0(MANUAL_RENEW), 1(AUTO_RENEW). Default value is 0. Only works for PREPAID cluster. // Auto renew flag. Valid values are `0`(MANUAL_RENEW), `1`(AUTO_RENEW). Default value is `0`. Only works for PREPAID cluster. AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"` // The available zone of the CynosDB Cluster. // The available zone of the CynosDB Cluster. AvailableZone *string `json:"availableZone,omitempty" tf:"available_zone,omitempty"` // The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. Default value is POSTPAID_BY_HOUR. // The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"` // Charset used by CynosDB cluster. // Charset used by CynosDB cluster. Charset *string `json:"charset,omitempty" tf:"charset,omitempty"` // Name of CynosDB cluster. // Name of CynosDB cluster. ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name,omitempty"` // Status of the Cynosdb cluster. // Status of the Cynosdb cluster. ClusterStatus *string `json:"clusterStatus,omitempty" tf:"cluster_status,omitempty"` // Creation time of the CynosDB cluster. // Creation time of the CynosDB cluster. CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"` // Specify DB mode, only available when db_type is MYSQL. Values: NORMAL (Default), SERVERLESS. // Specify DB mode, only available when `db_type` is `MYSQL`. Values: `NORMAL` (Default), `SERVERLESS`. DBMode *string `json:"dbMode,omitempty" tf:"db_mode,omitempty"` // Type of CynosDB, and available values include MYSQL. // Type of CynosDB, and available values include `MYSQL`. DBType *string `json:"dbType,omitempty" tf:"db_type,omitempty"` // Version of CynosDB, which is related to db_type. For MYSQL, available value is 5.7, 8.0. // Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`, `8.0`. DBVersion *string `json:"dbVersion,omitempty" tf:"db_version,omitempty"` // Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its All RELATED INSTANCES will be deleted instead of staying recycle bin. Note: works for both PREPAID and POSTPAID_BY_HOUR cluster. // Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its `All RELATED INSTANCES` will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster. ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // ID of the resource. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceCPUCore *float64 `json:"instanceCpuCore,omitempty" tf:"instance_cpu_core,omitempty"` // ID of instance. // ID of instance. InstanceID *string `json:"instanceId,omitempty" tf:"instance_id,omitempty"` // Duration time for maintenance, unit in second. 3600 by default. // Duration time for maintenance, unit in second. `3600` by default. InstanceMaintainDuration *float64 `json:"instanceMaintainDuration,omitempty" tf:"instance_maintain_duration,omitempty"` // Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default. // Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default. InstanceMaintainStartTime *float64 `json:"instanceMaintainStartTime,omitempty" tf:"instance_maintain_start_time,omitempty"` // Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default. // Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default. // +listType=set InstanceMaintainWeekdays []*string `json:"instanceMaintainWeekdays,omitempty" tf:"instance_maintain_weekdays,omitempty"` // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceMemorySize *float64 `json:"instanceMemorySize,omitempty" tf:"instance_memory_size,omitempty"` // Name of instance. // Name of instance. InstanceName *string `json:"instanceName,omitempty" tf:"instance_name,omitempty"` // Status of the instance. // Status of the instance. InstanceStatus *string `json:"instanceStatus,omitempty" tf:"instance_status,omitempty"` // Storage size of the instance, unit in GB. // Storage size of the instance, unit in GB. InstanceStorageSize *float64 `json:"instanceStorageSize,omitempty" tf:"instance_storage_size,omitempty"` // Maximum CPU core count, required while db_mode is SERVERLESS, request DescribeServerlessInstanceSpecs for more reference. // Maximum CPU core count, required while `db_mode` is `SERVERLESS`, request DescribeServerlessInstanceSpecs for more reference. MaxCPU *float64 `json:"maxCpu,omitempty" tf:"max_cpu,omitempty"` // Minimum CPU core count, required while db_mode is SERVERLESS, request DescribeServerlessInstanceSpecs for more reference. // Minimum CPU core count, required while `db_mode` is `SERVERLESS`, request DescribeServerlessInstanceSpecs for more reference. MinCPU *float64 `json:"minCpu,omitempty" tf:"min_cpu,omitempty"` // Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc. // Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc. OldIPReserveHours *float64 `json:"oldIpReserveHours,omitempty" tf:"old_ip_reserve_hours,omitempty"` // Specify parameter list of database. It is valid when param_template_id is set in create cluster. Use data.tencentcloud_mysql_default_params to query available parameter details. // Specify parameter list of database. It is valid when `param_template_id` is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details. ParamItems []ParamItemsObservation `json:"paramItems,omitempty" tf:"param_items,omitempty"` // The ID of the parameter template. // The ID of the parameter template. ParamTemplateID *float64 `json:"paramTemplateId,omitempty" tf:"param_template_id,omitempty"` // Port of CynosDB cluster. // Port of CynosDB cluster. Port *float64 `json:"port,omitempty" tf:"port,omitempty"` // It will be deprecated. Use param_template_id instead. The ID of the parameter template. // The ID of the parameter template. PrarmTemplateID *float64 `json:"prarmTemplateId,omitempty" tf:"prarm_template_id,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. // 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`. PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"` // ID of the project. 0 by default. // ID of the project. `0` by default. ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"` // Readonly addresses. Each element contains the following attributes: // Readonly addresses. Each element contains the following attributes: RoGroupAddr []RoGroupAddrObservation `json:"roGroupAddr,omitempty" tf:"ro_group_addr,omitempty"` // ID of read-only instance group. // ID of read-only instance group. RoGroupID *string `json:"roGroupId,omitempty" tf:"ro_group_id,omitempty"` // List of instances in the read-only instance group. // List of instances in the read-only instance group. RoGroupInstances []RoGroupInstancesObservation `json:"roGroupInstances,omitempty" tf:"ro_group_instances,omitempty"` // IDs of security group for ro_group. // IDs of security group for `ro_group`. RoGroupSg []*string `json:"roGroupSg,omitempty" tf:"ro_group_sg,omitempty"` // Read-write addresses. Each element contains the following attributes: // Read-write addresses. Each element contains the following attributes: RwGroupAddr []RwGroupAddrObservation `json:"rwGroupAddr,omitempty" tf:"rw_group_addr,omitempty"` // ID of read-write instance group. // ID of read-write instance group. RwGroupID *string `json:"rwGroupId,omitempty" tf:"rw_group_id,omitempty"` // List of instances in the read-write instance group. // List of instances in the read-write instance group. RwGroupInstances []RwGroupInstancesObservation `json:"rwGroupInstances,omitempty" tf:"rw_group_instances,omitempty"` // IDs of security group for rw_group. // IDs of security group for `rw_group`. RwGroupSg []*string `json:"rwGroupSg,omitempty" tf:"rw_group_sg,omitempty"` // Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set serverless_status_flag. // Serverless cluster status. NOTE: This is a readonly attribute, to modify, please set `serverless_status_flag`. ServerlessStatus *string `json:"serverlessStatus,omitempty" tf:"serverless_status,omitempty"` // Specify whether to pause or resume serverless cluster. values: resume, pause. // Specify whether to pause or resume serverless cluster. values: `resume`, `pause`. ServerlessStatusFlag *string `json:"serverlessStatusFlag,omitempty" tf:"serverless_status_flag,omitempty"` // Multi zone Addresses of the CynosDB Cluster. // Multi zone Addresses of the CynosDB Cluster. SlaveZone *string `json:"slaveZone,omitempty" tf:"slave_zone,omitempty"` // Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is MYSQL and charge_type is PREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode is order and pay. when charge_type is POSTPAID_BY_HOUR, this argument is unnecessary. // Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is `MYSQL` and charge_type is `PREPAID`, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode is `order and pay`. when charge_type is `POSTPAID_BY_HOUR`, this argument is unnecessary. StorageLimit *float64 `json:"storageLimit,omitempty" tf:"storage_limit,omitempty"` // Cluster storage billing mode, pay-as-you-go: 0-yearly/monthly: 1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. // Cluster storage billing mode, pay-as-you-go: `0`-yearly/monthly: `1`-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. StoragePayMode *float64 `json:"storagePayMode,omitempty" tf:"storage_pay_mode,omitempty"` // Used storage of CynosDB cluster, unit in MB. // Used storage of CynosDB cluster, unit in MB. StorageUsed *float64 `json:"storageUsed,omitempty" tf:"storage_used,omitempty"` // ID of the subnet within this VPC. // ID of the subnet within this VPC. SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // The tags of the CynosDB cluster. // The tags of the CynosDB cluster. // +mapType=granular Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // ID of the VPC. // ID of the VPC. VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` }
func (*ClusterObservation) DeepCopy ¶
func (in *ClusterObservation) DeepCopy() *ClusterObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservation.
func (*ClusterObservation) DeepCopyInto ¶
func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterParameters ¶
type ClusterParameters struct { // Specify whether the cluster can auto-pause while db_mode is SERVERLESS. Values: yes (default), no. // Specify whether the cluster can auto-pause while `db_mode` is `SERVERLESS`. Values: `yes` (default), `no`. // +kubebuilder:validation:Optional AutoPause *string `json:"autoPause,omitempty" tf:"auto_pause,omitempty"` // Specify auto-pause delay in second while db_mode is SERVERLESS. Value range: [600, 691200]. Default: 600. // Specify auto-pause delay in second while `db_mode` is `SERVERLESS`. Value range: `[600, 691200]`. Default: `600`. // +kubebuilder:validation:Optional AutoPauseDelay *float64 `json:"autoPauseDelay,omitempty" tf:"auto_pause_delay,omitempty"` // Auto renew flag. Valid values are 0(MANUAL_RENEW), 1(AUTO_RENEW). Default value is 0. Only works for PREPAID cluster. // Auto renew flag. Valid values are `0`(MANUAL_RENEW), `1`(AUTO_RENEW). Default value is `0`. Only works for PREPAID cluster. // +kubebuilder:validation:Optional AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"` // The available zone of the CynosDB Cluster. // The available zone of the CynosDB Cluster. // +kubebuilder:validation:Optional AvailableZone *string `json:"availableZone,omitempty" tf:"available_zone,omitempty"` // The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. Default value is POSTPAID_BY_HOUR. // The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. // +kubebuilder:validation:Optional ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"` // Name of CynosDB cluster. // Name of CynosDB cluster. // +kubebuilder:validation:Optional ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name,omitempty"` // Specify DB mode, only available when db_type is MYSQL. Values: NORMAL (Default), SERVERLESS. // Specify DB mode, only available when `db_type` is `MYSQL`. Values: `NORMAL` (Default), `SERVERLESS`. // +kubebuilder:validation:Optional DBMode *string `json:"dbMode,omitempty" tf:"db_mode,omitempty"` // Type of CynosDB, and available values include MYSQL. // Type of CynosDB, and available values include `MYSQL`. // +kubebuilder:validation:Optional DBType *string `json:"dbType,omitempty" tf:"db_type,omitempty"` // Version of CynosDB, which is related to db_type. For MYSQL, available value is 5.7, 8.0. // Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`, `8.0`. // +kubebuilder:validation:Optional DBVersion *string `json:"dbVersion,omitempty" tf:"db_version,omitempty"` // Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its All RELATED INSTANCES will be deleted instead of staying recycle bin. Note: works for both PREPAID and POSTPAID_BY_HOUR cluster. // Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its `All RELATED INSTANCES` will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster. // +kubebuilder:validation:Optional ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // +kubebuilder:validation:Optional InstanceCPUCore *float64 `json:"instanceCpuCore,omitempty" tf:"instance_cpu_core,omitempty"` // Duration time for maintenance, unit in second. 3600 by default. // Duration time for maintenance, unit in second. `3600` by default. // +kubebuilder:validation:Optional InstanceMaintainDuration *float64 `json:"instanceMaintainDuration,omitempty" tf:"instance_maintain_duration,omitempty"` // Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default. // Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default. // +kubebuilder:validation:Optional InstanceMaintainStartTime *float64 `json:"instanceMaintainStartTime,omitempty" tf:"instance_maintain_start_time,omitempty"` // Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default. // Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default. // +kubebuilder:validation:Optional // +listType=set InstanceMaintainWeekdays []*string `json:"instanceMaintainWeekdays,omitempty" tf:"instance_maintain_weekdays,omitempty"` // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // +kubebuilder:validation:Optional InstanceMemorySize *float64 `json:"instanceMemorySize,omitempty" tf:"instance_memory_size,omitempty"` // Maximum CPU core count, required while db_mode is SERVERLESS, request DescribeServerlessInstanceSpecs for more reference. // Maximum CPU core count, required while `db_mode` is `SERVERLESS`, request DescribeServerlessInstanceSpecs for more reference. // +kubebuilder:validation:Optional MaxCPU *float64 `json:"maxCpu,omitempty" tf:"max_cpu,omitempty"` // Minimum CPU core count, required while db_mode is SERVERLESS, request DescribeServerlessInstanceSpecs for more reference. // Minimum CPU core count, required while `db_mode` is `SERVERLESS`, request DescribeServerlessInstanceSpecs for more reference. // +kubebuilder:validation:Optional MinCPU *float64 `json:"minCpu,omitempty" tf:"min_cpu,omitempty"` // Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc. // Recycling time of the old address, must be filled in when modifying the vpcRecycling time of the old address, must be filled in when modifying the vpc. // +kubebuilder:validation:Optional OldIPReserveHours *float64 `json:"oldIpReserveHours,omitempty" tf:"old_ip_reserve_hours,omitempty"` // Specify parameter list of database. It is valid when param_template_id is set in create cluster. Use data.tencentcloud_mysql_default_params to query available parameter details. // Specify parameter list of database. It is valid when `param_template_id` is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details. // +kubebuilder:validation:Optional ParamItems []ParamItemsParameters `json:"paramItems,omitempty" tf:"param_items,omitempty"` // The ID of the parameter template. // The ID of the parameter template. // +kubebuilder:validation:Optional ParamTemplateID *float64 `json:"paramTemplateId,omitempty" tf:"param_template_id,omitempty"` // Password of root account. // Password of `root` account. // +kubebuilder:validation:Optional PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"` // Port of CynosDB cluster. // Port of CynosDB cluster. // +kubebuilder:validation:Optional Port *float64 `json:"port,omitempty" tf:"port,omitempty"` // It will be deprecated. Use param_template_id instead. The ID of the parameter template. // The ID of the parameter template. // +kubebuilder:validation:Optional PrarmTemplateID *float64 `json:"prarmTemplateId,omitempty" tf:"prarm_template_id,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. // 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. 0 by default. // ID of the project. `0` by default. // +kubebuilder:validation:Optional ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"` // IDs of security group for ro_group. // IDs of security group for `ro_group`. // +kubebuilder:validation:Optional RoGroupSg []*string `json:"roGroupSg,omitempty" tf:"ro_group_sg,omitempty"` // IDs of security group for rw_group. // IDs of security group for `rw_group`. // +kubebuilder:validation:Optional RwGroupSg []*string `json:"rwGroupSg,omitempty" tf:"rw_group_sg,omitempty"` // Specify whether to pause or resume serverless cluster. values: resume, pause. // Specify whether to pause or resume serverless cluster. values: `resume`, `pause`. // +kubebuilder:validation:Optional ServerlessStatusFlag *string `json:"serverlessStatusFlag,omitempty" tf:"serverless_status_flag,omitempty"` // Multi zone Addresses of the CynosDB Cluster. // Multi zone Addresses of the CynosDB Cluster. // +kubebuilder:validation:Optional SlaveZone *string `json:"slaveZone,omitempty" tf:"slave_zone,omitempty"` // Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is MYSQL and charge_type is PREPAID, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode is order and pay. when charge_type is POSTPAID_BY_HOUR, this argument is unnecessary. // Storage limit of CynosDB cluster instance, unit in GB. The maximum storage of a non-serverless instance in GB. NOTE: If db_type is `MYSQL` and charge_type is `PREPAID`, the value cannot exceed the maximum storage corresponding to the CPU and memory specifications, and the transaction mode is `order and pay`. when charge_type is `POSTPAID_BY_HOUR`, this argument is unnecessary. // +kubebuilder:validation:Optional StorageLimit *float64 `json:"storageLimit,omitempty" tf:"storage_limit,omitempty"` // Cluster storage billing mode, pay-as-you-go: 0-yearly/monthly: 1-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. // Cluster storage billing mode, pay-as-you-go: `0`-yearly/monthly: `1`-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage. // +kubebuilder:validation:Optional StoragePayMode *float64 `json:"storagePayMode,omitempty" tf:"storage_pay_mode,omitempty"` // ID of the subnet within this VPC. // ID of the subnet within this VPC. // +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"` // Reference to a Subnet in vpc to populate subnetId. // +kubebuilder:validation:Optional SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"` // Selector for a Subnet in vpc to populate subnetId. // +kubebuilder:validation:Optional SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"` // The tags of the CynosDB cluster. // The tags of the CynosDB cluster. // +kubebuilder:validation:Optional // +mapType=granular Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // ID of the VPC. // 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"` // 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:"-"` }
func (*ClusterParameters) DeepCopy ¶
func (in *ClusterParameters) DeepCopy() *ClusterParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters.
func (*ClusterParameters) DeepCopyInto ¶
func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
type ClusterSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ClusterParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider ClusterInitParameters `json:"initProvider,omitempty"` }
ClusterSpec defines the desired state of Cluster
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ClusterObservation `json:"atProvider,omitempty"` }
ClusterStatus defines the observed state of Cluster.
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParamItemsInitParameters ¶ added in v0.8.0
type ParamItemsInitParameters struct { // Param expected value to set. // Param expected value to set. CurrentValue *string `json:"currentValue,omitempty" tf:"current_value,omitempty"` // Name of param, e.g. character_set_server. // Name of param, e.g. `character_set_server`. Name *string `json:"name,omitempty" tf:"name,omitempty"` // Param old value, indicates the value which already set, this value is required when modifying current_value. // Param old value, indicates the value which already set, this value is required when modifying current_value. OldValue *string `json:"oldValue,omitempty" tf:"old_value,omitempty"` }
func (*ParamItemsInitParameters) DeepCopy ¶ added in v0.8.0
func (in *ParamItemsInitParameters) DeepCopy() *ParamItemsInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamItemsInitParameters.
func (*ParamItemsInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *ParamItemsInitParameters) DeepCopyInto(out *ParamItemsInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParamItemsObservation ¶
type ParamItemsObservation struct { // Param expected value to set. // Param expected value to set. CurrentValue *string `json:"currentValue,omitempty" tf:"current_value,omitempty"` // Name of param, e.g. character_set_server. // Name of param, e.g. `character_set_server`. Name *string `json:"name,omitempty" tf:"name,omitempty"` // Param old value, indicates the value which already set, this value is required when modifying current_value. // Param old value, indicates the value which already set, this value is required when modifying current_value. OldValue *string `json:"oldValue,omitempty" tf:"old_value,omitempty"` }
func (*ParamItemsObservation) DeepCopy ¶
func (in *ParamItemsObservation) DeepCopy() *ParamItemsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamItemsObservation.
func (*ParamItemsObservation) DeepCopyInto ¶
func (in *ParamItemsObservation) DeepCopyInto(out *ParamItemsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParamItemsParameters ¶
type ParamItemsParameters struct { // Param expected value to set. // Param expected value to set. // +kubebuilder:validation:Optional CurrentValue *string `json:"currentValue" tf:"current_value,omitempty"` // Name of param, e.g. character_set_server. // Name of param, e.g. `character_set_server`. // +kubebuilder:validation:Optional Name *string `json:"name" tf:"name,omitempty"` // Param old value, indicates the value which already set, this value is required when modifying current_value. // Param old value, indicates the value which already set, this value is required when modifying current_value. // +kubebuilder:validation:Optional OldValue *string `json:"oldValue,omitempty" tf:"old_value,omitempty"` }
func (*ParamItemsParameters) DeepCopy ¶
func (in *ParamItemsParameters) DeepCopy() *ParamItemsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamItemsParameters.
func (*ParamItemsParameters) DeepCopyInto ¶
func (in *ParamItemsParameters) DeepCopyInto(out *ParamItemsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReadonlyInstance ¶
type ReadonlyInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceName) || (has(self.initProvider) && has(self.initProvider.instanceName))",message="spec.forProvider.instanceName is a required parameter" Spec ReadonlyInstanceSpec `json:"spec"` Status ReadonlyInstanceStatus `json:"status,omitempty"` }
ReadonlyInstance is the Schema for the ReadonlyInstances API. Provide a resource to create a CynosDB readonly instance. +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:resource:scope=Cluster,categories={crossplane,managed,tencentcloud}
func (*ReadonlyInstance) DeepCopy ¶
func (in *ReadonlyInstance) DeepCopy() *ReadonlyInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstance.
func (*ReadonlyInstance) DeepCopyInto ¶
func (in *ReadonlyInstance) DeepCopyInto(out *ReadonlyInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReadonlyInstance) DeepCopyObject ¶
func (in *ReadonlyInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ReadonlyInstance) GetCondition ¶
func (mg *ReadonlyInstance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this ReadonlyInstance.
func (*ReadonlyInstance) GetConnectionDetailsMapping ¶
func (tr *ReadonlyInstance) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this ReadonlyInstance
func (*ReadonlyInstance) GetDeletionPolicy ¶
func (mg *ReadonlyInstance) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this ReadonlyInstance.
func (*ReadonlyInstance) GetID ¶
func (tr *ReadonlyInstance) GetID() string
GetID returns ID of underlying Terraform resource of this ReadonlyInstance
func (*ReadonlyInstance) GetInitParameters ¶ added in v0.8.0
func (tr *ReadonlyInstance) GetInitParameters() (map[string]any, error)
GetInitParameters of this ReadonlyInstance
func (*ReadonlyInstance) GetManagementPolicies ¶ added in v0.8.0
func (mg *ReadonlyInstance) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this ReadonlyInstance.
func (*ReadonlyInstance) GetMergedParameters ¶ added in v0.8.1
func (tr *ReadonlyInstance) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this ReadonlyInstance
func (*ReadonlyInstance) GetObservation ¶
func (tr *ReadonlyInstance) GetObservation() (map[string]any, error)
GetObservation of this ReadonlyInstance
func (*ReadonlyInstance) GetParameters ¶
func (tr *ReadonlyInstance) GetParameters() (map[string]any, error)
GetParameters of this ReadonlyInstance
func (*ReadonlyInstance) GetProviderConfigReference ¶
func (mg *ReadonlyInstance) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this ReadonlyInstance.
func (*ReadonlyInstance) GetPublishConnectionDetailsTo ¶
func (mg *ReadonlyInstance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this ReadonlyInstance.
func (*ReadonlyInstance) GetTerraformResourceType ¶
func (mg *ReadonlyInstance) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this ReadonlyInstance
func (*ReadonlyInstance) GetTerraformSchemaVersion ¶
func (tr *ReadonlyInstance) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*ReadonlyInstance) GetWriteConnectionSecretToReference ¶
func (mg *ReadonlyInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this ReadonlyInstance.
func (*ReadonlyInstance) Hub ¶ added in v0.8.1
func (tr *ReadonlyInstance) Hub()
Hub marks this type as a conversion hub.
func (*ReadonlyInstance) LateInitialize ¶
func (tr *ReadonlyInstance) LateInitialize(attrs []byte) (bool, error)
LateInitialize this ReadonlyInstance using its observed tfState. returns True if there are any spec changes for the resource.
func (*ReadonlyInstance) ResolveReferences ¶
ResolveReferences of this ReadonlyInstance.
func (*ReadonlyInstance) SetConditions ¶
func (mg *ReadonlyInstance) SetConditions(c ...xpv1.Condition)
SetConditions of this ReadonlyInstance.
func (*ReadonlyInstance) SetDeletionPolicy ¶
func (mg *ReadonlyInstance) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this ReadonlyInstance.
func (*ReadonlyInstance) SetManagementPolicies ¶ added in v0.8.0
func (mg *ReadonlyInstance) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this ReadonlyInstance.
func (*ReadonlyInstance) SetObservation ¶
func (tr *ReadonlyInstance) SetObservation(obs map[string]any) error
SetObservation for this ReadonlyInstance
func (*ReadonlyInstance) SetParameters ¶
func (tr *ReadonlyInstance) SetParameters(params map[string]any) error
SetParameters for this ReadonlyInstance
func (*ReadonlyInstance) SetProviderConfigReference ¶
func (mg *ReadonlyInstance) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this ReadonlyInstance.
func (*ReadonlyInstance) SetPublishConnectionDetailsTo ¶
func (mg *ReadonlyInstance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this ReadonlyInstance.
func (*ReadonlyInstance) SetWriteConnectionSecretToReference ¶
func (mg *ReadonlyInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this ReadonlyInstance.
type ReadonlyInstanceInitParameters ¶ added in v0.8.0
type ReadonlyInstanceInitParameters struct { // Cluster ID which the readonly instance belongs to. // Cluster ID which the readonly instance belongs to. // +crossplane:generate:reference:type=Cluster ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"` // Reference to a Cluster to populate clusterId. // +kubebuilder:validation:Optional ClusterIDRef *v1.Reference `json:"clusterIdRef,omitempty" tf:"-"` // Selector for a Cluster to populate clusterId. // +kubebuilder:validation:Optional ClusterIDSelector *v1.Selector `json:"clusterIdSelector,omitempty" tf:"-"` // Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both PREPAID and POSTPAID_BY_HOUR cluster. // Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster. ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceCPUCore *float64 `json:"instanceCpuCore,omitempty" tf:"instance_cpu_core,omitempty"` // Duration time for maintenance, unit in second. 3600 by default. // Duration time for maintenance, unit in second. `3600` by default. InstanceMaintainDuration *float64 `json:"instanceMaintainDuration,omitempty" tf:"instance_maintain_duration,omitempty"` // Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default. // Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default. InstanceMaintainStartTime *float64 `json:"instanceMaintainStartTime,omitempty" tf:"instance_maintain_start_time,omitempty"` // Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default. // Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default. // +listType=set InstanceMaintainWeekdays []*string `json:"instanceMaintainWeekdays,omitempty" tf:"instance_maintain_weekdays,omitempty"` // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceMemorySize *float64 `json:"instanceMemorySize,omitempty" tf:"instance_memory_size,omitempty"` // Name of instance. // Name of instance. InstanceName *string `json:"instanceName,omitempty" tf:"instance_name,omitempty"` // ID of the subnet within this VPC. // ID of the subnet within this VPC. SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // ID of the VPC. // ID of the VPC. VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` }
func (*ReadonlyInstanceInitParameters) DeepCopy ¶ added in v0.8.0
func (in *ReadonlyInstanceInitParameters) DeepCopy() *ReadonlyInstanceInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstanceInitParameters.
func (*ReadonlyInstanceInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *ReadonlyInstanceInitParameters) DeepCopyInto(out *ReadonlyInstanceInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReadonlyInstanceList ¶
type ReadonlyInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ReadonlyInstance `json:"items"` }
ReadonlyInstanceList contains a list of ReadonlyInstances
func (*ReadonlyInstanceList) DeepCopy ¶
func (in *ReadonlyInstanceList) DeepCopy() *ReadonlyInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstanceList.
func (*ReadonlyInstanceList) DeepCopyInto ¶
func (in *ReadonlyInstanceList) DeepCopyInto(out *ReadonlyInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReadonlyInstanceList) DeepCopyObject ¶
func (in *ReadonlyInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ReadonlyInstanceList) GetItems ¶
func (l *ReadonlyInstanceList) GetItems() []resource.Managed
GetItems of this ReadonlyInstanceList.
type ReadonlyInstanceObservation ¶
type ReadonlyInstanceObservation struct { // Cluster ID which the readonly instance belongs to. // Cluster ID which the readonly instance belongs to. ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"` // Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both PREPAID and POSTPAID_BY_HOUR cluster. // Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster. ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // ID of the resource. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceCPUCore *float64 `json:"instanceCpuCore,omitempty" tf:"instance_cpu_core,omitempty"` // Duration time for maintenance, unit in second. 3600 by default. // Duration time for maintenance, unit in second. `3600` by default. InstanceMaintainDuration *float64 `json:"instanceMaintainDuration,omitempty" tf:"instance_maintain_duration,omitempty"` // Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default. // Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default. InstanceMaintainStartTime *float64 `json:"instanceMaintainStartTime,omitempty" tf:"instance_maintain_start_time,omitempty"` // Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default. // Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default. // +listType=set InstanceMaintainWeekdays []*string `json:"instanceMaintainWeekdays,omitempty" tf:"instance_maintain_weekdays,omitempty"` // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. InstanceMemorySize *float64 `json:"instanceMemorySize,omitempty" tf:"instance_memory_size,omitempty"` // Name of instance. // Name of instance. InstanceName *string `json:"instanceName,omitempty" tf:"instance_name,omitempty"` // Status of the instance. // Status of the instance. InstanceStatus *string `json:"instanceStatus,omitempty" tf:"instance_status,omitempty"` // Storage size of the instance, unit in GB. // Storage size of the instance, unit in GB. InstanceStorageSize *float64 `json:"instanceStorageSize,omitempty" tf:"instance_storage_size,omitempty"` // ID of the subnet within this VPC. // ID of the subnet within this VPC. SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // ID of the VPC. // ID of the VPC. VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` }
func (*ReadonlyInstanceObservation) DeepCopy ¶
func (in *ReadonlyInstanceObservation) DeepCopy() *ReadonlyInstanceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstanceObservation.
func (*ReadonlyInstanceObservation) DeepCopyInto ¶
func (in *ReadonlyInstanceObservation) DeepCopyInto(out *ReadonlyInstanceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReadonlyInstanceParameters ¶
type ReadonlyInstanceParameters struct { // Cluster ID which the readonly instance belongs to. // Cluster ID which the readonly instance belongs to. // +crossplane:generate:reference:type=Cluster // +kubebuilder:validation:Optional ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"` // Reference to a Cluster to populate clusterId. // +kubebuilder:validation:Optional ClusterIDRef *v1.Reference `json:"clusterIdRef,omitempty" tf:"-"` // Selector for a Cluster to populate clusterId. // +kubebuilder:validation:Optional ClusterIDSelector *v1.Selector `json:"clusterIdSelector,omitempty" tf:"-"` // Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both PREPAID and POSTPAID_BY_HOUR cluster. // Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster. // +kubebuilder:validation:Optional ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // +kubebuilder:validation:Optional InstanceCPUCore *float64 `json:"instanceCpuCore,omitempty" tf:"instance_cpu_core,omitempty"` // Duration time for maintenance, unit in second. 3600 by default. // Duration time for maintenance, unit in second. `3600` by default. // +kubebuilder:validation:Optional InstanceMaintainDuration *float64 `json:"instanceMaintainDuration,omitempty" tf:"instance_maintain_duration,omitempty"` // Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default. // Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default. // +kubebuilder:validation:Optional InstanceMaintainStartTime *float64 `json:"instanceMaintainStartTime,omitempty" tf:"instance_maintain_start_time,omitempty"` // Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default. // Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default. // +kubebuilder:validation:Optional // +listType=set InstanceMaintainWeekdays []*string `json:"instanceMaintainWeekdays,omitempty" tf:"instance_maintain_weekdays,omitempty"` // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console. // +kubebuilder:validation:Optional InstanceMemorySize *float64 `json:"instanceMemorySize,omitempty" tf:"instance_memory_size,omitempty"` // Name of instance. // Name of instance. // +kubebuilder:validation:Optional InstanceName *string `json:"instanceName,omitempty" tf:"instance_name,omitempty"` // ID of the subnet within this VPC. // ID of the subnet within this VPC. // +kubebuilder:validation:Optional SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // ID of the VPC. // ID of the VPC. // +kubebuilder:validation:Optional VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` }
func (*ReadonlyInstanceParameters) DeepCopy ¶
func (in *ReadonlyInstanceParameters) DeepCopy() *ReadonlyInstanceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstanceParameters.
func (*ReadonlyInstanceParameters) DeepCopyInto ¶
func (in *ReadonlyInstanceParameters) DeepCopyInto(out *ReadonlyInstanceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReadonlyInstanceSpec ¶
type ReadonlyInstanceSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ReadonlyInstanceParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider ReadonlyInstanceInitParameters `json:"initProvider,omitempty"` }
ReadonlyInstanceSpec defines the desired state of ReadonlyInstance
func (*ReadonlyInstanceSpec) DeepCopy ¶
func (in *ReadonlyInstanceSpec) DeepCopy() *ReadonlyInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstanceSpec.
func (*ReadonlyInstanceSpec) DeepCopyInto ¶
func (in *ReadonlyInstanceSpec) DeepCopyInto(out *ReadonlyInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReadonlyInstanceStatus ¶
type ReadonlyInstanceStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ReadonlyInstanceObservation `json:"atProvider,omitempty"` }
ReadonlyInstanceStatus defines the observed state of ReadonlyInstance.
func (*ReadonlyInstanceStatus) DeepCopy ¶
func (in *ReadonlyInstanceStatus) DeepCopy() *ReadonlyInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadonlyInstanceStatus.
func (*ReadonlyInstanceStatus) DeepCopyInto ¶
func (in *ReadonlyInstanceStatus) DeepCopyInto(out *ReadonlyInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoGroupAddrInitParameters ¶ added in v0.8.0
type RoGroupAddrInitParameters struct { }
func (*RoGroupAddrInitParameters) DeepCopy ¶ added in v0.8.0
func (in *RoGroupAddrInitParameters) DeepCopy() *RoGroupAddrInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoGroupAddrInitParameters.
func (*RoGroupAddrInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *RoGroupAddrInitParameters) DeepCopyInto(out *RoGroupAddrInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoGroupAddrObservation ¶
type RoGroupAddrObservation struct { // IP address for readonly connection. IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // Port of CynosDB cluster. Port *float64 `json:"port,omitempty" tf:"port,omitempty"` }
func (*RoGroupAddrObservation) DeepCopy ¶
func (in *RoGroupAddrObservation) DeepCopy() *RoGroupAddrObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoGroupAddrObservation.
func (*RoGroupAddrObservation) DeepCopyInto ¶
func (in *RoGroupAddrObservation) DeepCopyInto(out *RoGroupAddrObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoGroupAddrParameters ¶
type RoGroupAddrParameters struct { }
func (*RoGroupAddrParameters) DeepCopy ¶
func (in *RoGroupAddrParameters) DeepCopy() *RoGroupAddrParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoGroupAddrParameters.
func (*RoGroupAddrParameters) DeepCopyInto ¶
func (in *RoGroupAddrParameters) DeepCopyInto(out *RoGroupAddrParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoGroupInstancesInitParameters ¶ added in v0.8.0
type RoGroupInstancesInitParameters struct { }
func (*RoGroupInstancesInitParameters) DeepCopy ¶ added in v0.8.0
func (in *RoGroupInstancesInitParameters) DeepCopy() *RoGroupInstancesInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoGroupInstancesInitParameters.
func (*RoGroupInstancesInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *RoGroupInstancesInitParameters) DeepCopyInto(out *RoGroupInstancesInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoGroupInstancesObservation ¶
type RoGroupInstancesObservation struct { // ID of instance. InstanceID *string `json:"instanceId,omitempty" tf:"instance_id,omitempty"` // Name of instance. InstanceName *string `json:"instanceName,omitempty" tf:"instance_name,omitempty"` }
func (*RoGroupInstancesObservation) DeepCopy ¶
func (in *RoGroupInstancesObservation) DeepCopy() *RoGroupInstancesObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoGroupInstancesObservation.
func (*RoGroupInstancesObservation) DeepCopyInto ¶
func (in *RoGroupInstancesObservation) DeepCopyInto(out *RoGroupInstancesObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoGroupInstancesParameters ¶
type RoGroupInstancesParameters struct { }
func (*RoGroupInstancesParameters) DeepCopy ¶
func (in *RoGroupInstancesParameters) DeepCopy() *RoGroupInstancesParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoGroupInstancesParameters.
func (*RoGroupInstancesParameters) DeepCopyInto ¶
func (in *RoGroupInstancesParameters) DeepCopyInto(out *RoGroupInstancesParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RwGroupAddrInitParameters ¶ added in v0.8.0
type RwGroupAddrInitParameters struct { }
func (*RwGroupAddrInitParameters) DeepCopy ¶ added in v0.8.0
func (in *RwGroupAddrInitParameters) DeepCopy() *RwGroupAddrInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RwGroupAddrInitParameters.
func (*RwGroupAddrInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *RwGroupAddrInitParameters) DeepCopyInto(out *RwGroupAddrInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RwGroupAddrObservation ¶
type RwGroupAddrObservation struct { // IP address for readonly connection. IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // Port of CynosDB cluster. Port *float64 `json:"port,omitempty" tf:"port,omitempty"` }
func (*RwGroupAddrObservation) DeepCopy ¶
func (in *RwGroupAddrObservation) DeepCopy() *RwGroupAddrObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RwGroupAddrObservation.
func (*RwGroupAddrObservation) DeepCopyInto ¶
func (in *RwGroupAddrObservation) DeepCopyInto(out *RwGroupAddrObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RwGroupAddrParameters ¶
type RwGroupAddrParameters struct { }
func (*RwGroupAddrParameters) DeepCopy ¶
func (in *RwGroupAddrParameters) DeepCopy() *RwGroupAddrParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RwGroupAddrParameters.
func (*RwGroupAddrParameters) DeepCopyInto ¶
func (in *RwGroupAddrParameters) DeepCopyInto(out *RwGroupAddrParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RwGroupInstancesInitParameters ¶ added in v0.8.0
type RwGroupInstancesInitParameters struct { }
func (*RwGroupInstancesInitParameters) DeepCopy ¶ added in v0.8.0
func (in *RwGroupInstancesInitParameters) DeepCopy() *RwGroupInstancesInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RwGroupInstancesInitParameters.
func (*RwGroupInstancesInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *RwGroupInstancesInitParameters) DeepCopyInto(out *RwGroupInstancesInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RwGroupInstancesObservation ¶
type RwGroupInstancesObservation struct { // ID of instance. InstanceID *string `json:"instanceId,omitempty" tf:"instance_id,omitempty"` // Name of instance. InstanceName *string `json:"instanceName,omitempty" tf:"instance_name,omitempty"` }
func (*RwGroupInstancesObservation) DeepCopy ¶
func (in *RwGroupInstancesObservation) DeepCopy() *RwGroupInstancesObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RwGroupInstancesObservation.
func (*RwGroupInstancesObservation) DeepCopyInto ¶
func (in *RwGroupInstancesObservation) DeepCopyInto(out *RwGroupInstancesObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RwGroupInstancesParameters ¶
type RwGroupInstancesParameters struct { }
func (*RwGroupInstancesParameters) DeepCopy ¶
func (in *RwGroupInstancesParameters) DeepCopy() *RwGroupInstancesParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RwGroupInstancesParameters.
func (*RwGroupInstancesParameters) DeepCopyInto ¶
func (in *RwGroupInstancesParameters) DeepCopyInto(out *RwGroupInstancesParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.