Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=redis.tencentcloud.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type BackupConfig
- func (in *BackupConfig) DeepCopy() *BackupConfig
- func (in *BackupConfig) DeepCopyInto(out *BackupConfig)
- func (in *BackupConfig) DeepCopyObject() runtime.Object
- func (mg *BackupConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *BackupConfig) GetConnectionDetailsMapping() map[string]string
- func (mg *BackupConfig) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *BackupConfig) GetID() string
- func (tr *BackupConfig) GetInitParameters() (map[string]any, error)
- func (mg *BackupConfig) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *BackupConfig) GetObservation() (map[string]any, error)
- func (tr *BackupConfig) GetParameters() (map[string]any, error)
- func (mg *BackupConfig) GetProviderConfigReference() *xpv1.Reference
- func (mg *BackupConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *BackupConfig) GetTerraformResourceType() string
- func (tr *BackupConfig) GetTerraformSchemaVersion() int
- func (mg *BackupConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *BackupConfig) LateInitialize(attrs []byte) (bool, error)
- func (mg *BackupConfig) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *BackupConfig) SetConditions(c ...xpv1.Condition)
- func (mg *BackupConfig) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *BackupConfig) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *BackupConfig) SetObservation(obs map[string]any) error
- func (tr *BackupConfig) SetParameters(params map[string]any) error
- func (mg *BackupConfig) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *BackupConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *BackupConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type BackupConfigInitParameters
- type BackupConfigList
- type BackupConfigObservation
- type BackupConfigParameters
- type BackupConfigSpec
- type BackupConfigStatus
- type Instance
- func (in *Instance) DeepCopy() *Instance
- func (in *Instance) DeepCopyInto(out *Instance)
- func (in *Instance) DeepCopyObject() runtime.Object
- func (mg *Instance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Instance) GetConnectionDetailsMapping() map[string]string
- func (mg *Instance) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Instance) GetID() string
- func (tr *Instance) GetInitParameters() (map[string]any, error)
- func (mg *Instance) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Instance) GetObservation() (map[string]any, error)
- func (tr *Instance) GetParameters() (map[string]any, error)
- func (mg *Instance) GetProviderConfigReference() *xpv1.Reference
- func (mg *Instance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Instance) GetTerraformResourceType() string
- func (tr *Instance) GetTerraformSchemaVersion() int
- func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Instance) LateInitialize(attrs []byte) (bool, error)
- func (mg *Instance) SetConditions(c ...xpv1.Condition)
- func (mg *Instance) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Instance) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Instance) SetObservation(obs map[string]any) error
- func (tr *Instance) SetParameters(params map[string]any) error
- func (mg *Instance) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Instance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Instance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type InstanceInitParameters
- type InstanceList
- type InstanceObservation
- type InstanceParameters
- type InstanceSpec
- type InstanceStatus
- type NodeInfoInitParameters
- type NodeInfoObservation
- type NodeInfoParameters
Constants ¶
const ( CRDGroup = "redis.tencentcloud.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( BackupConfig_Kind = "BackupConfig" BackupConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: BackupConfig_Kind}.String() BackupConfig_KindAPIVersion = BackupConfig_Kind + "." + CRDGroupVersion.String() BackupConfig_GroupVersionKind = CRDGroupVersion.WithKind(BackupConfig_Kind) )
Repository type metadata.
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( 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.
Functions ¶
This section is empty.
Types ¶
type BackupConfig ¶
type BackupConfig 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.backupTime) || (has(self.initProvider) && has(self.initProvider.backupTime))",message="spec.forProvider.backupTime is a required parameter" Spec BackupConfigSpec `json:"spec"` Status BackupConfigStatus `json:"status,omitempty"` }
BackupConfig is the Schema for the BackupConfigs API. Use this resource to create a backup config of redis. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,tencentcloud}
func (*BackupConfig) DeepCopy ¶
func (in *BackupConfig) DeepCopy() *BackupConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfig.
func (*BackupConfig) DeepCopyInto ¶
func (in *BackupConfig) DeepCopyInto(out *BackupConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupConfig) DeepCopyObject ¶
func (in *BackupConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackupConfig) GetCondition ¶
func (mg *BackupConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this BackupConfig.
func (*BackupConfig) GetConnectionDetailsMapping ¶
func (tr *BackupConfig) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this BackupConfig
func (*BackupConfig) GetDeletionPolicy ¶
func (mg *BackupConfig) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this BackupConfig.
func (*BackupConfig) GetID ¶
func (tr *BackupConfig) GetID() string
GetID returns ID of underlying Terraform resource of this BackupConfig
func (*BackupConfig) GetInitParameters ¶ added in v0.8.0
func (tr *BackupConfig) GetInitParameters() (map[string]any, error)
GetInitParameters of this BackupConfig
func (*BackupConfig) GetManagementPolicies ¶ added in v0.8.0
func (mg *BackupConfig) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this BackupConfig.
func (*BackupConfig) GetObservation ¶
func (tr *BackupConfig) GetObservation() (map[string]any, error)
GetObservation of this BackupConfig
func (*BackupConfig) GetParameters ¶
func (tr *BackupConfig) GetParameters() (map[string]any, error)
GetParameters of this BackupConfig
func (*BackupConfig) GetProviderConfigReference ¶
func (mg *BackupConfig) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this BackupConfig.
func (*BackupConfig) GetPublishConnectionDetailsTo ¶
func (mg *BackupConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this BackupConfig.
func (*BackupConfig) GetTerraformResourceType ¶
func (mg *BackupConfig) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this BackupConfig
func (*BackupConfig) GetTerraformSchemaVersion ¶
func (tr *BackupConfig) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*BackupConfig) GetWriteConnectionSecretToReference ¶
func (mg *BackupConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this BackupConfig.
func (*BackupConfig) LateInitialize ¶
func (tr *BackupConfig) LateInitialize(attrs []byte) (bool, error)
LateInitialize this BackupConfig using its observed tfState. returns True if there are any spec changes for the resource.
func (*BackupConfig) ResolveReferences ¶
ResolveReferences of this BackupConfig.
func (*BackupConfig) SetConditions ¶
func (mg *BackupConfig) SetConditions(c ...xpv1.Condition)
SetConditions of this BackupConfig.
func (*BackupConfig) SetDeletionPolicy ¶
func (mg *BackupConfig) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this BackupConfig.
func (*BackupConfig) SetManagementPolicies ¶ added in v0.8.0
func (mg *BackupConfig) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this BackupConfig.
func (*BackupConfig) SetObservation ¶
func (tr *BackupConfig) SetObservation(obs map[string]any) error
SetObservation for this BackupConfig
func (*BackupConfig) SetParameters ¶
func (tr *BackupConfig) SetParameters(params map[string]any) error
SetParameters for this BackupConfig
func (*BackupConfig) SetProviderConfigReference ¶
func (mg *BackupConfig) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this BackupConfig.
func (*BackupConfig) SetPublishConnectionDetailsTo ¶
func (mg *BackupConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this BackupConfig.
func (*BackupConfig) SetWriteConnectionSecretToReference ¶
func (mg *BackupConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this BackupConfig.
type BackupConfigInitParameters ¶ added in v0.8.0
type BackupConfigInitParameters struct { // It has been deprecated from version 1.58.2. It makes no difference to online config at all Specifys which day the backup action should take place. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday. // Specifys which day the backup action should take place. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. BackupPeriod []*string `json:"backupPeriod,omitempty" tf:"backup_period,omitempty"` // Specifys what time the backup action should take place. And the time interval should be one hour. // Specifys what time the backup action should take place. And the time interval should be one hour. BackupTime *string `json:"backupTime,omitempty" tf:"backup_time,omitempty"` }
func (*BackupConfigInitParameters) DeepCopy ¶ added in v0.8.0
func (in *BackupConfigInitParameters) DeepCopy() *BackupConfigInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigInitParameters.
func (*BackupConfigInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *BackupConfigInitParameters) DeepCopyInto(out *BackupConfigInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupConfigList ¶
type BackupConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackupConfig `json:"items"` }
BackupConfigList contains a list of BackupConfigs
func (*BackupConfigList) DeepCopy ¶
func (in *BackupConfigList) DeepCopy() *BackupConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigList.
func (*BackupConfigList) DeepCopyInto ¶
func (in *BackupConfigList) DeepCopyInto(out *BackupConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupConfigList) DeepCopyObject ¶
func (in *BackupConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackupConfigList) GetItems ¶
func (l *BackupConfigList) GetItems() []resource.Managed
GetItems of this BackupConfigList.
type BackupConfigObservation ¶
type BackupConfigObservation struct { // It has been deprecated from version 1.58.2. It makes no difference to online config at all Specifys which day the backup action should take place. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday. // Specifys which day the backup action should take place. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. BackupPeriod []*string `json:"backupPeriod,omitempty" tf:"backup_period,omitempty"` // Specifys what time the backup action should take place. And the time interval should be one hour. // Specifys what time the backup action should take place. And the time interval should be one hour. BackupTime *string `json:"backupTime,omitempty" tf:"backup_time,omitempty"` // ID of the resource. ID *string `json:"id,omitempty" tf:"id,omitempty"` // ID of a redis instance to which the policy will be applied. // ID of a redis instance to which the policy will be applied. RedisID *string `json:"redisId,omitempty" tf:"redis_id,omitempty"` }
func (*BackupConfigObservation) DeepCopy ¶
func (in *BackupConfigObservation) DeepCopy() *BackupConfigObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigObservation.
func (*BackupConfigObservation) DeepCopyInto ¶
func (in *BackupConfigObservation) DeepCopyInto(out *BackupConfigObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupConfigParameters ¶
type BackupConfigParameters struct { // It has been deprecated from version 1.58.2. It makes no difference to online config at all Specifys which day the backup action should take place. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday. // Specifys which day the backup action should take place. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. // +kubebuilder:validation:Optional BackupPeriod []*string `json:"backupPeriod,omitempty" tf:"backup_period,omitempty"` // Specifys what time the backup action should take place. And the time interval should be one hour. // Specifys what time the backup action should take place. And the time interval should be one hour. // +kubebuilder:validation:Optional BackupTime *string `json:"backupTime,omitempty" tf:"backup_time,omitempty"` // ID of a redis instance to which the policy will be applied. // ID of a redis instance to which the policy will be applied. // +crossplane:generate:reference:type=Instance // +kubebuilder:validation:Optional RedisID *string `json:"redisId,omitempty" tf:"redis_id,omitempty"` // Reference to a Instance to populate redisId. // +kubebuilder:validation:Optional RedisIDRef *v1.Reference `json:"redisIdRef,omitempty" tf:"-"` // Selector for a Instance to populate redisId. // +kubebuilder:validation:Optional RedisIDSelector *v1.Selector `json:"redisIdSelector,omitempty" tf:"-"` }
func (*BackupConfigParameters) DeepCopy ¶
func (in *BackupConfigParameters) DeepCopy() *BackupConfigParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigParameters.
func (*BackupConfigParameters) DeepCopyInto ¶
func (in *BackupConfigParameters) DeepCopyInto(out *BackupConfigParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupConfigSpec ¶
type BackupConfigSpec struct { v1.ResourceSpec `json:",inline"` ForProvider BackupConfigParameters `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 BackupConfigInitParameters `json:"initProvider,omitempty"` }
BackupConfigSpec defines the desired state of BackupConfig
func (*BackupConfigSpec) DeepCopy ¶
func (in *BackupConfigSpec) DeepCopy() *BackupConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigSpec.
func (*BackupConfigSpec) DeepCopyInto ¶
func (in *BackupConfigSpec) DeepCopyInto(out *BackupConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupConfigStatus ¶
type BackupConfigStatus struct { v1.ResourceStatus `json:",inline"` AtProvider BackupConfigObservation `json:"atProvider,omitempty"` }
BackupConfigStatus defines the observed state of BackupConfig.
func (*BackupConfigStatus) DeepCopy ¶
func (in *BackupConfigStatus) DeepCopy() *BackupConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigStatus.
func (*BackupConfigStatus) DeepCopyInto ¶
func (in *BackupConfigStatus) DeepCopyInto(out *BackupConfigStatus)
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.memSize) || (has(self.initProvider) && has(self.initProvider.memSize))",message="spec.forProvider.memSize is a required parameter" Spec InstanceSpec `json:"spec"` Status InstanceStatus `json:"status,omitempty"` }
Instance is the Schema for the Instances API. Provides a resource to create a Redis instance and set its attributes. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,tencentcloud}
func (*Instance) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance.
func (*Instance) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Instance) DeepCopyObject ¶
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 ¶
GetConnectionDetailsMapping for this Instance
func (*Instance) GetDeletionPolicy ¶
func (mg *Instance) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Instance.
func (*Instance) GetInitParameters ¶ added in v0.8.0
GetInitParameters of this Instance
func (*Instance) GetManagementPolicies ¶ added in v0.8.0
func (mg *Instance) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Instance.
func (*Instance) GetObservation ¶
GetObservation of this Instance
func (*Instance) GetParameters ¶
GetParameters of this Instance
func (*Instance) GetProviderConfigReference ¶
GetProviderConfigReference of this Instance.
func (*Instance) GetPublishConnectionDetailsTo ¶
func (mg *Instance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Instance.
func (*Instance) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Instance
func (*Instance) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Instance) GetWriteConnectionSecretToReference ¶
func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Instance.
func (*Instance) LateInitialize ¶
LateInitialize this Instance using its observed tfState. returns True if there are any spec changes for the resource.
func (*Instance) SetConditions ¶
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 ¶
SetObservation for this Instance
func (*Instance) SetParameters ¶
SetParameters for this Instance
func (*Instance) SetProviderConfigReference ¶
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. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal. // Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal. AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"` // The available zone ID of an instance to be created, please refer to tencentcloud_redis_zone_config.list. // The available zone ID of an instance to be created, please refer to `tencentcloud_redis_zone_config.list`. AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"` // The charge type of instance. Valid values: PREPAID and POSTPAID. Default value is POSTPAID. Note: TencentCloud International only supports POSTPAID. Caution that update operation on this field will delete old instances and create new with new charge type. // The charge type of instance. Valid values: `PREPAID` and `POSTPAID`. Default value is `POSTPAID`. Note: TencentCloud International only supports `POSTPAID`. Caution that update operation on this field will delete old instances and create new with new charge type. ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"` // Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for PREPAID instance. // Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for `PREPAID` instance. ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // IP address of an instance. When the operation_network is changeVip, this parameter needs to be configured. // IP address of an instance. When the `operation_network` is `changeVip`, this parameter needs to be configured. IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // The memory volume of an available instance(in MB), please refer to tencentcloud_redis_zone_config.list[zone].shard_memories. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding. 512MB is supported only in master-slave instance. // The memory volume of an available instance(in MB), please refer to `tencentcloud_redis_zone_config.list[zone].shard_memories`. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding. `512MB` is supported only in master-slave instance. MemSize *float64 `json:"memSize,omitempty" tf:"mem_size,omitempty"` // Instance name. // Instance name. Name *string `json:"name,omitempty" tf:"name,omitempty"` // Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment. // Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment. NoAuth *bool `json:"noAuth,omitempty" tf:"no_auth,omitempty"` // Refers to the category of the pre-modified network, including: changeVip: refers to switching the private network, including its intranet IPv4 address and port; changeVpc: refers to switching the subnet to which the private network belongs; changeBaseToVpc: refers to switching the basic network to a private network; changeVPort: refers to only modifying the instance network port. // Refers to the category of the pre-modified network, including: `changeVip`: refers to switching the private network, including its intranet IPv4 address and port; `changeVpc`: refers to switching the subnet to which the private network belongs; `changeBaseToVpc`: refers to switching the basic network to a private network; `changeVPort`: refers to only modifying the instance network port. OperationNetwork *string `json:"operationNetwork,omitempty" tf:"operation_network,omitempty"` // Specify params template id. If not set, will use default template. // Specify params template id. If not set, will use default template. ParamsTemplateID *string `json:"paramsTemplateId,omitempty" tf:"params_template_id,omitempty"` // The port used to access a redis instance. The default value is 6379. When the operation_network is changeVPort or changeVip, this parameter needs to be configured. // The port used to access a redis instance. The default value is 6379. When the `operation_network` is `changeVPort` or `changeVip`, this parameter needs to be configured. Port *float64 `json:"port,omitempty" tf:"port,omitempty"` // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"` // Specifies which project the instance should belong to. // Specifies which project the instance should belong to. ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"` // Original intranet IPv4 address retention time: unit: day, value range: 0, 1, 2, 3, 7, 15. // Original intranet IPv4 address retention time: unit: day, value range: `0`, `1`, `2`, `3`, `7`, `15`. Recycle *float64 `json:"recycle,omitempty" tf:"recycle,omitempty"` // The number of instance copies. This is not required for standalone and master slave versions and must equal to count of replica_zone_ids, Non-multi-AZ does not require replica_zone_ids; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. // The number of instance copies. This is not required for standalone and master slave versions and must equal to count of `replica_zone_ids`, Non-multi-AZ does not require `replica_zone_ids`; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. RedisReplicasNum *float64 `json:"redisReplicasNum,omitempty" tf:"redis_replicas_num,omitempty"` // The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [1, 3, 5, 8, 12, 16, 24 , 32, 40, 48, 64, 80, 96, 128]. // The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [`1`, `3`, `5`, `8`, `12`, `16`, `24 `, `32`, `40`, `48`, `64`, `80`, `96`, `128`]. RedisShardNum *float64 `json:"redisShardNum,omitempty" tf:"redis_shard_num,omitempty"` // ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove. // ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove. ReplicaZoneIds []*float64 `json:"replicaZoneIds,omitempty" tf:"replica_zone_ids,omitempty"` // Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2. // Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2. ReplicasReadOnly *bool `json:"replicasReadOnly,omitempty" tf:"replicas_read_only,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. SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"` // Specifies which subnet the instance should belong to. When the operation_network is changeVpc or changeBaseToVpc, this parameter needs to be configured. // Specifies which subnet the instance should belong to. When the `operation_network` is `changeVpc` or `changeBaseToVpc`, this parameter needs to be configured. SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // Instance tags. // Instance tags. Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values: cluster_ckv,cluster_redis5.0,cluster_redis,master_slave_ckv,master_slave_redis4.0,master_slave_redis5.0,master_slave_redis,standalone_redis, specific region support specific types, need to refer data tencentcloud_redis_zone_config. // Instance type. Available values: `cluster_ckv`,`cluster_redis5.0`,`cluster_redis`,`master_slave_ckv`,`master_slave_redis4.0`,`master_slave_redis5.0`,`master_slave_redis`,`standalone_redis`, specific region support specific types, need to refer data `tencentcloud_redis_zone_config`. Type *string `json:"type,omitempty" tf:"type,omitempty"` // Instance type. Available values reference data source tencentcloud_redis_zone_config or document, toggle immediately when modified. // Instance type. Available values reference data source `tencentcloud_redis_zone_config` or [document](https://intl.cloud.tencent.com/document/product/239/32069), toggle immediately when modified. TypeID *float64 `json:"typeId,omitempty" tf:"type_id,omitempty"` // ID of the vpc with which the instance is to be associated. When the operation_network is changeVpc or changeBaseToVpc, this parameter needs to be configured. // ID of the vpc with which the instance is to be associated. When the `operation_network` is `changeVpc` or `changeBaseToVpc`, this parameter needs to be configured. VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // Switching mode: 1-maintenance time window switching, 2-immediate switching, default value 2. // Switching mode: `1`-maintenance time window switching, `2`-immediate switching, default value `2`. WaitSwitch *float64 `json:"waitSwitch,omitempty" tf:"wait_switch,omitempty"` }
func (*InstanceInitParameters) DeepCopy ¶ added in v0.8.0
func (in *InstanceInitParameters) DeepCopy() *InstanceInitParameters
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. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal. // Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal. AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"` // The available zone ID of an instance to be created, please refer to tencentcloud_redis_zone_config.list. // The available zone ID of an instance to be created, please refer to `tencentcloud_redis_zone_config.list`. AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"` // The charge type of instance. Valid values: PREPAID and POSTPAID. Default value is POSTPAID. Note: TencentCloud International only supports POSTPAID. Caution that update operation on this field will delete old instances and create new with new charge type. // The charge type of instance. Valid values: `PREPAID` and `POSTPAID`. Default value is `POSTPAID`. Note: TencentCloud International only supports `POSTPAID`. Caution that update operation on this field will delete old instances and create new with new charge type. ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"` // The time when the instance was created. // The time when the instance was created. CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"` // Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for PREPAID instance. // Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for `PREPAID` instance. ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // ID of the resource. ID *string `json:"id,omitempty" tf:"id,omitempty"` // IP address of an instance. When the operation_network is changeVip, this parameter needs to be configured. // IP address of an instance. When the `operation_network` is `changeVip`, this parameter needs to be configured. IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // The memory volume of an available instance(in MB), please refer to tencentcloud_redis_zone_config.list[zone].shard_memories. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding. 512MB is supported only in master-slave instance. // The memory volume of an available instance(in MB), please refer to `tencentcloud_redis_zone_config.list[zone].shard_memories`. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding. `512MB` is supported only in master-slave instance. MemSize *float64 `json:"memSize,omitempty" tf:"mem_size,omitempty"` // Instance name. // Instance name. Name *string `json:"name,omitempty" tf:"name,omitempty"` // Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment. // Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment. NoAuth *bool `json:"noAuth,omitempty" tf:"no_auth,omitempty"` // Readonly Primary/Replica nodes. // Readonly Primary/Replica nodes. NodeInfo []NodeInfoObservation `json:"nodeInfo,omitempty" tf:"node_info,omitempty"` // Refers to the category of the pre-modified network, including: changeVip: refers to switching the private network, including its intranet IPv4 address and port; changeVpc: refers to switching the subnet to which the private network belongs; changeBaseToVpc: refers to switching the basic network to a private network; changeVPort: refers to only modifying the instance network port. // Refers to the category of the pre-modified network, including: `changeVip`: refers to switching the private network, including its intranet IPv4 address and port; `changeVpc`: refers to switching the subnet to which the private network belongs; `changeBaseToVpc`: refers to switching the basic network to a private network; `changeVPort`: refers to only modifying the instance network port. OperationNetwork *string `json:"operationNetwork,omitempty" tf:"operation_network,omitempty"` // Specify params template id. If not set, will use default template. // Specify params template id. If not set, will use default template. ParamsTemplateID *string `json:"paramsTemplateId,omitempty" tf:"params_template_id,omitempty"` // The port used to access a redis instance. The default value is 6379. When the operation_network is changeVPort or changeVip, this parameter needs to be configured. // The port used to access a redis instance. The default value is 6379. When the `operation_network` is `changeVPort` or `changeVip`, this parameter needs to be configured. Port *float64 `json:"port,omitempty" tf:"port,omitempty"` // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"` // Specifies which project the instance should belong to. // Specifies which project the instance should belong to. ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"` // Original intranet IPv4 address retention time: unit: day, value range: 0, 1, 2, 3, 7, 15. // Original intranet IPv4 address retention time: unit: day, value range: `0`, `1`, `2`, `3`, `7`, `15`. Recycle *float64 `json:"recycle,omitempty" tf:"recycle,omitempty"` // The number of instance copies. This is not required for standalone and master slave versions and must equal to count of replica_zone_ids, Non-multi-AZ does not require replica_zone_ids; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. // The number of instance copies. This is not required for standalone and master slave versions and must equal to count of `replica_zone_ids`, Non-multi-AZ does not require `replica_zone_ids`; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. RedisReplicasNum *float64 `json:"redisReplicasNum,omitempty" tf:"redis_replicas_num,omitempty"` // The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [1, 3, 5, 8, 12, 16, 24 , 32, 40, 48, 64, 80, 96, 128]. // The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [`1`, `3`, `5`, `8`, `12`, `16`, `24 `, `32`, `40`, `48`, `64`, `80`, `96`, `128`]. RedisShardNum *float64 `json:"redisShardNum,omitempty" tf:"redis_shard_num,omitempty"` // ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove. // ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove. ReplicaZoneIds []*float64 `json:"replicaZoneIds,omitempty" tf:"replica_zone_ids,omitempty"` // Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2. // Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2. ReplicasReadOnly *bool `json:"replicasReadOnly,omitempty" tf:"replicas_read_only,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. SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"` // Current status of an instance, maybe: init, processing, online, isolate and todelete. // Current status of an instance, maybe: init, processing, online, isolate and todelete. Status *string `json:"status,omitempty" tf:"status,omitempty"` // Specifies which subnet the instance should belong to. When the operation_network is changeVpc or changeBaseToVpc, this parameter needs to be configured. // Specifies which subnet the instance should belong to. When the `operation_network` is `changeVpc` or `changeBaseToVpc`, this parameter needs to be configured. SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // Instance tags. // Instance tags. Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values: cluster_ckv,cluster_redis5.0,cluster_redis,master_slave_ckv,master_slave_redis4.0,master_slave_redis5.0,master_slave_redis,standalone_redis, specific region support specific types, need to refer data tencentcloud_redis_zone_config. // Instance type. Available values: `cluster_ckv`,`cluster_redis5.0`,`cluster_redis`,`master_slave_ckv`,`master_slave_redis4.0`,`master_slave_redis5.0`,`master_slave_redis`,`standalone_redis`, specific region support specific types, need to refer data `tencentcloud_redis_zone_config`. Type *string `json:"type,omitempty" tf:"type,omitempty"` // Instance type. Available values reference data source tencentcloud_redis_zone_config or document, toggle immediately when modified. // Instance type. Available values reference data source `tencentcloud_redis_zone_config` or [document](https://intl.cloud.tencent.com/document/product/239/32069), toggle immediately when modified. TypeID *float64 `json:"typeId,omitempty" tf:"type_id,omitempty"` // ID of the vpc with which the instance is to be associated. When the operation_network is changeVpc or changeBaseToVpc, this parameter needs to be configured. // ID of the vpc with which the instance is to be associated. When the `operation_network` is `changeVpc` or `changeBaseToVpc`, this parameter needs to be configured. VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // Switching mode: 1-maintenance time window switching, 2-immediate switching, default value 2. // Switching mode: `1`-maintenance time window switching, `2`-immediate switching, default value `2`. 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. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal. // Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal. // +kubebuilder:validation:Optional AutoRenewFlag *float64 `json:"autoRenewFlag,omitempty" tf:"auto_renew_flag,omitempty"` // The available zone ID of an instance to be created, please refer to tencentcloud_redis_zone_config.list. // The available zone ID of an instance to be created, please refer to `tencentcloud_redis_zone_config.list`. // +kubebuilder:validation:Optional AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"` // The charge type of instance. Valid values: PREPAID and POSTPAID. Default value is POSTPAID. Note: TencentCloud International only supports POSTPAID. Caution that update operation on this field will delete old instances and create new with new charge type. // The charge type of instance. Valid values: `PREPAID` and `POSTPAID`. Default value is `POSTPAID`. Note: TencentCloud International only supports `POSTPAID`. Caution that update operation on this field will delete old instances and create new with new charge type. // +kubebuilder:validation:Optional ChargeType *string `json:"chargeType,omitempty" tf:"charge_type,omitempty"` // Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for PREPAID instance. // Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for `PREPAID` instance. // +kubebuilder:validation:Optional ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"` // IP address of an instance. When the operation_network is changeVip, this parameter needs to be configured. // IP address of an instance. When the `operation_network` is `changeVip`, this parameter needs to be configured. // +kubebuilder:validation:Optional IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // The memory volume of an available instance(in MB), please refer to tencentcloud_redis_zone_config.list[zone].shard_memories. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding. 512MB is supported only in master-slave instance. // The memory volume of an available instance(in MB), please refer to `tencentcloud_redis_zone_config.list[zone].shard_memories`. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding. `512MB` is supported only in master-slave instance. // +kubebuilder:validation:Optional MemSize *float64 `json:"memSize,omitempty" tf:"mem_size,omitempty"` // Instance name. // Instance name. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment. // Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment. // +kubebuilder:validation:Optional NoAuth *bool `json:"noAuth,omitempty" tf:"no_auth,omitempty"` // Refers to the category of the pre-modified network, including: changeVip: refers to switching the private network, including its intranet IPv4 address and port; changeVpc: refers to switching the subnet to which the private network belongs; changeBaseToVpc: refers to switching the basic network to a private network; changeVPort: refers to only modifying the instance network port. // Refers to the category of the pre-modified network, including: `changeVip`: refers to switching the private network, including its intranet IPv4 address and port; `changeVpc`: refers to switching the subnet to which the private network belongs; `changeBaseToVpc`: refers to switching the basic network to a private network; `changeVPort`: refers to only modifying the instance network port. // +kubebuilder:validation:Optional OperationNetwork *string `json:"operationNetwork,omitempty" tf:"operation_network,omitempty"` // Specify params template id. If not set, will use default template. // Specify params template id. If not set, will use default template. // +kubebuilder:validation:Optional ParamsTemplateID *string `json:"paramsTemplateId,omitempty" tf:"params_template_id,omitempty"` // Password for a Redis user, which should be 8 to 16 characters. NOTE: Only no_auth=true specified can make password empty. // Password for a Redis user, which should be 8 to 16 characters. NOTE: Only `no_auth=true` specified can make password empty. // +kubebuilder:validation:Optional PasswordSecretRef *v1.SecretKeySelector `json:"passwordSecretRef,omitempty" tf:"-"` // The port used to access a redis instance. The default value is 6379. When the operation_network is changeVPort or changeVip, this parameter needs to be configured. // The port used to access a redis instance. The default value is 6379. When the `operation_network` is `changeVPort` or `changeVip`, this parameter needs to be configured. // +kubebuilder:validation:Optional Port *float64 `json:"port,omitempty" tf:"port,omitempty"` // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. // +kubebuilder:validation:Optional PrepaidPeriod *float64 `json:"prepaidPeriod,omitempty" tf:"prepaid_period,omitempty"` // Specifies which project the instance should belong to. // Specifies which project the instance should belong to. // +kubebuilder:validation:Optional ProjectID *float64 `json:"projectId,omitempty" tf:"project_id,omitempty"` // Original intranet IPv4 address retention time: unit: day, value range: 0, 1, 2, 3, 7, 15. // Original intranet IPv4 address retention time: unit: day, value range: `0`, `1`, `2`, `3`, `7`, `15`. // +kubebuilder:validation:Optional Recycle *float64 `json:"recycle,omitempty" tf:"recycle,omitempty"` // The number of instance copies. This is not required for standalone and master slave versions and must equal to count of replica_zone_ids, Non-multi-AZ does not require replica_zone_ids; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. // The number of instance copies. This is not required for standalone and master slave versions and must equal to count of `replica_zone_ids`, Non-multi-AZ does not require `replica_zone_ids`; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. // +kubebuilder:validation:Optional RedisReplicasNum *float64 `json:"redisReplicasNum,omitempty" tf:"redis_replicas_num,omitempty"` // The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [1, 3, 5, 8, 12, 16, 24 , 32, 40, 48, 64, 80, 96, 128]. // The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [`1`, `3`, `5`, `8`, `12`, `16`, `24 `, `32`, `40`, `48`, `64`, `80`, `96`, `128`]. // +kubebuilder:validation:Optional RedisShardNum *float64 `json:"redisShardNum,omitempty" tf:"redis_shard_num,omitempty"` // ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove. // ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove. // +kubebuilder:validation:Optional ReplicaZoneIds []*float64 `json:"replicaZoneIds,omitempty" tf:"replica_zone_ids,omitempty"` // Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2. // Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2. // +kubebuilder:validation:Optional ReplicasReadOnly *bool `json:"replicasReadOnly,omitempty" tf:"replicas_read_only,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 SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"` // Specifies which subnet the instance should belong to. When the operation_network is changeVpc or changeBaseToVpc, this parameter needs to be configured. // Specifies which subnet the instance should belong to. When the `operation_network` is `changeVpc` or `changeBaseToVpc`, this parameter needs to be configured. // +kubebuilder:validation:Optional SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"` // Instance tags. // Instance tags. // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values: cluster_ckv,cluster_redis5.0,cluster_redis,master_slave_ckv,master_slave_redis4.0,master_slave_redis5.0,master_slave_redis,standalone_redis, specific region support specific types, need to refer data tencentcloud_redis_zone_config. // Instance type. Available values: `cluster_ckv`,`cluster_redis5.0`,`cluster_redis`,`master_slave_ckv`,`master_slave_redis4.0`,`master_slave_redis5.0`,`master_slave_redis`,`standalone_redis`, specific region support specific types, need to refer data `tencentcloud_redis_zone_config`. // +kubebuilder:validation:Optional Type *string `json:"type,omitempty" tf:"type,omitempty"` // Instance type. Available values reference data source tencentcloud_redis_zone_config or document, toggle immediately when modified. // Instance type. Available values reference data source `tencentcloud_redis_zone_config` or [document](https://intl.cloud.tencent.com/document/product/239/32069), toggle immediately when modified. // +kubebuilder:validation:Optional TypeID *float64 `json:"typeId,omitempty" tf:"type_id,omitempty"` // ID of the vpc with which the instance is to be associated. When the operation_network is changeVpc or changeBaseToVpc, this parameter needs to be configured. // ID of the vpc with which the instance is to be associated. When the `operation_network` is `changeVpc` or `changeBaseToVpc`, this parameter needs to be configured. // +kubebuilder:validation:Optional VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // Switching mode: 1-maintenance time window switching, 2-immediate switching, default value 2. // Switching mode: `1`-maintenance time window switching, `2`-immediate switching, default value `2`. // +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 NodeInfoInitParameters ¶ added in v0.8.0
type NodeInfoInitParameters struct { }
func (*NodeInfoInitParameters) DeepCopy ¶ added in v0.8.0
func (in *NodeInfoInitParameters) DeepCopy() *NodeInfoInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfoInitParameters.
func (*NodeInfoInitParameters) DeepCopyInto ¶ added in v0.8.0
func (in *NodeInfoInitParameters) DeepCopyInto(out *NodeInfoInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeInfoObservation ¶
type NodeInfoObservation struct { // ID of the resource. ID *float64 `json:"id,omitempty" tf:"id,omitempty"` // Indicates whether the node is master. Master *bool `json:"master,omitempty" tf:"master,omitempty"` // ID of the availability zone of the master or replica node. ZoneID *float64 `json:"zoneId,omitempty" tf:"zone_id,omitempty"` }
func (*NodeInfoObservation) DeepCopy ¶
func (in *NodeInfoObservation) DeepCopy() *NodeInfoObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfoObservation.
func (*NodeInfoObservation) DeepCopyInto ¶
func (in *NodeInfoObservation) DeepCopyInto(out *NodeInfoObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeInfoParameters ¶
type NodeInfoParameters struct { }
func (*NodeInfoParameters) DeepCopy ¶
func (in *NodeInfoParameters) DeepCopy() *NodeInfoParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfoParameters.
func (*NodeInfoParameters) DeepCopyInto ¶
func (in *NodeInfoParameters) DeepCopyInto(out *NodeInfoParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.