v1alpha1

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "postgresql.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 (
	ReadonlyAttachment_Kind             = "ReadonlyAttachment"
	ReadonlyAttachment_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ReadonlyAttachment_Kind}.String()
	ReadonlyAttachment_KindAPIVersion   = ReadonlyAttachment_Kind + "." + CRDGroupVersion.String()
	ReadonlyAttachment_GroupVersionKind = CRDGroupVersion.WithKind(ReadonlyAttachment_Kind)
)

Repository type metadata.

View Source
var (
	ReadonlyGroup_Kind             = "ReadonlyGroup"
	ReadonlyGroup_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ReadonlyGroup_Kind}.String()
	ReadonlyGroup_KindAPIVersion   = ReadonlyGroup_Kind + "." + CRDGroupVersion.String()
	ReadonlyGroup_GroupVersionKind = CRDGroupVersion.WithKind(ReadonlyGroup_Kind)
)

Repository type metadata.

View Source
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 BackupPlanInitParameters added in v0.8.0

type BackupPlanInitParameters struct {

	// List of backup period per week, available values: monday, tuesday, wednesday, thursday, friday, saturday, sunday. NOTE: At least specify two days.
	// List of backup period per week, available values: `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. NOTE: At least specify two days.
	BackupPeriod []*string `json:"backupPeriod,omitempty" tf:"backup_period,omitempty"`

	// Specify days of the retention.
	// Specify days of the retention.
	BaseBackupRetentionPeriod *float64 `json:"baseBackupRetentionPeriod,omitempty" tf:"base_backup_retention_period,omitempty"`

	// Specify latest backup start time, format hh:mm:ss.
	// Specify latest backup start time, format `hh:mm:ss`.
	MaxBackupStartTime *string `json:"maxBackupStartTime,omitempty" tf:"max_backup_start_time,omitempty"`

	// Specify earliest backup start time, format hh:mm:ss.
	// Specify earliest backup start time, format `hh:mm:ss`.
	MinBackupStartTime *string `json:"minBackupStartTime,omitempty" tf:"min_backup_start_time,omitempty"`

	// If it is in monthly dimension, the format is numeric characters, such as ["1","2"].
	// If it is in monthly dimension, the format is numeric characters, such as ["1","2"].
	MonthlyBackupPeriod []*string `json:"monthlyBackupPeriod,omitempty" tf:"monthly_backup_period,omitempty"`

	// Specify days of the retention.
	// Specify days of the retention.
	MonthlyBackupRetentionPeriod *float64 `json:"monthlyBackupRetentionPeriod,omitempty" tf:"monthly_backup_retention_period,omitempty"`
}

func (*BackupPlanInitParameters) DeepCopy added in v0.8.0

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

func (*BackupPlanInitParameters) DeepCopyInto added in v0.8.0

func (in *BackupPlanInitParameters) DeepCopyInto(out *BackupPlanInitParameters)

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

type BackupPlanObservation

type BackupPlanObservation struct {

	// List of backup period per week, available values: monday, tuesday, wednesday, thursday, friday, saturday, sunday. NOTE: At least specify two days.
	// List of backup period per week, available values: `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. NOTE: At least specify two days.
	BackupPeriod []*string `json:"backupPeriod,omitempty" tf:"backup_period,omitempty"`

	// Specify days of the retention.
	// Specify days of the retention.
	BaseBackupRetentionPeriod *float64 `json:"baseBackupRetentionPeriod,omitempty" tf:"base_backup_retention_period,omitempty"`

	// Specify latest backup start time, format hh:mm:ss.
	// Specify latest backup start time, format `hh:mm:ss`.
	MaxBackupStartTime *string `json:"maxBackupStartTime,omitempty" tf:"max_backup_start_time,omitempty"`

	// Specify earliest backup start time, format hh:mm:ss.
	// Specify earliest backup start time, format `hh:mm:ss`.
	MinBackupStartTime *string `json:"minBackupStartTime,omitempty" tf:"min_backup_start_time,omitempty"`

	// If it is in monthly dimension, the format is numeric characters, such as ["1","2"].
	// If it is in monthly dimension, the format is numeric characters, such as ["1","2"].
	MonthlyBackupPeriod []*string `json:"monthlyBackupPeriod,omitempty" tf:"monthly_backup_period,omitempty"`

	// Specify days of the retention.
	// Specify days of the retention.
	MonthlyBackupRetentionPeriod *float64 `json:"monthlyBackupRetentionPeriod,omitempty" tf:"monthly_backup_retention_period,omitempty"`

	// ID of the resource.
	// Monthly plan id.
	MonthlyPlanID *string `json:"monthlyPlanId,omitempty" tf:"monthly_plan_id,omitempty"`
}

func (*BackupPlanObservation) DeepCopy

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

func (*BackupPlanObservation) DeepCopyInto

func (in *BackupPlanObservation) DeepCopyInto(out *BackupPlanObservation)

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

type BackupPlanParameters

type BackupPlanParameters struct {

	// List of backup period per week, available values: monday, tuesday, wednesday, thursday, friday, saturday, sunday. NOTE: At least specify two days.
	// List of backup period per week, available values: `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`. NOTE: At least specify two days.
	// +kubebuilder:validation:Optional
	BackupPeriod []*string `json:"backupPeriod,omitempty" tf:"backup_period,omitempty"`

	// Specify days of the retention.
	// Specify days of the retention.
	// +kubebuilder:validation:Optional
	BaseBackupRetentionPeriod *float64 `json:"baseBackupRetentionPeriod,omitempty" tf:"base_backup_retention_period,omitempty"`

	// Specify latest backup start time, format hh:mm:ss.
	// Specify latest backup start time, format `hh:mm:ss`.
	// +kubebuilder:validation:Optional
	MaxBackupStartTime *string `json:"maxBackupStartTime,omitempty" tf:"max_backup_start_time,omitempty"`

	// Specify earliest backup start time, format hh:mm:ss.
	// Specify earliest backup start time, format `hh:mm:ss`.
	// +kubebuilder:validation:Optional
	MinBackupStartTime *string `json:"minBackupStartTime,omitempty" tf:"min_backup_start_time,omitempty"`

	// If it is in monthly dimension, the format is numeric characters, such as ["1","2"].
	// If it is in monthly dimension, the format is numeric characters, such as ["1","2"].
	// +kubebuilder:validation:Optional
	MonthlyBackupPeriod []*string `json:"monthlyBackupPeriod,omitempty" tf:"monthly_backup_period,omitempty"`

	// Specify days of the retention.
	// Specify days of the retention.
	// +kubebuilder:validation:Optional
	MonthlyBackupRetentionPeriod *float64 `json:"monthlyBackupRetentionPeriod,omitempty" tf:"monthly_backup_retention_period,omitempty"`
}

func (*BackupPlanParameters) DeepCopy

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

func (*BackupPlanParameters) DeepCopyInto

func (in *BackupPlanParameters) DeepCopyInto(out *BackupPlanParameters)

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

type DBNodeSetInitParameters added in v0.8.0

type DBNodeSetInitParameters struct {

	// Dedicated cluster ID.
	// Dedicated cluster ID.
	DedicatedClusterID *string `json:"dedicatedClusterId,omitempty" tf:"dedicated_cluster_id,omitempty"`

	// Indicates node type, available values:Primary, Standby. Default: Standby.
	// Indicates node type, available values:`Primary`, `Standby`. Default: `Standby`.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// Indicates the node available zone.
	// Indicates the node available zone.
	Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}

func (*DBNodeSetInitParameters) DeepCopy added in v0.8.0

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

func (*DBNodeSetInitParameters) DeepCopyInto added in v0.8.0

func (in *DBNodeSetInitParameters) DeepCopyInto(out *DBNodeSetInitParameters)

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

type DBNodeSetObservation

type DBNodeSetObservation struct {

	// Dedicated cluster ID.
	// Dedicated cluster ID.
	DedicatedClusterID *string `json:"dedicatedClusterId,omitempty" tf:"dedicated_cluster_id,omitempty"`

	// Indicates node type, available values:Primary, Standby. Default: Standby.
	// Indicates node type, available values:`Primary`, `Standby`. Default: `Standby`.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// Indicates the node available zone.
	// Indicates the node available zone.
	Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}

func (*DBNodeSetObservation) DeepCopy

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

func (*DBNodeSetObservation) DeepCopyInto

func (in *DBNodeSetObservation) DeepCopyInto(out *DBNodeSetObservation)

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

type DBNodeSetParameters

type DBNodeSetParameters struct {

	// Dedicated cluster ID.
	// Dedicated cluster ID.
	// +kubebuilder:validation:Optional
	DedicatedClusterID *string `json:"dedicatedClusterId,omitempty" tf:"dedicated_cluster_id,omitempty"`

	// Indicates node type, available values:Primary, Standby. Default: Standby.
	// Indicates node type, available values:`Primary`, `Standby`. Default: `Standby`.
	// +kubebuilder:validation:Optional
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// Indicates the node available zone.
	// Indicates the node available zone.
	// +kubebuilder:validation:Optional
	Zone *string `json:"zone" tf:"zone,omitempty"`
}

func (*DBNodeSetParameters) DeepCopy

func (in *DBNodeSetParameters) DeepCopy() *DBNodeSetParameters

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

func (*DBNodeSetParameters) DeepCopyInto

func (in *DBNodeSetParameters) DeepCopyInto(out *DBNodeSetParameters)

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

type Instance

type Instance 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.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.memory) || (has(self.initProvider) && has(self.initProvider.memory))",message="spec.forProvider.memory is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rootPasswordSecretRef)",message="spec.forProvider.rootPasswordSecretRef is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storage) || (has(self.initProvider) && has(self.initProvider.storage))",message="spec.forProvider.storage is a required parameter"
	Spec   InstanceSpec   `json:"spec"`
	Status InstanceStatus `json:"status,omitempty"`
}

Instance is the Schema for the Instances API. Use this resource to create postgresql 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 (*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) GetInitParameters added in v0.8.0

func (tr *Instance) GetInitParameters() (map[string]any, error)

GetInitParameters of this Instance

func (*Instance) GetManagementPolicies added in v0.8.0

func (mg *Instance) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Instance.

func (*Instance) GetMergedParameters added in v0.8.1

func (tr *Instance) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Instance

func (*Instance) GetObservation

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

GetObservation of this Instance

func (*Instance) GetParameters

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

GetParameters of this Instance

func (*Instance) GetProviderConfigReference

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

GetProviderConfigReference of this Instance.

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) Hub added in v0.8.1

func (tr *Instance) Hub()

Hub marks this type as a conversion hub.

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) SetManagementPolicies added in v0.8.0

func (mg *Instance) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Instance.

func (*Instance) SetObservation

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

SetObservation for this Instance

func (*Instance) SetParameters

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

SetParameters for this Instance

func (*Instance) SetProviderConfigReference

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

SetProviderConfigReference of this Instance.

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 InstanceInitParameters added in v0.8.0

type InstanceInitParameters struct {

	// Auto renew flag, 1 for enabled. NOTES: Only support prepaid instance.
	// Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// Whether to use voucher, 1 for enabled.
	// Whether to use voucher, `1` for enabled.
	AutoVoucher *float64 `json:"autoVoucher,omitempty" tf:"auto_voucher,omitempty"`

	// Availability zone. NOTE: This field could not be modified, please use db_node_set instead of modification. The changes on this field will be suppressed when using the db_node_set.
	// Availability zone. NOTE: This field could not be modified, please use `db_node_set` instead of modification. The changes on this field will be suppressed when using the `db_node_set`.
	AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`

	// Specify DB backup plan.
	// Specify DB backup plan.
	BackupPlan []BackupPlanInitParameters `json:"backupPlan,omitempty" tf:"backup_plan,omitempty"`

	// Number of CPU cores. Allowed value must be equal cpu that data source tencentcloud_postgresql_specinfos provides.
	// Number of CPU cores. Allowed value must be equal `cpu` that data source `tencentcloud_postgresql_specinfos` provides.
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// Pay type of the postgresql instance. Values POSTPAID_BY_HOUR (Default), PREPAID. It only support to update the type from POSTPAID_BY_HOUR to PREPAID.
	// Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It only support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"`

	// Charset of the root account. Valid values are UTF8,LATIN1.
	// Charset of the root account. Valid values are `UTF8`,`LATIN1`.
	Charset *string `json:"charset,omitempty" tf:"charset,omitempty"`

	// PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
	// PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
	DBKernelVersion *string `json:"dbKernelVersion,omitempty" tf:"db_kernel_version,omitempty"`

	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	DBMajorVersion *string `json:"dbMajorVersion,omitempty" tf:"db_major_version,omitempty"`

	// Specify instance node info for disaster migration.
	// Specify instance node info for disaster migration.
	DBNodeSet []DBNodeSetInitParameters `json:"dbNodeSet,omitempty" tf:"db_node_set,omitempty"`

	// Whether to enable instance deletion protection. Default: false.
	// Whether to enable instance deletion protection. Default: false.
	DeleteProtection *bool `json:"deleteProtection,omitempty" tf:"delete_protection,omitempty"`

	// Version of the postgresql database engine. Valid values: 10.4, 10.17, 10.23, 11.8, 11.12, 11.22, 12.4, 12.7, 12.18, 13.3, 14.2, 14.11, 15.1, 16.0.
	// Version of the postgresql database engine. Valid values: `10.4`, `10.17`, `10.23`, `11.8`, `11.12`, `11.22`, `12.4`, `12.7`, `12.18`, `13.3`, `14.2`, `14.11`, `15.1`, `16.0`.
	EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`

	// KeyId of the custom key.
	// KeyId of the custom key.
	KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`

	// Region of the custom key.
	// Region of the custom key.
	KMSRegion *string `json:"kmsRegion,omitempty" tf:"kms_region,omitempty"`

	// max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
	// max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
	MaxStandbyArchiveDelay *float64 `json:"maxStandbyArchiveDelay,omitempty" tf:"max_standby_archive_delay,omitempty"`

	// max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
	// max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
	MaxStandbyStreamingDelay *float64 `json:"maxStandbyStreamingDelay,omitempty" tf:"max_standby_streaming_delay,omitempty"`

	// Memory size(in GB). Allowed value must be larger than memory that data source tencentcloud_postgresql_specinfos provides.
	// Memory size(in GB). Allowed value must be larger than `memory` that data source `tencentcloud_postgresql_specinfos` provides.
	Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"`

	// Name of the postgresql instance.
	// Name of the postgresql instance.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Whether to support data transparent encryption, 1: yes, 0: no (default).
	// Whether to support data transparent encryption, 1: yes, 0: no (default).
	NeedSupportTde *float64 `json:"needSupportTde,omitempty" tf:"need_support_tde,omitempty"`

	// Specify Prepaid period in month. Default 1. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. This field is valid only when creating a PREPAID type instance, or updating the charge type from POSTPAID_BY_HOUR to PREPAID.
	// Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This field is valid only when creating a `PREPAID` type instance, or updating the charge type from `POSTPAID_BY_HOUR` to `PREPAID`.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Project id, default value is 0.
	// Project id, default value is `0`.
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Indicates whether to enable the access to an instance from public network or not.
	// Indicates whether to enable the access to an instance from public network or not.
	PublicAccessSwitch *bool `json:"publicAccessSwitch,omitempty" tf:"public_access_switch,omitempty"`

	// Instance root account name. This parameter is optional, Default value is root.
	// Instance root account name. This parameter is optional, Default value is `root`.
	RootUser *string `json:"rootUser,omitempty" tf:"root_user,omitempty"`

	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// +listType=set
	SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`

	// Volume size(in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of storage_min and storage_max which data source tencentcloud_postgresql_specinfos provides.
	// Volume size(in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of `storage_min` and `storage_max` which data source `tencentcloud_postgresql_specinfos` provides.
	Storage *float64 `json:"storage,omitempty" tf:"storage,omitempty"`

	// ID of subnet.
	// ID of subnet.
	// +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 available tags within this postgresql.
	// The available tags within this postgresql.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// ID of VPC.
	// ID of 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:"-"`

	// Specify Voucher Ids if auto_voucher was 1, only support using 1 vouchers for now.
	// Specify Voucher Ids if `auto_voucher` was `1`, only support using 1 vouchers for now.
	VoucherIds []*string `json:"voucherIds,omitempty" tf:"voucher_ids,omitempty"`

	// Switch time after instance configurations are modified. 0: Switch immediately; 2: Switch during maintenance time window. Default: 0. Note: This only takes effect when updating the memory, storage, cpu, db_node_set, db_kernel_version fields.
	// Switch time after instance configurations are modified. `0`: Switch immediately; `2`: Switch during maintenance time window. Default: `0`. Note: This only takes effect when updating the `memory`, `storage`, `cpu`, `db_node_set`, `db_kernel_version` fields.
	WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,omitempty"`
}

func (*InstanceInitParameters) DeepCopy added in v0.8.0

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

func (*InstanceInitParameters) DeepCopyInto added in v0.8.0

func (in *InstanceInitParameters) DeepCopyInto(out *InstanceInitParameters)

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

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 {

	// Auto renew flag, 1 for enabled. NOTES: Only support prepaid instance.
	// Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// Whether to use voucher, 1 for enabled.
	// Whether to use voucher, `1` for enabled.
	AutoVoucher *float64 `json:"autoVoucher,omitempty" tf:"auto_voucher,omitempty"`

	// Availability zone. NOTE: This field could not be modified, please use db_node_set instead of modification. The changes on this field will be suppressed when using the db_node_set.
	// Availability zone. NOTE: This field could not be modified, please use `db_node_set` instead of modification. The changes on this field will be suppressed when using the `db_node_set`.
	AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`

	// Specify DB backup plan.
	// Specify DB backup plan.
	BackupPlan []BackupPlanObservation `json:"backupPlan,omitempty" tf:"backup_plan,omitempty"`

	// Number of CPU cores. Allowed value must be equal cpu that data source tencentcloud_postgresql_specinfos provides.
	// Number of CPU cores. Allowed value must be equal `cpu` that data source `tencentcloud_postgresql_specinfos` provides.
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// Pay type of the postgresql instance. Values POSTPAID_BY_HOUR (Default), PREPAID. It only support to update the type from POSTPAID_BY_HOUR to PREPAID.
	// Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It only support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"`

	// Charset of the root account. Valid values are UTF8,LATIN1.
	// Charset of the root account. Valid values are `UTF8`,`LATIN1`.
	Charset *string `json:"charset,omitempty" tf:"charset,omitempty"`

	// Create time of the postgresql instance.
	// Create time of the postgresql instance.
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

	// PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
	// PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
	DBKernelVersion *string `json:"dbKernelVersion,omitempty" tf:"db_kernel_version,omitempty"`

	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	DBMajorVersion *string `json:"dbMajorVersion,omitempty" tf:"db_major_version,omitempty"`

	// db_major_vesion will be deprecated, use db_major_version instead. PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	DBMajorVesion *string `json:"dbMajorVesion,omitempty" tf:"db_major_vesion,omitempty"`

	// Specify instance node info for disaster migration.
	// Specify instance node info for disaster migration.
	DBNodeSet []DBNodeSetObservation `json:"dbNodeSet,omitempty" tf:"db_node_set,omitempty"`

	// Whether to enable instance deletion protection. Default: false.
	// Whether to enable instance deletion protection. Default: false.
	DeleteProtection *bool `json:"deleteProtection,omitempty" tf:"delete_protection,omitempty"`

	// Version of the postgresql database engine. Valid values: 10.4, 10.17, 10.23, 11.8, 11.12, 11.22, 12.4, 12.7, 12.18, 13.3, 14.2, 14.11, 15.1, 16.0.
	// Version of the postgresql database engine. Valid values: `10.4`, `10.17`, `10.23`, `11.8`, `11.12`, `11.22`, `12.4`, `12.7`, `12.18`, `13.3`, `14.2`, `14.11`, `15.1`, `16.0`.
	EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`

	// ID of the resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// KeyId of the custom key.
	// KeyId of the custom key.
	KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`

	// Region of the custom key.
	// Region of the custom key.
	KMSRegion *string `json:"kmsRegion,omitempty" tf:"kms_region,omitempty"`

	// max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
	// max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
	MaxStandbyArchiveDelay *float64 `json:"maxStandbyArchiveDelay,omitempty" tf:"max_standby_archive_delay,omitempty"`

	// max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
	// max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
	MaxStandbyStreamingDelay *float64 `json:"maxStandbyStreamingDelay,omitempty" tf:"max_standby_streaming_delay,omitempty"`

	// Memory size(in GB). Allowed value must be larger than memory that data source tencentcloud_postgresql_specinfos provides.
	// Memory size(in GB). Allowed value must be larger than `memory` that data source `tencentcloud_postgresql_specinfos` provides.
	Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"`

	// Name of the postgresql instance.
	// Name of the postgresql instance.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Whether to support data transparent encryption, 1: yes, 0: no (default).
	// Whether to support data transparent encryption, 1: yes, 0: no (default).
	NeedSupportTde *float64 `json:"needSupportTde,omitempty" tf:"need_support_tde,omitempty"`

	// Specify Prepaid period in month. Default 1. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. This field is valid only when creating a PREPAID type instance, or updating the charge type from POSTPAID_BY_HOUR to PREPAID.
	// Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This field is valid only when creating a `PREPAID` type instance, or updating the charge type from `POSTPAID_BY_HOUR` to `PREPAID`.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// IP for private access.
	// IP for private access.
	PrivateAccessIP *string `json:"privateAccessIp,omitempty" tf:"private_access_ip,omitempty"`

	// Port for private access.
	// Port for private access.
	PrivateAccessPort *float64 `json:"privateAccessPort,omitempty" tf:"private_access_port,omitempty"`

	// Project id, default value is 0.
	// Project id, default value is `0`.
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Host for public access.
	// Host for public access.
	PublicAccessHost *string `json:"publicAccessHost,omitempty" tf:"public_access_host,omitempty"`

	// Port for public access.
	// Port for public access.
	PublicAccessPort *float64 `json:"publicAccessPort,omitempty" tf:"public_access_port,omitempty"`

	// Indicates whether to enable the access to an instance from public network or not.
	// Indicates whether to enable the access to an instance from public network or not.
	PublicAccessSwitch *bool `json:"publicAccessSwitch,omitempty" tf:"public_access_switch,omitempty"`

	// Instance root account name. This parameter is optional, Default value is root.
	// Instance root account name. This parameter is optional, Default value is `root`.
	RootUser *string `json:"rootUser,omitempty" tf:"root_user,omitempty"`

	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// +listType=set
	SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`

	// Volume size(in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of storage_min and storage_max which data source tencentcloud_postgresql_specinfos provides.
	// Volume size(in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of `storage_min` and `storage_max` which data source `tencentcloud_postgresql_specinfos` provides.
	Storage *float64 `json:"storage,omitempty" tf:"storage,omitempty"`

	// ID of subnet.
	// ID of subnet.
	SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`

	// The available tags within this postgresql.
	// The available tags within this postgresql.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Uid of the postgresql instance.
	// Uid of the postgresql instance.
	UID *float64 `json:"uid,omitempty" tf:"uid,omitempty"`

	// ID of VPC.
	// ID of VPC.
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`

	// Specify Voucher Ids if auto_voucher was 1, only support using 1 vouchers for now.
	// Specify Voucher Ids if `auto_voucher` was `1`, only support using 1 vouchers for now.
	VoucherIds []*string `json:"voucherIds,omitempty" tf:"voucher_ids,omitempty"`

	// Switch time after instance configurations are modified. 0: Switch immediately; 2: Switch during maintenance time window. Default: 0. Note: This only takes effect when updating the memory, storage, cpu, db_node_set, db_kernel_version fields.
	// Switch time after instance configurations are modified. `0`: Switch immediately; `2`: Switch during maintenance time window. Default: `0`. Note: This only takes effect when updating the `memory`, `storage`, `cpu`, `db_node_set`, `db_kernel_version` fields.
	WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,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, 1 for enabled. NOTES: Only support prepaid instance.
	// Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
	// +kubebuilder:validation:Optional
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// Whether to use voucher, 1 for enabled.
	// Whether to use voucher, `1` for enabled.
	// +kubebuilder:validation:Optional
	AutoVoucher *float64 `json:"autoVoucher,omitempty" tf:"auto_voucher,omitempty"`

	// Availability zone. NOTE: This field could not be modified, please use db_node_set instead of modification. The changes on this field will be suppressed when using the db_node_set.
	// Availability zone. NOTE: This field could not be modified, please use `db_node_set` instead of modification. The changes on this field will be suppressed when using the `db_node_set`.
	// +kubebuilder:validation:Optional
	AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`

	// Specify DB backup plan.
	// Specify DB backup plan.
	// +kubebuilder:validation:Optional
	BackupPlan []BackupPlanParameters `json:"backupPlan,omitempty" tf:"backup_plan,omitempty"`

	// Number of CPU cores. Allowed value must be equal cpu that data source tencentcloud_postgresql_specinfos provides.
	// Number of CPU cores. Allowed value must be equal `cpu` that data source `tencentcloud_postgresql_specinfos` provides.
	// +kubebuilder:validation:Optional
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// Pay type of the postgresql instance. Values POSTPAID_BY_HOUR (Default), PREPAID. It only support to update the type from POSTPAID_BY_HOUR to PREPAID.
	// Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It only support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.
	// +kubebuilder:validation:Optional
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"`

	// Charset of the root account. Valid values are UTF8,LATIN1.
	// Charset of the root account. Valid values are `UTF8`,`LATIN1`.
	// +kubebuilder:validation:Optional
	Charset *string `json:"charset,omitempty" tf:"charset,omitempty"`

	// PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
	// PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
	// +kubebuilder:validation:Optional
	DBKernelVersion *string `json:"dbKernelVersion,omitempty" tf:"db_kernel_version,omitempty"`

	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	// PostgreSQL major version number. Valid values: 10, 11, 12, 13, 14, 15, 16. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
	// +kubebuilder:validation:Optional
	DBMajorVersion *string `json:"dbMajorVersion,omitempty" tf:"db_major_version,omitempty"`

	// Specify instance node info for disaster migration.
	// Specify instance node info for disaster migration.
	// +kubebuilder:validation:Optional
	DBNodeSet []DBNodeSetParameters `json:"dbNodeSet,omitempty" tf:"db_node_set,omitempty"`

	// Whether to enable instance deletion protection. Default: false.
	// Whether to enable instance deletion protection. Default: false.
	// +kubebuilder:validation:Optional
	DeleteProtection *bool `json:"deleteProtection,omitempty" tf:"delete_protection,omitempty"`

	// Version of the postgresql database engine. Valid values: 10.4, 10.17, 10.23, 11.8, 11.12, 11.22, 12.4, 12.7, 12.18, 13.3, 14.2, 14.11, 15.1, 16.0.
	// Version of the postgresql database engine. Valid values: `10.4`, `10.17`, `10.23`, `11.8`, `11.12`, `11.22`, `12.4`, `12.7`, `12.18`, `13.3`, `14.2`, `14.11`, `15.1`, `16.0`.
	// +kubebuilder:validation:Optional
	EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`

	// KeyId of the custom key.
	// KeyId of the custom key.
	// +kubebuilder:validation:Optional
	KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`

	// Region of the custom key.
	// Region of the custom key.
	// +kubebuilder:validation:Optional
	KMSRegion *string `json:"kmsRegion,omitempty" tf:"kms_region,omitempty"`

	// max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
	// max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
	// +kubebuilder:validation:Optional
	MaxStandbyArchiveDelay *float64 `json:"maxStandbyArchiveDelay,omitempty" tf:"max_standby_archive_delay,omitempty"`

	// max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
	// max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
	// +kubebuilder:validation:Optional
	MaxStandbyStreamingDelay *float64 `json:"maxStandbyStreamingDelay,omitempty" tf:"max_standby_streaming_delay,omitempty"`

	// Memory size(in GB). Allowed value must be larger than memory that data source tencentcloud_postgresql_specinfos provides.
	// Memory size(in GB). Allowed value must be larger than `memory` that data source `tencentcloud_postgresql_specinfos` provides.
	// +kubebuilder:validation:Optional
	Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"`

	// Name of the postgresql instance.
	// Name of the postgresql instance.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Whether to support data transparent encryption, 1: yes, 0: no (default).
	// Whether to support data transparent encryption, 1: yes, 0: no (default).
	// +kubebuilder:validation:Optional
	NeedSupportTde *float64 `json:"needSupportTde,omitempty" tf:"need_support_tde,omitempty"`

	// Specify Prepaid period in month. Default 1. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. This field is valid only when creating a PREPAID type instance, or updating the charge type from POSTPAID_BY_HOUR to PREPAID.
	// Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This field is valid only when creating a `PREPAID` type instance, or updating the charge type from `POSTPAID_BY_HOUR` to `PREPAID`.
	// +kubebuilder:validation:Optional
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Project id, default value is 0.
	// Project id, default value is `0`.
	// +kubebuilder:validation:Optional
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Indicates whether to enable the access to an instance from public network or not.
	// Indicates whether to enable the access to an instance from public network or not.
	// +kubebuilder:validation:Optional
	PublicAccessSwitch *bool `json:"publicAccessSwitch,omitempty" tf:"public_access_switch,omitempty"`

	// Password of root account. This parameter can be specified when you purchase master instances, but it should be ignored when you purchase read-only instances or disaster recovery instances.
	// Password of root account. This parameter can be specified when you purchase master instances, but it should be ignored when you purchase read-only instances or disaster recovery instances.
	// +kubebuilder:validation:Optional
	RootPasswordSecretRef v1.SecretKeySelector `json:"rootPasswordSecretRef" tf:"-"`

	// Instance root account name. This parameter is optional, Default value is root.
	// Instance root account name. This parameter is optional, Default value is `root`.
	// +kubebuilder:validation:Optional
	RootUser *string `json:"rootUser,omitempty" tf:"root_user,omitempty"`

	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// +kubebuilder:validation:Optional
	// +listType=set
	SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`

	// Volume size(in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of storage_min and storage_max which data source tencentcloud_postgresql_specinfos provides.
	// Volume size(in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of `storage_min` and `storage_max` which data source `tencentcloud_postgresql_specinfos` provides.
	// +kubebuilder:validation:Optional
	Storage *float64 `json:"storage,omitempty" tf:"storage,omitempty"`

	// ID of subnet.
	// ID of subnet.
	// +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 available tags within this postgresql.
	// The available tags within this postgresql.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// ID of VPC.
	// ID of 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:"-"`

	// Specify Voucher Ids if auto_voucher was 1, only support using 1 vouchers for now.
	// Specify Voucher Ids if `auto_voucher` was `1`, only support using 1 vouchers for now.
	// +kubebuilder:validation:Optional
	VoucherIds []*string `json:"voucherIds,omitempty" tf:"voucher_ids,omitempty"`

	// Switch time after instance configurations are modified. 0: Switch immediately; 2: Switch during maintenance time window. Default: 0. Note: This only takes effect when updating the memory, storage, cpu, db_node_set, db_kernel_version fields.
	// Switch time after instance configurations are modified. `0`: Switch immediately; `2`: Switch during maintenance time window. Default: `0`. Note: This only takes effect when updating the `memory`, `storage`, `cpu`, `db_node_set`, `db_kernel_version` fields.
	// +kubebuilder:validation:Optional
	WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,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"`
	// 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 InstanceInitParameters `json:"initProvider,omitempty"`
}

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 NetInfoListInitParameters added in v0.8.0

type NetInfoListInitParameters struct {
}

func (*NetInfoListInitParameters) DeepCopy added in v0.8.0

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

func (*NetInfoListInitParameters) DeepCopyInto added in v0.8.0

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

type NetInfoListObservation added in v0.8.0

type NetInfoListObservation struct {

	// Ip address of the net info.
	IP *string `json:"ip,omitempty" tf:"ip,omitempty"`

	// Port of the net info.
	Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
}

func (*NetInfoListObservation) DeepCopy added in v0.8.0

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

func (*NetInfoListObservation) DeepCopyInto added in v0.8.0

func (in *NetInfoListObservation) DeepCopyInto(out *NetInfoListObservation)

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

type NetInfoListParameters added in v0.8.0

type NetInfoListParameters struct {
}

func (*NetInfoListParameters) DeepCopy added in v0.8.0

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

func (*NetInfoListParameters) DeepCopyInto added in v0.8.0

func (in *NetInfoListParameters) DeepCopyInto(out *NetInfoListParameters)

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

type ReadonlyAttachment

type ReadonlyAttachment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ReadonlyAttachmentSpec   `json:"spec"`
	Status            ReadonlyAttachmentStatus `json:"status,omitempty"`
}

ReadonlyAttachment is the Schema for the ReadonlyAttachments API. Use this resource to create postgresql readonly attachment. +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 (*ReadonlyAttachment) DeepCopy

func (in *ReadonlyAttachment) DeepCopy() *ReadonlyAttachment

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

func (*ReadonlyAttachment) DeepCopyInto

func (in *ReadonlyAttachment) DeepCopyInto(out *ReadonlyAttachment)

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

func (*ReadonlyAttachment) DeepCopyObject

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

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

func (*ReadonlyAttachment) GetCondition

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

GetCondition of this ReadonlyAttachment.

func (*ReadonlyAttachment) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ReadonlyAttachment

func (*ReadonlyAttachment) GetDeletionPolicy

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

GetDeletionPolicy of this ReadonlyAttachment.

func (*ReadonlyAttachment) GetID

func (tr *ReadonlyAttachment) GetID() string

GetID returns ID of underlying Terraform resource of this ReadonlyAttachment

func (*ReadonlyAttachment) GetInitParameters added in v0.8.0

func (tr *ReadonlyAttachment) GetInitParameters() (map[string]any, error)

GetInitParameters of this ReadonlyAttachment

func (*ReadonlyAttachment) GetManagementPolicies added in v0.8.0

func (mg *ReadonlyAttachment) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this ReadonlyAttachment.

func (*ReadonlyAttachment) GetMergedParameters added in v0.8.1

func (tr *ReadonlyAttachment) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this ReadonlyAttachment

func (*ReadonlyAttachment) GetObservation

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

GetObservation of this ReadonlyAttachment

func (*ReadonlyAttachment) GetParameters

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

GetParameters of this ReadonlyAttachment

func (*ReadonlyAttachment) GetProviderConfigReference

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

GetProviderConfigReference of this ReadonlyAttachment.

func (*ReadonlyAttachment) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ReadonlyAttachment.

func (*ReadonlyAttachment) GetTerraformResourceType

func (mg *ReadonlyAttachment) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ReadonlyAttachment

func (*ReadonlyAttachment) GetTerraformSchemaVersion

func (tr *ReadonlyAttachment) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ReadonlyAttachment) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ReadonlyAttachment.

func (*ReadonlyAttachment) Hub added in v0.8.1

func (tr *ReadonlyAttachment) Hub()

Hub marks this type as a conversion hub.

func (*ReadonlyAttachment) LateInitialize

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

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

func (*ReadonlyAttachment) ResolveReferences

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

ResolveReferences of this ReadonlyAttachment.

func (*ReadonlyAttachment) SetConditions

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

SetConditions of this ReadonlyAttachment.

func (*ReadonlyAttachment) SetDeletionPolicy

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

SetDeletionPolicy of this ReadonlyAttachment.

func (*ReadonlyAttachment) SetManagementPolicies added in v0.8.0

func (mg *ReadonlyAttachment) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this ReadonlyAttachment.

func (*ReadonlyAttachment) SetObservation

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

SetObservation for this ReadonlyAttachment

func (*ReadonlyAttachment) SetParameters

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

SetParameters for this ReadonlyAttachment

func (*ReadonlyAttachment) SetProviderConfigReference

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

SetProviderConfigReference of this ReadonlyAttachment.

func (*ReadonlyAttachment) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ReadonlyAttachment.

func (*ReadonlyAttachment) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ReadonlyAttachment.

type ReadonlyAttachmentInitParameters added in v0.8.0

type ReadonlyAttachmentInitParameters struct {

	// Read only instance ID.
	// Read only instance ID.
	// +crossplane:generate:reference:type=ReadonlyInstance
	DBInstanceID *string `json:"dbInstanceId,omitempty" tf:"db_instance_id,omitempty"`

	// Reference to a ReadonlyInstance to populate dbInstanceId.
	// +kubebuilder:validation:Optional
	DBInstanceIDRef *v1.Reference `json:"dbInstanceIdRef,omitempty" tf:"-"`

	// Selector for a ReadonlyInstance to populate dbInstanceId.
	// +kubebuilder:validation:Optional
	DBInstanceIDSelector *v1.Selector `json:"dbInstanceIdSelector,omitempty" tf:"-"`

	// Read only group ID.
	// Read only group ID.
	// +crossplane:generate:reference:type=ReadonlyGroup
	ReadOnlyGroupID *string `json:"readOnlyGroupId,omitempty" tf:"read_only_group_id,omitempty"`

	// Reference to a ReadonlyGroup to populate readOnlyGroupId.
	// +kubebuilder:validation:Optional
	ReadOnlyGroupIDRef *v1.Reference `json:"readOnlyGroupIdRef,omitempty" tf:"-"`

	// Selector for a ReadonlyGroup to populate readOnlyGroupId.
	// +kubebuilder:validation:Optional
	ReadOnlyGroupIDSelector *v1.Selector `json:"readOnlyGroupIdSelector,omitempty" tf:"-"`
}

func (*ReadonlyAttachmentInitParameters) DeepCopy added in v0.8.0

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

func (*ReadonlyAttachmentInitParameters) DeepCopyInto added in v0.8.0

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

type ReadonlyAttachmentList

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

ReadonlyAttachmentList contains a list of ReadonlyAttachments

func (*ReadonlyAttachmentList) DeepCopy

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

func (*ReadonlyAttachmentList) DeepCopyInto

func (in *ReadonlyAttachmentList) DeepCopyInto(out *ReadonlyAttachmentList)

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

func (*ReadonlyAttachmentList) DeepCopyObject

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

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

func (*ReadonlyAttachmentList) GetItems

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

GetItems of this ReadonlyAttachmentList.

type ReadonlyAttachmentObservation

type ReadonlyAttachmentObservation struct {

	// Read only instance ID.
	// Read only instance ID.
	DBInstanceID *string `json:"dbInstanceId,omitempty" tf:"db_instance_id,omitempty"`

	// ID of the resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Read only group ID.
	// Read only group ID.
	ReadOnlyGroupID *string `json:"readOnlyGroupId,omitempty" tf:"read_only_group_id,omitempty"`
}

func (*ReadonlyAttachmentObservation) DeepCopy

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

func (*ReadonlyAttachmentObservation) DeepCopyInto

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

type ReadonlyAttachmentParameters

type ReadonlyAttachmentParameters struct {

	// Read only instance ID.
	// Read only instance ID.
	// +crossplane:generate:reference:type=ReadonlyInstance
	// +kubebuilder:validation:Optional
	DBInstanceID *string `json:"dbInstanceId,omitempty" tf:"db_instance_id,omitempty"`

	// Reference to a ReadonlyInstance to populate dbInstanceId.
	// +kubebuilder:validation:Optional
	DBInstanceIDRef *v1.Reference `json:"dbInstanceIdRef,omitempty" tf:"-"`

	// Selector for a ReadonlyInstance to populate dbInstanceId.
	// +kubebuilder:validation:Optional
	DBInstanceIDSelector *v1.Selector `json:"dbInstanceIdSelector,omitempty" tf:"-"`

	// Read only group ID.
	// Read only group ID.
	// +crossplane:generate:reference:type=ReadonlyGroup
	// +kubebuilder:validation:Optional
	ReadOnlyGroupID *string `json:"readOnlyGroupId,omitempty" tf:"read_only_group_id,omitempty"`

	// Reference to a ReadonlyGroup to populate readOnlyGroupId.
	// +kubebuilder:validation:Optional
	ReadOnlyGroupIDRef *v1.Reference `json:"readOnlyGroupIdRef,omitempty" tf:"-"`

	// Selector for a ReadonlyGroup to populate readOnlyGroupId.
	// +kubebuilder:validation:Optional
	ReadOnlyGroupIDSelector *v1.Selector `json:"readOnlyGroupIdSelector,omitempty" tf:"-"`
}

func (*ReadonlyAttachmentParameters) DeepCopy

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

func (*ReadonlyAttachmentParameters) DeepCopyInto

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

type ReadonlyAttachmentSpec

type ReadonlyAttachmentSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ReadonlyAttachmentParameters `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 ReadonlyAttachmentInitParameters `json:"initProvider,omitempty"`
}

ReadonlyAttachmentSpec defines the desired state of ReadonlyAttachment

func (*ReadonlyAttachmentSpec) DeepCopy

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

func (*ReadonlyAttachmentSpec) DeepCopyInto

func (in *ReadonlyAttachmentSpec) DeepCopyInto(out *ReadonlyAttachmentSpec)

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

type ReadonlyAttachmentStatus

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

ReadonlyAttachmentStatus defines the observed state of ReadonlyAttachment.

func (*ReadonlyAttachmentStatus) DeepCopy

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

func (*ReadonlyAttachmentStatus) DeepCopyInto

func (in *ReadonlyAttachmentStatus) DeepCopyInto(out *ReadonlyAttachmentStatus)

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

type ReadonlyGroup

type ReadonlyGroup 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.masterDbInstanceId) || (has(self.initProvider) && has(self.initProvider.masterDbInstanceId))",message="spec.forProvider.masterDbInstanceId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.maxReplayLag) || (has(self.initProvider) && has(self.initProvider.maxReplayLag))",message="spec.forProvider.maxReplayLag is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.maxReplayLatency) || (has(self.initProvider) && has(self.initProvider.maxReplayLatency))",message="spec.forProvider.maxReplayLatency is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.minDelayEliminateReserve) || (has(self.initProvider) && has(self.initProvider.minDelayEliminateReserve))",message="spec.forProvider.minDelayEliminateReserve is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.projectId) || (has(self.initProvider) && has(self.initProvider.projectId))",message="spec.forProvider.projectId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replayLagEliminate) || (has(self.initProvider) && has(self.initProvider.replayLagEliminate))",message="spec.forProvider.replayLagEliminate is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replayLatencyEliminate) || (has(self.initProvider) && has(self.initProvider.replayLatencyEliminate))",message="spec.forProvider.replayLatencyEliminate is a required parameter"
	Spec   ReadonlyGroupSpec   `json:"spec"`
	Status ReadonlyGroupStatus `json:"status,omitempty"`
}

ReadonlyGroup is the Schema for the ReadonlyGroups API. Use this resource to create postgresql readonly group. +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 (*ReadonlyGroup) DeepCopy

func (in *ReadonlyGroup) DeepCopy() *ReadonlyGroup

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

func (*ReadonlyGroup) DeepCopyInto

func (in *ReadonlyGroup) DeepCopyInto(out *ReadonlyGroup)

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

func (*ReadonlyGroup) DeepCopyObject

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

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

func (*ReadonlyGroup) GetCondition

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

GetCondition of this ReadonlyGroup.

func (*ReadonlyGroup) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ReadonlyGroup

func (*ReadonlyGroup) GetDeletionPolicy

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

GetDeletionPolicy of this ReadonlyGroup.

func (*ReadonlyGroup) GetID

func (tr *ReadonlyGroup) GetID() string

GetID returns ID of underlying Terraform resource of this ReadonlyGroup

func (*ReadonlyGroup) GetInitParameters added in v0.8.0

func (tr *ReadonlyGroup) GetInitParameters() (map[string]any, error)

GetInitParameters of this ReadonlyGroup

func (*ReadonlyGroup) GetManagementPolicies added in v0.8.0

func (mg *ReadonlyGroup) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this ReadonlyGroup.

func (*ReadonlyGroup) GetMergedParameters added in v0.8.1

func (tr *ReadonlyGroup) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this ReadonlyGroup

func (*ReadonlyGroup) GetObservation

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

GetObservation of this ReadonlyGroup

func (*ReadonlyGroup) GetParameters

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

GetParameters of this ReadonlyGroup

func (*ReadonlyGroup) GetProviderConfigReference

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

GetProviderConfigReference of this ReadonlyGroup.

func (*ReadonlyGroup) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ReadonlyGroup.

func (*ReadonlyGroup) GetTerraformResourceType

func (mg *ReadonlyGroup) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ReadonlyGroup

func (*ReadonlyGroup) GetTerraformSchemaVersion

func (tr *ReadonlyGroup) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ReadonlyGroup) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ReadonlyGroup.

func (*ReadonlyGroup) Hub added in v0.8.1

func (tr *ReadonlyGroup) Hub()

Hub marks this type as a conversion hub.

func (*ReadonlyGroup) LateInitialize

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

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

func (*ReadonlyGroup) ResolveReferences

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

ResolveReferences of this ReadonlyGroup.

func (*ReadonlyGroup) SetConditions

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

SetConditions of this ReadonlyGroup.

func (*ReadonlyGroup) SetDeletionPolicy

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

SetDeletionPolicy of this ReadonlyGroup.

func (*ReadonlyGroup) SetManagementPolicies added in v0.8.0

func (mg *ReadonlyGroup) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this ReadonlyGroup.

func (*ReadonlyGroup) SetObservation

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

SetObservation for this ReadonlyGroup

func (*ReadonlyGroup) SetParameters

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

SetParameters for this ReadonlyGroup

func (*ReadonlyGroup) SetProviderConfigReference

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

SetProviderConfigReference of this ReadonlyGroup.

func (*ReadonlyGroup) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ReadonlyGroup.

func (*ReadonlyGroup) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ReadonlyGroup.

type ReadonlyGroupInitParameters added in v0.8.0

type ReadonlyGroupInitParameters struct {

	// Primary instance ID.
	// Primary instance ID.
	MasterDBInstanceID *string `json:"masterDbInstanceId,omitempty" tf:"master_db_instance_id,omitempty"`

	// Delay threshold in ms.
	// Delay threshold in ms.
	MaxReplayLag *float64 `json:"maxReplayLag,omitempty" tf:"max_replay_lag,omitempty"`

	// Delayed log size threshold in MB.
	// Delayed log size threshold in MB.
	MaxReplayLatency *float64 `json:"maxReplayLatency,omitempty" tf:"max_replay_latency,omitempty"`

	// The minimum number of read-only replicas that must be retained in an RO group.
	// The minimum number of read-only replicas that must be retained in an RO group.
	MinDelayEliminateReserve *float64 `json:"minDelayEliminateReserve,omitempty" tf:"min_delay_eliminate_reserve,omitempty"`

	// RO group name.
	// RO group name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Project ID.
	// Project ID.
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	ReplayLagEliminate *float64 `json:"replayLagEliminate,omitempty" tf:"replay_lag_eliminate,omitempty"`

	// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	ReplayLatencyEliminate *float64 `json:"replayLatencyEliminate,omitempty" tf:"replay_latency_eliminate,omitempty"`

	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// +listType=set
	SecurityGroupsIds []*string `json:"securityGroupsIds,omitempty" tf:"security_groups_ids,omitempty"`

	// VPC subnet ID.
	// VPC subnet ID.
	// +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:"-"`

	// VPC ID.
	// VPC ID.
	// +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 (*ReadonlyGroupInitParameters) DeepCopy added in v0.8.0

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

func (*ReadonlyGroupInitParameters) DeepCopyInto added in v0.8.0

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

type ReadonlyGroupList

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

ReadonlyGroupList contains a list of ReadonlyGroups

func (*ReadonlyGroupList) DeepCopy

func (in *ReadonlyGroupList) DeepCopy() *ReadonlyGroupList

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

func (*ReadonlyGroupList) DeepCopyInto

func (in *ReadonlyGroupList) DeepCopyInto(out *ReadonlyGroupList)

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

func (*ReadonlyGroupList) DeepCopyObject

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

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

func (*ReadonlyGroupList) GetItems

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

GetItems of this ReadonlyGroupList.

type ReadonlyGroupObservation

type ReadonlyGroupObservation struct {

	// Create time of the postgresql instance.
	// Create time of the postgresql instance.
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

	// ID of the resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Primary instance ID.
	// Primary instance ID.
	MasterDBInstanceID *string `json:"masterDbInstanceId,omitempty" tf:"master_db_instance_id,omitempty"`

	// Delay threshold in ms.
	// Delay threshold in ms.
	MaxReplayLag *float64 `json:"maxReplayLag,omitempty" tf:"max_replay_lag,omitempty"`

	// Delayed log size threshold in MB.
	// Delayed log size threshold in MB.
	MaxReplayLatency *float64 `json:"maxReplayLatency,omitempty" tf:"max_replay_latency,omitempty"`

	// The minimum number of read-only replicas that must be retained in an RO group.
	// The minimum number of read-only replicas that must be retained in an RO group.
	MinDelayEliminateReserve *float64 `json:"minDelayEliminateReserve,omitempty" tf:"min_delay_eliminate_reserve,omitempty"`

	// RO group name.
	// RO group name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// List of db instance net info.
	// List of db instance net info.
	NetInfoList []NetInfoListObservation `json:"netInfoList,omitempty" tf:"net_info_list,omitempty"`

	// Project ID.
	// Project ID.
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	ReplayLagEliminate *float64 `json:"replayLagEliminate,omitempty" tf:"replay_lag_eliminate,omitempty"`

	// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	ReplayLatencyEliminate *float64 `json:"replayLatencyEliminate,omitempty" tf:"replay_latency_eliminate,omitempty"`

	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// +listType=set
	SecurityGroupsIds []*string `json:"securityGroupsIds,omitempty" tf:"security_groups_ids,omitempty"`

	// VPC subnet ID.
	// VPC subnet ID.
	SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`

	// VPC ID.
	// VPC ID.
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
}

func (*ReadonlyGroupObservation) DeepCopy

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

func (*ReadonlyGroupObservation) DeepCopyInto

func (in *ReadonlyGroupObservation) DeepCopyInto(out *ReadonlyGroupObservation)

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

type ReadonlyGroupParameters

type ReadonlyGroupParameters struct {

	// Primary instance ID.
	// Primary instance ID.
	// +kubebuilder:validation:Optional
	MasterDBInstanceID *string `json:"masterDbInstanceId,omitempty" tf:"master_db_instance_id,omitempty"`

	// Delay threshold in ms.
	// Delay threshold in ms.
	// +kubebuilder:validation:Optional
	MaxReplayLag *float64 `json:"maxReplayLag,omitempty" tf:"max_replay_lag,omitempty"`

	// Delayed log size threshold in MB.
	// Delayed log size threshold in MB.
	// +kubebuilder:validation:Optional
	MaxReplayLatency *float64 `json:"maxReplayLatency,omitempty" tf:"max_replay_latency,omitempty"`

	// The minimum number of read-only replicas that must be retained in an RO group.
	// The minimum number of read-only replicas that must be retained in an RO group.
	// +kubebuilder:validation:Optional
	MinDelayEliminateReserve *float64 `json:"minDelayEliminateReserve,omitempty" tf:"min_delay_eliminate_reserve,omitempty"`

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

	// Project ID.
	// Project ID.
	// +kubebuilder:validation:Optional
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// +kubebuilder:validation:Optional
	ReplayLagEliminate *float64 `json:"replayLagEliminate,omitempty" tf:"replay_lag_eliminate,omitempty"`

	// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: 0 (no), 1 (yes).
	// +kubebuilder:validation:Optional
	ReplayLatencyEliminate *float64 `json:"replayLatencyEliminate,omitempty" tf:"replay_latency_eliminate,omitempty"`

	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
	// +kubebuilder:validation:Optional
	// +listType=set
	SecurityGroupsIds []*string `json:"securityGroupsIds,omitempty" tf:"security_groups_ids,omitempty"`

	// VPC subnet ID.
	// VPC subnet ID.
	// +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:"-"`

	// VPC ID.
	// VPC ID.
	// +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 (*ReadonlyGroupParameters) DeepCopy

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

func (*ReadonlyGroupParameters) DeepCopyInto

func (in *ReadonlyGroupParameters) DeepCopyInto(out *ReadonlyGroupParameters)

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

type ReadonlyGroupSpec

type ReadonlyGroupSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ReadonlyGroupParameters `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 ReadonlyGroupInitParameters `json:"initProvider,omitempty"`
}

ReadonlyGroupSpec defines the desired state of ReadonlyGroup

func (*ReadonlyGroupSpec) DeepCopy

func (in *ReadonlyGroupSpec) DeepCopy() *ReadonlyGroupSpec

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

func (*ReadonlyGroupSpec) DeepCopyInto

func (in *ReadonlyGroupSpec) DeepCopyInto(out *ReadonlyGroupSpec)

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

type ReadonlyGroupStatus

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

ReadonlyGroupStatus defines the observed state of ReadonlyGroup.

func (*ReadonlyGroupStatus) DeepCopy

func (in *ReadonlyGroupStatus) DeepCopy() *ReadonlyGroupStatus

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

func (*ReadonlyGroupStatus) DeepCopyInto

func (in *ReadonlyGroupStatus) DeepCopyInto(out *ReadonlyGroupStatus)

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.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.masterDbInstanceId) || (has(self.initProvider) && has(self.initProvider.masterDbInstanceId))",message="spec.forProvider.masterDbInstanceId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.memory) || (has(self.initProvider) && has(self.initProvider.memory))",message="spec.forProvider.memory is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.projectId) || (has(self.initProvider) && has(self.initProvider.projectId))",message="spec.forProvider.projectId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storage) || (has(self.initProvider) && has(self.initProvider.storage))",message="spec.forProvider.storage is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.zone) || (has(self.initProvider) && has(self.initProvider.zone))",message="spec.forProvider.zone is a required parameter"
	Spec   ReadonlyInstanceSpec   `json:"spec"`
	Status ReadonlyInstanceStatus `json:"status,omitempty"`
}

ReadonlyInstance is the Schema for the ReadonlyInstances API. Use this resource to create postgresql 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

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

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 {

	// Auto renew flag, 1 for enabled. NOTES: Only support prepaid instance.
	// Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// Whether to use voucher, 1 for enabled.
	// Whether to use voucher, `1` for enabled.
	AutoVoucher *float64 `json:"autoVoucher,omitempty" tf:"auto_voucher,omitempty"`

	// Number of CPU cores. Allowed value must be equal cpu that data source tencentcloud_postgresql_specinfos provides.
	// Number of CPU cores. Allowed value must be equal `cpu` that data source `tencentcloud_postgresql_specinfos` provides.
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// PostgreSQL kernel version, which must be the same as that of the primary instance.
	// PostgreSQL kernel version, which must be the same as that of the primary instance.
	DBVersion *string `json:"dbVersion,omitempty" tf:"db_version,omitempty"`

	// Dedicated cluster ID.
	// Dedicated cluster ID.
	DedicatedClusterID *string `json:"dedicatedClusterId,omitempty" tf:"dedicated_cluster_id,omitempty"`

	// instance billing mode. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay-as-you-go).
	// instance billing mode. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay-as-you-go).
	InstanceChargeType *string `json:"instanceChargeType,omitempty" tf:"instance_charge_type,omitempty"`

	// ID of the primary instance to which the read-only replica belongs.
	// ID of the primary instance to which the read-only replica belongs.
	MasterDBInstanceID *string `json:"masterDbInstanceId,omitempty" tf:"master_db_instance_id,omitempty"`

	// Memory size(in GB). Allowed value must be larger than memory that data source tencentcloud_postgresql_specinfos provides.
	// Memory size(in GB). Allowed value must be larger than `memory` that data source `tencentcloud_postgresql_specinfos` provides.
	Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"`

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

	// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no).
	// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no).
	NeedSupportIPv6 *float64 `json:"needSupportIpv6,omitempty" tf:"need_support_ipv6,omitempty"`

	// Specify Prepaid period in month. Default 1. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	// Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Project ID.
	// Project ID.
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// RO group ID.
	// RO group ID.
	ReadOnlyGroupID *string `json:"readOnlyGroupId,omitempty" tf:"read_only_group_id,omitempty"`

	// ID of security group.
	// ID of security group.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.SecurityGroup
	// +listType=set
	SecurityGroupsIds []*string `json:"securityGroupsIds,omitempty" tf:"security_groups_ids,omitempty"`

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

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

	// Instance storage capacity in GB.
	// Instance storage capacity in GB.
	Storage *float64 `json:"storage,omitempty" tf:"storage,omitempty"`

	// VPC subnet ID.
	// VPC subnet ID.
	// +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:"-"`

	// VPC ID.
	// VPC ID.
	// +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:"-"`

	// Specify Voucher Ids if auto_voucher was 1, only support using 1 vouchers for now.
	// Specify Voucher Ids if `auto_voucher` was `1`, only support using 1 vouchers for now.
	VoucherIds []*string `json:"voucherIds,omitempty" tf:"voucher_ids,omitempty"`

	// Switch time after instance configurations are modified. 0: Switch immediately; 2: Switch during maintenance time window. Default: 0. Note: This only takes effect when updating the memory, storage, cpu fields.
	// Switch time after instance configurations are modified. `0`: Switch immediately; `2`: Switch during maintenance time window. Default: `0`. Note: This only takes effect when updating the `memory`, `storage`, `cpu` fields.
	WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,omitempty"`

	// Availability zone ID, which can be obtained through the Zone field in the returned value of the DescribeZones API.
	// Availability zone ID, which can be obtained through the Zone field in the returned value of the DescribeZones API.
	Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}

func (*ReadonlyInstanceInitParameters) DeepCopy added in v0.8.0

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

func (*ReadonlyInstanceInitParameters) DeepCopyInto added in v0.8.0

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

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 {

	// Auto renew flag, 1 for enabled. NOTES: Only support prepaid instance.
	// Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// Whether to use voucher, 1 for enabled.
	// Whether to use voucher, `1` for enabled.
	AutoVoucher *float64 `json:"autoVoucher,omitempty" tf:"auto_voucher,omitempty"`

	// Number of CPU cores. Allowed value must be equal cpu that data source tencentcloud_postgresql_specinfos provides.
	// Number of CPU cores. Allowed value must be equal `cpu` that data source `tencentcloud_postgresql_specinfos` provides.
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// Create time of the postgresql instance.
	// Create time of the postgresql instance.
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

	// PostgreSQL kernel version, which must be the same as that of the primary instance.
	// PostgreSQL kernel version, which must be the same as that of the primary instance.
	DBVersion *string `json:"dbVersion,omitempty" tf:"db_version,omitempty"`

	// Dedicated cluster ID.
	// Dedicated cluster ID.
	DedicatedClusterID *string `json:"dedicatedClusterId,omitempty" tf:"dedicated_cluster_id,omitempty"`

	// ID of the resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// instance billing mode. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay-as-you-go).
	// instance billing mode. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay-as-you-go).
	InstanceChargeType *string `json:"instanceChargeType,omitempty" tf:"instance_charge_type,omitempty"`

	// The instance ID of this readonly resource.
	// The instance ID of this readonly resource.
	InstanceID *string `json:"instanceId,omitempty" tf:"instance_id,omitempty"`

	// ID of the primary instance to which the read-only replica belongs.
	// ID of the primary instance to which the read-only replica belongs.
	MasterDBInstanceID *string `json:"masterDbInstanceId,omitempty" tf:"master_db_instance_id,omitempty"`

	// Memory size(in GB). Allowed value must be larger than memory that data source tencentcloud_postgresql_specinfos provides.
	// Memory size(in GB). Allowed value must be larger than `memory` that data source `tencentcloud_postgresql_specinfos` provides.
	Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"`

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

	// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no).
	// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no).
	NeedSupportIPv6 *float64 `json:"needSupportIpv6,omitempty" tf:"need_support_ipv6,omitempty"`

	// Specify Prepaid period in month. Default 1. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	// Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// IP for private access.
	// IP for private access.
	PrivateAccessIP *string `json:"privateAccessIp,omitempty" tf:"private_access_ip,omitempty"`

	// Port for private access.
	// Port for private access.
	PrivateAccessPort *float64 `json:"privateAccessPort,omitempty" tf:"private_access_port,omitempty"`

	// Project ID.
	// Project ID.
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// RO group ID.
	// RO group ID.
	ReadOnlyGroupID *string `json:"readOnlyGroupId,omitempty" tf:"read_only_group_id,omitempty"`

	// ID of security group.
	// ID of security group.
	// +listType=set
	SecurityGroupsIds []*string `json:"securityGroupsIds,omitempty" tf:"security_groups_ids,omitempty"`

	// Instance storage capacity in GB.
	// Instance storage capacity in GB.
	Storage *float64 `json:"storage,omitempty" tf:"storage,omitempty"`

	// VPC subnet ID.
	// VPC subnet ID.
	SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`

	// VPC ID.
	// VPC ID.
	VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`

	// Specify Voucher Ids if auto_voucher was 1, only support using 1 vouchers for now.
	// Specify Voucher Ids if `auto_voucher` was `1`, only support using 1 vouchers for now.
	VoucherIds []*string `json:"voucherIds,omitempty" tf:"voucher_ids,omitempty"`

	// Switch time after instance configurations are modified. 0: Switch immediately; 2: Switch during maintenance time window. Default: 0. Note: This only takes effect when updating the memory, storage, cpu fields.
	// Switch time after instance configurations are modified. `0`: Switch immediately; `2`: Switch during maintenance time window. Default: `0`. Note: This only takes effect when updating the `memory`, `storage`, `cpu` fields.
	WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,omitempty"`

	// Availability zone ID, which can be obtained through the Zone field in the returned value of the DescribeZones API.
	// Availability zone ID, which can be obtained through the Zone field in the returned value of the DescribeZones API.
	Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}

func (*ReadonlyInstanceObservation) DeepCopy

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

func (*ReadonlyInstanceObservation) DeepCopyInto

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

type ReadonlyInstanceParameters

type ReadonlyInstanceParameters struct {

	// Auto renew flag, 1 for enabled. NOTES: Only support prepaid instance.
	// Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
	// +kubebuilder:validation:Optional
	AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"`

	// Whether to use voucher, 1 for enabled.
	// Whether to use voucher, `1` for enabled.
	// +kubebuilder:validation:Optional
	AutoVoucher *float64 `json:"autoVoucher,omitempty" tf:"auto_voucher,omitempty"`

	// Number of CPU cores. Allowed value must be equal cpu that data source tencentcloud_postgresql_specinfos provides.
	// Number of CPU cores. Allowed value must be equal `cpu` that data source `tencentcloud_postgresql_specinfos` provides.
	// +kubebuilder:validation:Optional
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// PostgreSQL kernel version, which must be the same as that of the primary instance.
	// PostgreSQL kernel version, which must be the same as that of the primary instance.
	// +kubebuilder:validation:Optional
	DBVersion *string `json:"dbVersion,omitempty" tf:"db_version,omitempty"`

	// Dedicated cluster ID.
	// Dedicated cluster ID.
	// +kubebuilder:validation:Optional
	DedicatedClusterID *string `json:"dedicatedClusterId,omitempty" tf:"dedicated_cluster_id,omitempty"`

	// instance billing mode. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay-as-you-go).
	// instance billing mode. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay-as-you-go).
	// +kubebuilder:validation:Optional
	InstanceChargeType *string `json:"instanceChargeType,omitempty" tf:"instance_charge_type,omitempty"`

	// ID of the primary instance to which the read-only replica belongs.
	// ID of the primary instance to which the read-only replica belongs.
	// +kubebuilder:validation:Optional
	MasterDBInstanceID *string `json:"masterDbInstanceId,omitempty" tf:"master_db_instance_id,omitempty"`

	// Memory size(in GB). Allowed value must be larger than memory that data source tencentcloud_postgresql_specinfos provides.
	// Memory size(in GB). Allowed value must be larger than `memory` that data source `tencentcloud_postgresql_specinfos` provides.
	// +kubebuilder:validation:Optional
	Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"`

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

	// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no).
	// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no).
	// +kubebuilder:validation:Optional
	NeedSupportIPv6 *float64 `json:"needSupportIpv6,omitempty" tf:"need_support_ipv6,omitempty"`

	// Specify Prepaid period in month. Default 1. Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	// Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
	// +kubebuilder:validation:Optional
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Project ID.
	// Project ID.
	// +kubebuilder:validation:Optional
	ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// RO group ID.
	// RO group ID.
	// +kubebuilder:validation:Optional
	ReadOnlyGroupID *string `json:"readOnlyGroupId,omitempty" tf:"read_only_group_id,omitempty"`

	// ID of security group.
	// ID of security group.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-tencentcloud/apis/vpc/v1alpha1.SecurityGroup
	// +kubebuilder:validation:Optional
	// +listType=set
	SecurityGroupsIds []*string `json:"securityGroupsIds,omitempty" tf:"security_groups_ids,omitempty"`

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

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

	// Instance storage capacity in GB.
	// Instance storage capacity in GB.
	// +kubebuilder:validation:Optional
	Storage *float64 `json:"storage,omitempty" tf:"storage,omitempty"`

	// VPC subnet ID.
	// VPC subnet ID.
	// +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:"-"`

	// VPC ID.
	// VPC ID.
	// +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:"-"`

	// Specify Voucher Ids if auto_voucher was 1, only support using 1 vouchers for now.
	// Specify Voucher Ids if `auto_voucher` was `1`, only support using 1 vouchers for now.
	// +kubebuilder:validation:Optional
	VoucherIds []*string `json:"voucherIds,omitempty" tf:"voucher_ids,omitempty"`

	// Switch time after instance configurations are modified. 0: Switch immediately; 2: Switch during maintenance time window. Default: 0. Note: This only takes effect when updating the memory, storage, cpu fields.
	// Switch time after instance configurations are modified. `0`: Switch immediately; `2`: Switch during maintenance time window. Default: `0`. Note: This only takes effect when updating the `memory`, `storage`, `cpu` fields.
	// +kubebuilder:validation:Optional
	WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,omitempty"`

	// Availability zone ID, which can be obtained through the Zone field in the returned value of the DescribeZones API.
	// Availability zone ID, which can be obtained through the Zone field in the returned value of the DescribeZones API.
	// +kubebuilder:validation:Optional
	Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}

func (*ReadonlyInstanceParameters) DeepCopy

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

func (*ReadonlyInstanceParameters) DeepCopyInto

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL