Constants
CloudRedisCluster_ListClusters_FullMethodName, CloudRedisCluster_GetCluster_FullMethodName, CloudRedisCluster_UpdateCluster_FullMethodName, CloudRedisCluster_DeleteCluster_FullMethodName, CloudRedisCluster_CreateCluster_FullMethodName, CloudRedisCluster_GetClusterCertificateAuthority_FullMethodName, CloudRedisCluster_GetSharedRegionalCertificateAuthority_FullMethodName, CloudRedisCluster_RescheduleClusterMaintenance_FullMethodName, CloudRedisCluster_ListBackupCollections_FullMethodName, CloudRedisCluster_GetBackupCollection_FullMethodName, CloudRedisCluster_ListBackups_FullMethodName, CloudRedisCluster_GetBackup_FullMethodName, CloudRedisCluster_DeleteBackup_FullMethodName, CloudRedisCluster_ExportBackup_FullMethodName, CloudRedisCluster_BackupCluster_FullMethodName
const (
CloudRedisCluster_ListClusters_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/ListClusters"
CloudRedisCluster_GetCluster_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/GetCluster"
CloudRedisCluster_UpdateCluster_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/UpdateCluster"
CloudRedisCluster_DeleteCluster_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteCluster"
CloudRedisCluster_CreateCluster_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/CreateCluster"
CloudRedisCluster_GetClusterCertificateAuthority_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/GetClusterCertificateAuthority"
CloudRedisCluster_GetSharedRegionalCertificateAuthority_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/GetSharedRegionalCertificateAuthority"
CloudRedisCluster_RescheduleClusterMaintenance_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/RescheduleClusterMaintenance"
CloudRedisCluster_ListBackupCollections_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/ListBackupCollections"
CloudRedisCluster_GetBackupCollection_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/GetBackupCollection"
CloudRedisCluster_ListBackups_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/ListBackups"
CloudRedisCluster_GetBackup_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/GetBackup"
CloudRedisCluster_DeleteBackup_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteBackup"
CloudRedisCluster_ExportBackup_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/ExportBackup"
CloudRedisCluster_BackupCluster_FullMethodName = "/google.cloud.redis.cluster.v1.CloudRedisCluster/BackupCluster"
)Variables
PscConnectionStatus_name, PscConnectionStatus_value
var (
PscConnectionStatus_name = map[int32]string{
0: "PSC_CONNECTION_STATUS_UNSPECIFIED",
1: "PSC_CONNECTION_STATUS_ACTIVE",
2: "PSC_CONNECTION_STATUS_NOT_FOUND",
}
PscConnectionStatus_value = map[string]int32{
"PSC_CONNECTION_STATUS_UNSPECIFIED": 0,
"PSC_CONNECTION_STATUS_ACTIVE": 1,
"PSC_CONNECTION_STATUS_NOT_FOUND": 2,
}
)Enum value maps for PscConnectionStatus.
AuthorizationMode_name, AuthorizationMode_value
var (
AuthorizationMode_name = map[int32]string{
0: "AUTH_MODE_UNSPECIFIED",
1: "AUTH_MODE_IAM_AUTH",
2: "AUTH_MODE_DISABLED",
}
AuthorizationMode_value = map[string]int32{
"AUTH_MODE_UNSPECIFIED": 0,
"AUTH_MODE_IAM_AUTH": 1,
"AUTH_MODE_DISABLED": 2,
}
)Enum value maps for AuthorizationMode.
NodeType_name, NodeType_value
var (
NodeType_name = map[int32]string{
0: "NODE_TYPE_UNSPECIFIED",
1: "REDIS_SHARED_CORE_NANO",
2: "REDIS_HIGHMEM_MEDIUM",
3: "REDIS_HIGHMEM_XLARGE",
4: "REDIS_STANDARD_SMALL",
7: "REDIS_HIGHCPU_MEDIUM",
8: "REDIS_STANDARD_LARGE",
9: "REDIS_HIGHMEM_2XLARGE",
}
NodeType_value = map[string]int32{
"NODE_TYPE_UNSPECIFIED": 0,
"REDIS_SHARED_CORE_NANO": 1,
"REDIS_HIGHMEM_MEDIUM": 2,
"REDIS_HIGHMEM_XLARGE": 3,
"REDIS_STANDARD_SMALL": 4,
"REDIS_HIGHCPU_MEDIUM": 7,
"REDIS_STANDARD_LARGE": 8,
"REDIS_HIGHMEM_2XLARGE": 9,
}
)Enum value maps for NodeType.
TransitEncryptionMode_name, TransitEncryptionMode_value
var (
TransitEncryptionMode_name = map[int32]string{
0: "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED",
1: "TRANSIT_ENCRYPTION_MODE_DISABLED",
2: "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION",
}
TransitEncryptionMode_value = map[string]int32{
"TRANSIT_ENCRYPTION_MODE_UNSPECIFIED": 0,
"TRANSIT_ENCRYPTION_MODE_DISABLED": 1,
"TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION": 2,
}
)Enum value maps for TransitEncryptionMode.
ServerCaMode_name, ServerCaMode_value
var (
ServerCaMode_name = map[int32]string{
0: "SERVER_CA_MODE_UNSPECIFIED",
1: "SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA",
2: "SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA",
3: "SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA",
}
ServerCaMode_value = map[string]int32{
"SERVER_CA_MODE_UNSPECIFIED": 0,
"SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA": 1,
"SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA": 2,
"SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA": 3,
}
)Enum value maps for ServerCaMode.
ConnectionType_name, ConnectionType_value
var (
ConnectionType_name = map[int32]string{
0: "CONNECTION_TYPE_UNSPECIFIED",
1: "CONNECTION_TYPE_DISCOVERY",
2: "CONNECTION_TYPE_PRIMARY",
3: "CONNECTION_TYPE_READER",
}
ConnectionType_value = map[string]int32{
"CONNECTION_TYPE_UNSPECIFIED": 0,
"CONNECTION_TYPE_DISCOVERY": 1,
"CONNECTION_TYPE_PRIMARY": 2,
"CONNECTION_TYPE_READER": 3,
}
)Enum value maps for ConnectionType.
Cluster_State_name, Cluster_State_value
var (
Cluster_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "UPDATING",
4: "DELETING",
}
Cluster_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"UPDATING": 3,
"DELETING": 4,
}
)Enum value maps for Cluster_State.
AutomatedBackupConfig_AutomatedBackupMode_name, AutomatedBackupConfig_AutomatedBackupMode_value
var (
AutomatedBackupConfig_AutomatedBackupMode_name = map[int32]string{
0: "AUTOMATED_BACKUP_MODE_UNSPECIFIED",
1: "DISABLED",
2: "ENABLED",
}
AutomatedBackupConfig_AutomatedBackupMode_value = map[string]int32{
"AUTOMATED_BACKUP_MODE_UNSPECIFIED": 0,
"DISABLED": 1,
"ENABLED": 2,
}
)Enum value maps for AutomatedBackupConfig_AutomatedBackupMode.
Backup_BackupType_name, Backup_BackupType_value
var (
Backup_BackupType_name = map[int32]string{
0: "BACKUP_TYPE_UNSPECIFIED",
1: "ON_DEMAND",
2: "AUTOMATED",
}
Backup_BackupType_value = map[string]int32{
"BACKUP_TYPE_UNSPECIFIED": 0,
"ON_DEMAND": 1,
"AUTOMATED": 2,
}
)Enum value maps for Backup_BackupType.
Backup_State_name, Backup_State_value
var (
Backup_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
4: "SUSPENDED",
}
Backup_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
"SUSPENDED": 4,
}
)Enum value maps for Backup_State.
CrossClusterReplicationConfig_ClusterRole_name, CrossClusterReplicationConfig_ClusterRole_value
var (
CrossClusterReplicationConfig_ClusterRole_name = map[int32]string{
0: "CLUSTER_ROLE_UNSPECIFIED",
1: "NONE",
2: "PRIMARY",
3: "SECONDARY",
}
CrossClusterReplicationConfig_ClusterRole_value = map[string]int32{
"CLUSTER_ROLE_UNSPECIFIED": 0,
"NONE": 1,
"PRIMARY": 2,
"SECONDARY": 3,
}
)Enum value maps for CrossClusterReplicationConfig_ClusterRole.
ClusterPersistenceConfig_PersistenceMode_name, ClusterPersistenceConfig_PersistenceMode_value
var (
ClusterPersistenceConfig_PersistenceMode_name = map[int32]string{
0: "PERSISTENCE_MODE_UNSPECIFIED",
1: "DISABLED",
2: "RDB",
3: "AOF",
}
ClusterPersistenceConfig_PersistenceMode_value = map[string]int32{
"PERSISTENCE_MODE_UNSPECIFIED": 0,
"DISABLED": 1,
"RDB": 2,
"AOF": 3,
}
)Enum value maps for ClusterPersistenceConfig_PersistenceMode.
ClusterPersistenceConfig_RDBConfig_SnapshotPeriod_name, ClusterPersistenceConfig_RDBConfig_SnapshotPeriod_value
var (
ClusterPersistenceConfig_RDBConfig_SnapshotPeriod_name = map[int32]string{
0: "SNAPSHOT_PERIOD_UNSPECIFIED",
1: "ONE_HOUR",
2: "SIX_HOURS",
3: "TWELVE_HOURS",
4: "TWENTY_FOUR_HOURS",
}
ClusterPersistenceConfig_RDBConfig_SnapshotPeriod_value = map[string]int32{
"SNAPSHOT_PERIOD_UNSPECIFIED": 0,
"ONE_HOUR": 1,
"SIX_HOURS": 2,
"TWELVE_HOURS": 3,
"TWENTY_FOUR_HOURS": 4,
}
)Enum value maps for ClusterPersistenceConfig_RDBConfig_SnapshotPeriod.
ClusterPersistenceConfig_AOFConfig_AppendFsync_name, ClusterPersistenceConfig_AOFConfig_AppendFsync_value
var (
ClusterPersistenceConfig_AOFConfig_AppendFsync_name = map[int32]string{
0: "APPEND_FSYNC_UNSPECIFIED",
1: "NO",
2: "EVERYSEC",
3: "ALWAYS",
}
ClusterPersistenceConfig_AOFConfig_AppendFsync_value = map[string]int32{
"APPEND_FSYNC_UNSPECIFIED": 0,
"NO": 1,
"EVERYSEC": 2,
"ALWAYS": 3,
}
)Enum value maps for ClusterPersistenceConfig_AOFConfig_AppendFsync.
ZoneDistributionConfig_ZoneDistributionMode_name, ZoneDistributionConfig_ZoneDistributionMode_value
var (
ZoneDistributionConfig_ZoneDistributionMode_name = map[int32]string{
0: "ZONE_DISTRIBUTION_MODE_UNSPECIFIED",
1: "MULTI_ZONE",
2: "SINGLE_ZONE",
}
ZoneDistributionConfig_ZoneDistributionMode_value = map[string]int32{
"ZONE_DISTRIBUTION_MODE_UNSPECIFIED": 0,
"MULTI_ZONE": 1,
"SINGLE_ZONE": 2,
}
)Enum value maps for ZoneDistributionConfig_ZoneDistributionMode.
RescheduleClusterMaintenanceRequest_RescheduleType_name, RescheduleClusterMaintenanceRequest_RescheduleType_value
var (
RescheduleClusterMaintenanceRequest_RescheduleType_name = map[int32]string{
0: "RESCHEDULE_TYPE_UNSPECIFIED",
1: "IMMEDIATE",
3: "SPECIFIC_TIME",
}
RescheduleClusterMaintenanceRequest_RescheduleType_value = map[string]int32{
"RESCHEDULE_TYPE_UNSPECIFIED": 0,
"IMMEDIATE": 1,
"SPECIFIC_TIME": 3,
}
)Enum value maps for RescheduleClusterMaintenanceRequest_RescheduleType.
EncryptionInfo_Type_name, EncryptionInfo_Type_value
var (
EncryptionInfo_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "GOOGLE_DEFAULT_ENCRYPTION",
2: "CUSTOMER_MANAGED_ENCRYPTION",
}
EncryptionInfo_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"GOOGLE_DEFAULT_ENCRYPTION": 1,
"CUSTOMER_MANAGED_ENCRYPTION": 2,
}
)Enum value maps for EncryptionInfo_Type.
EncryptionInfo_KmsKeyState_name, EncryptionInfo_KmsKeyState_value
var (
EncryptionInfo_KmsKeyState_name = map[int32]string{
0: "KMS_KEY_STATE_UNSPECIFIED",
1: "ENABLED",
2: "PERMISSION_DENIED",
3: "DISABLED",
4: "DESTROYED",
5: "DESTROY_SCHEDULED",
6: "EKM_KEY_UNREACHABLE_DETECTED",
7: "BILLING_DISABLED",
8: "UNKNOWN_FAILURE",
}
EncryptionInfo_KmsKeyState_value = map[string]int32{
"KMS_KEY_STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"PERMISSION_DENIED": 2,
"DISABLED": 3,
"DESTROYED": 4,
"DESTROY_SCHEDULED": 5,
"EKM_KEY_UNREACHABLE_DETECTED": 6,
"BILLING_DISABLED": 7,
"UNKNOWN_FAILURE": 8,
}
)Enum value maps for EncryptionInfo_KmsKeyState.
CloudRedisCluster_ServiceDesc
var CloudRedisCluster_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.redis.cluster.v1.CloudRedisCluster",
HandlerType: (*CloudRedisClusterServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListClusters",
Handler: _CloudRedisCluster_ListClusters_Handler,
},
{
MethodName: "GetCluster",
Handler: _CloudRedisCluster_GetCluster_Handler,
},
{
MethodName: "UpdateCluster",
Handler: _CloudRedisCluster_UpdateCluster_Handler,
},
{
MethodName: "DeleteCluster",
Handler: _CloudRedisCluster_DeleteCluster_Handler,
},
{
MethodName: "CreateCluster",
Handler: _CloudRedisCluster_CreateCluster_Handler,
},
{
MethodName: "GetClusterCertificateAuthority",
Handler: _CloudRedisCluster_GetClusterCertificateAuthority_Handler,
},
{
MethodName: "GetSharedRegionalCertificateAuthority",
Handler: _CloudRedisCluster_GetSharedRegionalCertificateAuthority_Handler,
},
{
MethodName: "RescheduleClusterMaintenance",
Handler: _CloudRedisCluster_RescheduleClusterMaintenance_Handler,
},
{
MethodName: "ListBackupCollections",
Handler: _CloudRedisCluster_ListBackupCollections_Handler,
},
{
MethodName: "GetBackupCollection",
Handler: _CloudRedisCluster_GetBackupCollection_Handler,
},
{
MethodName: "ListBackups",
Handler: _CloudRedisCluster_ListBackups_Handler,
},
{
MethodName: "GetBackup",
Handler: _CloudRedisCluster_GetBackup_Handler,
},
{
MethodName: "DeleteBackup",
Handler: _CloudRedisCluster_DeleteBackup_Handler,
},
{
MethodName: "ExportBackup",
Handler: _CloudRedisCluster_ExportBackup_Handler,
},
{
MethodName: "BackupCluster",
Handler: _CloudRedisCluster_BackupCluster_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/redis/cluster/v1/cloud_redis_cluster.proto",
}CloudRedisCluster_ServiceDesc is the grpc.ServiceDesc for CloudRedisCluster service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_redis_cluster_v1_cloud_redis_cluster_proto
var File_google_cloud_redis_cluster_v1_cloud_redis_cluster_proto protoreflect.FileDescriptorFunctions
func RegisterCloudRedisClusterServer
func RegisterCloudRedisClusterServer(s grpc.ServiceRegistrar, srv CloudRedisClusterServer)AuthorizationMode
type AuthorizationMode int32Available authorization mode of a Redis cluster.
AuthorizationMode_AUTH_MODE_UNSPECIFIED, AuthorizationMode_AUTH_MODE_IAM_AUTH, AuthorizationMode_AUTH_MODE_DISABLED
const (
// Not set.
AuthorizationMode_AUTH_MODE_UNSPECIFIED AuthorizationMode = 0
// IAM basic authorization mode
AuthorizationMode_AUTH_MODE_IAM_AUTH AuthorizationMode = 1
// Authorization disabled mode
AuthorizationMode_AUTH_MODE_DISABLED AuthorizationMode = 2
)func (AuthorizationMode) Descriptor
func (AuthorizationMode) Descriptor() protoreflect.EnumDescriptorfunc (AuthorizationMode) Enum
func (x AuthorizationMode) Enum() *AuthorizationModefunc (AuthorizationMode) EnumDescriptor
func (AuthorizationMode) EnumDescriptor() ([]byte, []int)Deprecated: Use AuthorizationMode.Descriptor instead.
func (AuthorizationMode) Number
func (x AuthorizationMode) Number() protoreflect.EnumNumberfunc (AuthorizationMode) String
func (x AuthorizationMode) String() stringfunc (AuthorizationMode) Type
func (AuthorizationMode) Type() protoreflect.EnumTypeAutomatedBackupConfig
type AutomatedBackupConfig struct {
// The schedule of automated backups.
//
// Types that are valid to be assigned to Schedule:
//
// *AutomatedBackupConfig_FixedFrequencySchedule_
Schedule isAutomatedBackupConfig_Schedule `protobuf_oneof:"schedule"`
// Optional. The automated backup mode. If the mode is disabled, the other
// fields will be ignored.
AutomatedBackupMode AutomatedBackupConfig_AutomatedBackupMode `protobuf:"varint,1,opt,name=automated_backup_mode,json=automatedBackupMode,proto3,enum=google.cloud.redis.cluster.v1.AutomatedBackupConfig_AutomatedBackupMode" json:"automated_backup_mode,omitempty"`
// Optional. How long to keep automated backups before the backups are
// deleted. The value should be between 1 day and 365 days. If not specified,
// the default value is 35 days.
Retention *durationpb.Duration `protobuf:"bytes,3,opt,name=retention,proto3,oneof" json:"retention,omitempty"`
// contains filtered or unexported fields
}The automated backup config for a cluster.
func (*AutomatedBackupConfig) Descriptor
func (*AutomatedBackupConfig) Descriptor() ([]byte, []int)Deprecated: Use AutomatedBackupConfig.ProtoReflect.Descriptor instead.
func (*AutomatedBackupConfig) GetAutomatedBackupMode
func (x *AutomatedBackupConfig) GetAutomatedBackupMode() AutomatedBackupConfig_AutomatedBackupModefunc (*AutomatedBackupConfig) GetFixedFrequencySchedule
func (x *AutomatedBackupConfig) GetFixedFrequencySchedule() *AutomatedBackupConfig_FixedFrequencySchedulefunc (*AutomatedBackupConfig) GetRetention
func (x *AutomatedBackupConfig) GetRetention() *durationpb.Durationfunc (*AutomatedBackupConfig) GetSchedule
func (x *AutomatedBackupConfig) GetSchedule() isAutomatedBackupConfig_Schedulefunc (*AutomatedBackupConfig) ProtoMessage
func (*AutomatedBackupConfig) ProtoMessage()func (*AutomatedBackupConfig) ProtoReflect
func (x *AutomatedBackupConfig) ProtoReflect() protoreflect.Messagefunc (*AutomatedBackupConfig) Reset
func (x *AutomatedBackupConfig) Reset()func (*AutomatedBackupConfig) String
func (x *AutomatedBackupConfig) String() stringAutomatedBackupConfig_AutomatedBackupMode
type AutomatedBackupConfig_AutomatedBackupMode int32The automated backup mode.
AutomatedBackupConfig_AUTOMATED_BACKUP_MODE_UNSPECIFIED, AutomatedBackupConfig_DISABLED, AutomatedBackupConfig_ENABLED
const (
// Default value. Automated backup config is not specified.
AutomatedBackupConfig_AUTOMATED_BACKUP_MODE_UNSPECIFIED AutomatedBackupConfig_AutomatedBackupMode = 0
// Automated backup config disabled.
AutomatedBackupConfig_DISABLED AutomatedBackupConfig_AutomatedBackupMode = 1
// Automated backup config enabled.
AutomatedBackupConfig_ENABLED AutomatedBackupConfig_AutomatedBackupMode = 2
)func (AutomatedBackupConfig_AutomatedBackupMode) Descriptor
func (AutomatedBackupConfig_AutomatedBackupMode) Descriptor() protoreflect.EnumDescriptorfunc (AutomatedBackupConfig_AutomatedBackupMode) Enum
func (x AutomatedBackupConfig_AutomatedBackupMode) Enum() *AutomatedBackupConfig_AutomatedBackupModefunc (AutomatedBackupConfig_AutomatedBackupMode) EnumDescriptor
func (AutomatedBackupConfig_AutomatedBackupMode) EnumDescriptor() ([]byte, []int)Deprecated: Use AutomatedBackupConfig_AutomatedBackupMode.Descriptor instead.
func (AutomatedBackupConfig_AutomatedBackupMode) Number
func (x AutomatedBackupConfig_AutomatedBackupMode) Number() protoreflect.EnumNumberfunc (AutomatedBackupConfig_AutomatedBackupMode) String
func (x AutomatedBackupConfig_AutomatedBackupMode) String() stringfunc (AutomatedBackupConfig_AutomatedBackupMode) Type
func (AutomatedBackupConfig_AutomatedBackupMode) Type() protoreflect.EnumTypeAutomatedBackupConfig_FixedFrequencySchedule
type AutomatedBackupConfig_FixedFrequencySchedule struct {
// Required. The start time of every automated backup in UTC. It must be set
// to the start of an hour. This field is required.
StartTime *timeofday.TimeOfDay `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"`
// contains filtered or unexported fields
}This schedule allows the backup to be triggered at a fixed frequency (currently only daily is supported).
func (*AutomatedBackupConfig_FixedFrequencySchedule) Descriptor
func (*AutomatedBackupConfig_FixedFrequencySchedule) Descriptor() ([]byte, []int)Deprecated: Use AutomatedBackupConfig_FixedFrequencySchedule.ProtoReflect.Descriptor instead.
func (*AutomatedBackupConfig_FixedFrequencySchedule) GetStartTime
func (x *AutomatedBackupConfig_FixedFrequencySchedule) GetStartTime() *timeofday.TimeOfDayfunc (*AutomatedBackupConfig_FixedFrequencySchedule) ProtoMessage
func (*AutomatedBackupConfig_FixedFrequencySchedule) ProtoMessage()func (*AutomatedBackupConfig_FixedFrequencySchedule) ProtoReflect
func (x *AutomatedBackupConfig_FixedFrequencySchedule) ProtoReflect() protoreflect.Messagefunc (*AutomatedBackupConfig_FixedFrequencySchedule) Reset
func (x *AutomatedBackupConfig_FixedFrequencySchedule) Reset()func (*AutomatedBackupConfig_FixedFrequencySchedule) String
func (x *AutomatedBackupConfig_FixedFrequencySchedule) String() stringAutomatedBackupConfig_FixedFrequencySchedule_
type AutomatedBackupConfig_FixedFrequencySchedule_ struct {
// Optional. Trigger automated backups at a fixed frequency.
FixedFrequencySchedule *AutomatedBackupConfig_FixedFrequencySchedule `protobuf:"bytes,2,opt,name=fixed_frequency_schedule,json=fixedFrequencySchedule,proto3,oneof"`
}Backup
type Backup struct {
// Identifier. Full resource path of the backup. the last part of the name is
// the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
// UID] OR customer specified while backup cluster. Example:
// 20240515123000_1234
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the backup was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Cluster resource path of this backup.
Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Output only. Cluster uid of this backup.
ClusterUid string `protobuf:"bytes,4,opt,name=cluster_uid,json=clusterUid,proto3" json:"cluster_uid,omitempty"`
// Output only. Total size of the backup in bytes.
TotalSizeBytes int64 `protobuf:"varint,5,opt,name=total_size_bytes,json=totalSizeBytes,proto3" json:"total_size_bytes,omitempty"`
// Output only. The time when the backup will expire.
ExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// Output only. redis-7.2, valkey-7.5
EngineVersion string `protobuf:"bytes,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
// Output only. List of backup files of the backup.
BackupFiles []*BackupFile `protobuf:"bytes,8,rep,name=backup_files,json=backupFiles,proto3" json:"backup_files,omitempty"`
// Output only. Node type of the cluster.
NodeType NodeType `protobuf:"varint,9,opt,name=node_type,json=nodeType,proto3,enum=google.cloud.redis.cluster.v1.NodeType" json:"node_type,omitempty"`
// Output only. Number of replicas for the cluster.
ReplicaCount int32 `protobuf:"varint,10,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"`
// Output only. Number of shards for the cluster.
ShardCount int32 `protobuf:"varint,11,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty"`
// Output only. Type of the backup.
BackupType Backup_BackupType `protobuf:"varint,12,opt,name=backup_type,json=backupType,proto3,enum=google.cloud.redis.cluster.v1.Backup_BackupType" json:"backup_type,omitempty"`
// Output only. State of the backup.
State Backup_State `protobuf:"varint,13,opt,name=state,proto3,enum=google.cloud.redis.cluster.v1.Backup_State" json:"state,omitempty"`
// Output only. Encryption information of the backup.
EncryptionInfo *EncryptionInfo `protobuf:"bytes,14,opt,name=encryption_info,json=encryptionInfo,proto3" json:"encryption_info,omitempty"`
// Output only. System assigned unique identifier of the backup.
Uid string `protobuf:"bytes,15,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}Backup of a cluster.
func (*Backup) Descriptor
Deprecated: Use Backup.ProtoReflect.Descriptor instead.
func (*Backup) GetBackupFiles
func (x *Backup) GetBackupFiles() []*BackupFilefunc (*Backup) GetBackupType
func (x *Backup) GetBackupType() Backup_BackupTypefunc (*Backup) GetCluster
func (*Backup) GetClusterUid
func (*Backup) GetCreateTime
func (x *Backup) GetCreateTime() *timestamppb.Timestampfunc (*Backup) GetEncryptionInfo
func (x *Backup) GetEncryptionInfo() *EncryptionInfofunc (*Backup) GetEngineVersion
func (*Backup) GetExpireTime
func (x *Backup) GetExpireTime() *timestamppb.Timestampfunc (*Backup) GetName
func (*Backup) GetNodeType
func (*Backup) GetReplicaCount
func (*Backup) GetShardCount
func (*Backup) GetState
func (x *Backup) GetState() Backup_Statefunc (*Backup) GetTotalSizeBytes
func (*Backup) GetUid
func (*Backup) ProtoMessage
func (*Backup) ProtoMessage()func (*Backup) ProtoReflect
func (x *Backup) ProtoReflect() protoreflect.Messagefunc (*Backup) Reset
func (x *Backup) Reset()func (*Backup) String
BackupClusterRequest
type BackupClusterRequest struct {
// Required. Redis cluster resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
// If not specified, the default value is 100 years.
Ttl *durationpb.Duration `protobuf:"bytes,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
// Optional. The id of the backup to be created. If not specified, the
// default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
BackupId *string `protobuf:"bytes,3,opt,name=backup_id,json=backupId,proto3,oneof" json:"backup_id,omitempty"`
// contains filtered or unexported fields
}Request for [BackupCluster].
func (*BackupClusterRequest) Descriptor
func (*BackupClusterRequest) Descriptor() ([]byte, []int)Deprecated: Use BackupClusterRequest.ProtoReflect.Descriptor instead.
func (*BackupClusterRequest) GetBackupId
func (x *BackupClusterRequest) GetBackupId() stringfunc (*BackupClusterRequest) GetName
func (x *BackupClusterRequest) GetName() stringfunc (*BackupClusterRequest) GetTtl
func (x *BackupClusterRequest) GetTtl() *durationpb.Durationfunc (*BackupClusterRequest) ProtoMessage
func (*BackupClusterRequest) ProtoMessage()func (*BackupClusterRequest) ProtoReflect
func (x *BackupClusterRequest) ProtoReflect() protoreflect.Messagefunc (*BackupClusterRequest) Reset
func (x *BackupClusterRequest) Reset()func (*BackupClusterRequest) String
func (x *BackupClusterRequest) String() stringBackupCollection
type BackupCollection struct {
// Identifier. Full resource path of the backup collection.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The cluster uid of the backup collection.
ClusterUid string `protobuf:"bytes,3,opt,name=cluster_uid,json=clusterUid,proto3" json:"cluster_uid,omitempty"`
// Output only. The full resource path of the cluster the backup collection
// belongs to. Example:
// projects/{project}/locations/{location}/clusters/{cluster}
Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Output only. The KMS key used to encrypt the backups under this backup
// collection.
KmsKey string `protobuf:"bytes,5,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
// Output only. System assigned unique identifier of the backup collection.
Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}BackupCollection of a cluster.
func (*BackupCollection) Descriptor
func (*BackupCollection) Descriptor() ([]byte, []int)Deprecated: Use BackupCollection.ProtoReflect.Descriptor instead.
func (*BackupCollection) GetCluster
func (x *BackupCollection) GetCluster() stringfunc (*BackupCollection) GetClusterUid
func (x *BackupCollection) GetClusterUid() stringfunc (*BackupCollection) GetKmsKey
func (x *BackupCollection) GetKmsKey() stringfunc (*BackupCollection) GetName
func (x *BackupCollection) GetName() stringfunc (*BackupCollection) GetUid
func (x *BackupCollection) GetUid() stringfunc (*BackupCollection) ProtoMessage
func (*BackupCollection) ProtoMessage()func (*BackupCollection) ProtoReflect
func (x *BackupCollection) ProtoReflect() protoreflect.Messagefunc (*BackupCollection) Reset
func (x *BackupCollection) Reset()func (*BackupCollection) String
func (x *BackupCollection) String() stringBackupFile
type BackupFile struct {
// Output only. e.g: Backup is consisted of multiple backup files.
func (*BackupFile) Descriptor
func (*BackupFile) Descriptor() ([]byte, []int)Deprecated: Use BackupFile.ProtoReflect.Descriptor instead.
func (*BackupFile) GetCreateTime
func (x *BackupFile) GetCreateTime() *timestamppb.Timestampfunc (*BackupFile) GetFileName
func (x *BackupFile) GetFileName() stringfunc (*BackupFile) GetSizeBytes
func (x *BackupFile) GetSizeBytes() int64func (*BackupFile) ProtoMessage
func (*BackupFile) ProtoMessage()func (*BackupFile) ProtoReflect
func (x *BackupFile) ProtoReflect() protoreflect.Messagefunc (*BackupFile) Reset
func (x *BackupFile) Reset()func (*BackupFile) String
func (x *BackupFile) String() stringBackup_BackupType
type Backup_BackupType int32Type of the backup.
Backup_BACKUP_TYPE_UNSPECIFIED, Backup_ON_DEMAND, Backup_AUTOMATED
const (
// The default value, not set.
Backup_BACKUP_TYPE_UNSPECIFIED Backup_BackupType = 0
// On-demand backup.
Backup_ON_DEMAND Backup_BackupType = 1
// Automated backup.
Backup_AUTOMATED Backup_BackupType = 2
)func (Backup_BackupType) Descriptor
func (Backup_BackupType) Descriptor() protoreflect.EnumDescriptorfunc (Backup_BackupType) Enum
func (x Backup_BackupType) Enum() *Backup_BackupTypefunc (Backup_BackupType) EnumDescriptor
func (Backup_BackupType) EnumDescriptor() ([]byte, []int)Deprecated: Use Backup_BackupType.Descriptor instead.
func (Backup_BackupType) Number
func (x Backup_BackupType) Number() protoreflect.EnumNumberfunc (Backup_BackupType) String
func (x Backup_BackupType) String() stringfunc (Backup_BackupType) Type
func (Backup_BackupType) Type() protoreflect.EnumTypeBackup_State
type Backup_State int32State of the backup.
Backup_STATE_UNSPECIFIED, Backup_CREATING, Backup_ACTIVE, Backup_DELETING, Backup_SUSPENDED
const (
// The default value, not set.
Backup_STATE_UNSPECIFIED Backup_State = 0
// The backup is being created.
Backup_CREATING Backup_State = 1
// The backup is active to be used.
Backup_ACTIVE Backup_State = 2
// The backup is being deleted.
Backup_DELETING Backup_State = 3
// The backup is currently suspended due to reasons like project deletion,
// billing account closure, etc.
Backup_SUSPENDED Backup_State = 4
)func (Backup_State) Descriptor
func (Backup_State) Descriptor() protoreflect.EnumDescriptorfunc (Backup_State) Enum
func (x Backup_State) Enum() *Backup_Statefunc (Backup_State) EnumDescriptor
func (Backup_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Backup_State.Descriptor instead.
func (Backup_State) Number
func (x Backup_State) Number() protoreflect.EnumNumberfunc (Backup_State) String
func (x Backup_State) String() stringfunc (Backup_State) Type
func (Backup_State) Type() protoreflect.EnumTypeCertificateAuthority
type CertificateAuthority struct {
// server ca information
//
// Types that are valid to be assigned to ServerCa:
//
// *CertificateAuthority_ManagedServerCa
ServerCa isCertificateAuthority_ServerCa `protobuf_oneof:"server_ca"`
// Identifier. Unique name of the resource in this scope including project,
// location and cluster using the form:
//
// `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Redis cluster certificate authority
func (*CertificateAuthority) Descriptor
func (*CertificateAuthority) Descriptor() ([]byte, []int)Deprecated: Use CertificateAuthority.ProtoReflect.Descriptor instead.
func (*CertificateAuthority) GetManagedServerCa
func (x *CertificateAuthority) GetManagedServerCa() *CertificateAuthority_ManagedCertificateAuthorityfunc (*CertificateAuthority) GetName
func (x *CertificateAuthority) GetName() stringfunc (*CertificateAuthority) GetServerCa
func (x *CertificateAuthority) GetServerCa() isCertificateAuthority_ServerCafunc (*CertificateAuthority) ProtoMessage
func (*CertificateAuthority) ProtoMessage()func (*CertificateAuthority) ProtoReflect
func (x *CertificateAuthority) ProtoReflect() protoreflect.Messagefunc (*CertificateAuthority) Reset
func (x *CertificateAuthority) Reset()func (*CertificateAuthority) String
func (x *CertificateAuthority) String() stringCertificateAuthority_ManagedCertificateAuthority
type CertificateAuthority_ManagedCertificateAuthority struct {
// The PEM encoded CA certificate chains for redis managed
// server authentication
CaCerts []*CertificateAuthority_ManagedCertificateAuthority_CertChain `protobuf:"bytes,1,rep,name=ca_certs,json=caCerts,proto3" json:"ca_certs,omitempty"`
// contains filtered or unexported fields
}func (*CertificateAuthority_ManagedCertificateAuthority) Descriptor
func (*CertificateAuthority_ManagedCertificateAuthority) Descriptor() ([]byte, []int)Deprecated: Use CertificateAuthority_ManagedCertificateAuthority.ProtoReflect.Descriptor instead.
func (*CertificateAuthority_ManagedCertificateAuthority) GetCaCerts
func (x *CertificateAuthority_ManagedCertificateAuthority) GetCaCerts() []*CertificateAuthority_ManagedCertificateAuthority_CertChainfunc (*CertificateAuthority_ManagedCertificateAuthority) ProtoMessage
func (*CertificateAuthority_ManagedCertificateAuthority) ProtoMessage()func (*CertificateAuthority_ManagedCertificateAuthority) ProtoReflect
func (x *CertificateAuthority_ManagedCertificateAuthority) ProtoReflect() protoreflect.Messagefunc (*CertificateAuthority_ManagedCertificateAuthority) Reset
func (x *CertificateAuthority_ManagedCertificateAuthority) Reset()func (*CertificateAuthority_ManagedCertificateAuthority) String
func (x *CertificateAuthority_ManagedCertificateAuthority) String() stringCertificateAuthority_ManagedCertificateAuthority_CertChain
type CertificateAuthority_ManagedCertificateAuthority_CertChain struct {
// The certificates that form the CA chain, from leaf to root order.
Certificates []string `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"`
// contains filtered or unexported fields
}func (*CertificateAuthority_ManagedCertificateAuthority_CertChain) Descriptor
func (*CertificateAuthority_ManagedCertificateAuthority_CertChain) Descriptor() ([]byte, []int)Deprecated: Use CertificateAuthority_ManagedCertificateAuthority_CertChain.ProtoReflect.Descriptor instead.
func (*CertificateAuthority_ManagedCertificateAuthority_CertChain) GetCertificates
func (x *CertificateAuthority_ManagedCertificateAuthority_CertChain) GetCertificates() []stringfunc (*CertificateAuthority_ManagedCertificateAuthority_CertChain) ProtoMessage
func (*CertificateAuthority_ManagedCertificateAuthority_CertChain) ProtoMessage()func (*CertificateAuthority_ManagedCertificateAuthority_CertChain) ProtoReflect
func (x *CertificateAuthority_ManagedCertificateAuthority_CertChain) ProtoReflect() protoreflect.Messagefunc (*CertificateAuthority_ManagedCertificateAuthority_CertChain) Reset
func (x *CertificateAuthority_ManagedCertificateAuthority_CertChain) Reset()func (*CertificateAuthority_ManagedCertificateAuthority_CertChain) String
func (x *CertificateAuthority_ManagedCertificateAuthority_CertChain) String() stringCertificateAuthority_ManagedServerCa
type CertificateAuthority_ManagedServerCa struct {
ManagedServerCa *CertificateAuthority_ManagedCertificateAuthority `protobuf:"bytes,1,opt,name=managed_server_ca,json=managedServerCa,proto3,oneof"`
}CloudRedisClusterClient
type CloudRedisClusterClient interface {
// Lists all Redis clusters owned by a project in either the specified
// location (region) or all locations.
//
// The location should have the following format:
//
// * `projects/{project_id}/locations/{location_id}`
//
// If `location_id` is specified as `-` (wildcard), then all regions
// available to the project are queried, and the results are aggregated.
ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error)
// Gets the details of a specific Redis cluster.
GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error)
// Updates the metadata and configuration of a specific Redis cluster.
//
// Completed longrunning.Operation will contain the new cluster object
// in the response field. The returned operation is automatically deleted
// after a few hours, so there is no need to call DeleteOperation.
UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a specific Redis cluster. Cluster stops serving and data is
// deleted.
DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates a Redis cluster based on the specified properties.
// The creation is executed asynchronously and callers may check the returned
// operation to track its progress. Once the operation is completed the Redis
// cluster will be fully functional. The completed longrunning.Operation will
// contain the new cluster object in the response field.
//
// The returned operation is automatically deleted after a few hours, so there
// is no need to call DeleteOperation.
CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets the details of certificate authority information for Redis cluster.
GetClusterCertificateAuthority(ctx context.Context, in *GetClusterCertificateAuthorityRequest, opts ...grpc.CallOption) (*CertificateAuthority, error)
// Gets the details of regional certificate authority information for Redis
// cluster.
GetSharedRegionalCertificateAuthority(ctx context.Context, in *GetSharedRegionalCertificateAuthorityRequest, opts ...grpc.CallOption) (*SharedRegionalCertificateAuthority, error)
// Reschedules upcoming maintenance event.
RescheduleClusterMaintenance(ctx context.Context, in *RescheduleClusterMaintenanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists all backup collections owned by a consumer project in either the
// specified location (region) or all locations.
//
// If `location_id` is specified as `-` (wildcard), then all regions
// available to the project are queried, and the results are aggregated.
ListBackupCollections(ctx context.Context, in *ListBackupCollectionsRequest, opts ...grpc.CallOption) (*ListBackupCollectionsResponse, error)
// Get a backup collection.
GetBackupCollection(ctx context.Context, in *GetBackupCollectionRequest, opts ...grpc.CallOption) (*BackupCollection, error)
// Lists all backups owned by a backup collection.
ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error)
// Gets the details of a specific backup.
GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error)
// Deletes a specific backup.
DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Exports a specific backup to a customer target Cloud Storage URI.
ExportBackup(ctx context.Context, in *ExportBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Backup Redis Cluster.
// If this is the first time a backup is being created, a backup collection
// will be created at the backend, and this backup belongs to this collection.
// Both collection and backup will have a resource name. Backup will be
// executed for each shard. A replica (primary if nonHA) will be selected to
// perform the execution. Backup call will be rejected if there is an ongoing
// backup or update operation. Be aware that during preview, if the cluster's
// internal software version is too old, critical update will be performed
// before actual backup. Once the internal software version is updated to the
// minimum version required by the backup feature, subsequent backups will not
// require critical update. After preview, there will be no critical update
// needed for backup.
BackupCluster(ctx context.Context, in *BackupClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}CloudRedisClusterClient is the client API for CloudRedisCluster service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCloudRedisClusterClient
func NewCloudRedisClusterClient(cc grpc.ClientConnInterface) CloudRedisClusterClientCloudRedisClusterServer
type CloudRedisClusterServer interface {
// Lists all Redis clusters owned by a project in either the specified
// location (region) or all locations.
//
// The location should have the following format:
//
// * `projects/{project_id}/locations/{location_id}`
//
// If `location_id` is specified as `-` (wildcard), then all regions
// available to the project are queried, and the results are aggregated.
ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
// Gets the details of a specific Redis cluster.
GetCluster(context.Context, *GetClusterRequest) (*Cluster, error)
// Updates the metadata and configuration of a specific Redis cluster.
//
// Completed longrunning.Operation will contain the new cluster object
// in the response field. The returned operation is automatically deleted
// after a few hours, so there is no need to call DeleteOperation.
UpdateCluster(context.Context, *UpdateClusterRequest) (*longrunningpb.Operation, error)
// Deletes a specific Redis cluster. Cluster stops serving and data is
// deleted.
DeleteCluster(context.Context, *DeleteClusterRequest) (*longrunningpb.Operation, error)
// Creates a Redis cluster based on the specified properties.
// The creation is executed asynchronously and callers may check the returned
// operation to track its progress. Once the operation is completed the Redis
// cluster will be fully functional. The completed longrunning.Operation will
// contain the new cluster object in the response field.
//
// The returned operation is automatically deleted after a few hours, so there
// is no need to call DeleteOperation.
CreateCluster(context.Context, *CreateClusterRequest) (*longrunningpb.Operation, error)
// Gets the details of certificate authority information for Redis cluster.
GetClusterCertificateAuthority(context.Context, *GetClusterCertificateAuthorityRequest) (*CertificateAuthority, error)
// Gets the details of regional certificate authority information for Redis
// cluster.
GetSharedRegionalCertificateAuthority(context.Context, *GetSharedRegionalCertificateAuthorityRequest) (*SharedRegionalCertificateAuthority, error)
// Reschedules upcoming maintenance event.
RescheduleClusterMaintenance(context.Context, *RescheduleClusterMaintenanceRequest) (*longrunningpb.Operation, error)
// Lists all backup collections owned by a consumer project in either the
// specified location (region) or all locations.
//
// If `location_id` is specified as `-` (wildcard), then all regions
// available to the project are queried, and the results are aggregated.
ListBackupCollections(context.Context, *ListBackupCollectionsRequest) (*ListBackupCollectionsResponse, error)
// Get a backup collection.
GetBackupCollection(context.Context, *GetBackupCollectionRequest) (*BackupCollection, error)
// Lists all backups owned by a backup collection.
ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
// Gets the details of a specific backup.
GetBackup(context.Context, *GetBackupRequest) (*Backup, error)
// Deletes a specific backup.
DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error)
// Exports a specific backup to a customer target Cloud Storage URI.
ExportBackup(context.Context, *ExportBackupRequest) (*longrunningpb.Operation, error)
// Backup Redis Cluster.
// If this is the first time a backup is being created, a backup collection
// will be created at the backend, and this backup belongs to this collection.
// Both collection and backup will have a resource name. Backup will be
// executed for each shard. A replica (primary if nonHA) will be selected to
// perform the execution. Backup call will be rejected if there is an ongoing
// backup or update operation. Be aware that during preview, if the cluster's
// internal software version is too old, critical update will be performed
// before actual backup. Once the internal software version is updated to the
// minimum version required by the backup feature, subsequent backups will not
// require critical update. After preview, there will be no critical update
// needed for backup.
BackupCluster(context.Context, *BackupClusterRequest) (*longrunningpb.Operation, error)
}CloudRedisClusterServer is the server API for CloudRedisCluster service. All implementations should embed UnimplementedCloudRedisClusterServer for forward compatibility
Cluster
type Cluster struct {
// The source to import from.
//
// Types that are valid to be assigned to ImportSources:
//
// *Cluster_GcsSource
// *Cluster_ManagedBackupSource_
ImportSources isCluster_ImportSources `protobuf_oneof:"import_sources"`
// Required. Identifier. Unique name of the resource in this scope including
// project and location using the form:
//
// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The timestamp associated with the cluster creation request.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The current state of this cluster.
// Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
State Cluster_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.redis.cluster.v1.Cluster_State" json:"state,omitempty"`
// Output only. System assigned, unique identifier for the cluster.
Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"`
// Optional. The number of replica nodes per shard.
ReplicaCount *int32 `protobuf:"varint,8,opt,name=replica_count,json=replicaCount,proto3,oneof" json:"replica_count,omitempty"`
// Optional. The authorization mode of the Redis cluster.
// If not provided, auth feature is disabled for the cluster.
AuthorizationMode AuthorizationMode `protobuf:"varint,11,opt,name=authorization_mode,json=authorizationMode,proto3,enum=google.cloud.redis.cluster.v1.AuthorizationMode" json:"authorization_mode,omitempty"`
// Optional. The in-transit encryption for the Redis cluster.
// If not provided, encryption is disabled for the cluster.
TransitEncryptionMode TransitEncryptionMode `protobuf:"varint,12,opt,name=transit_encryption_mode,json=transitEncryptionMode,proto3,enum=google.cloud.redis.cluster.v1.TransitEncryptionMode" json:"transit_encryption_mode,omitempty"`
// Output only. Redis memory size in GB for the entire cluster rounded up to
// the next integer.
SizeGb *int32 `protobuf:"varint,13,opt,name=size_gb,json=sizeGb,proto3,oneof" json:"size_gb,omitempty"`
// Optional. Number of shards for the Redis cluster.
ShardCount *int32 `protobuf:"varint,14,opt,name=shard_count,json=shardCount,proto3,oneof" json:"shard_count,omitempty"`
// Optional. Each PscConfig configures the consumer network where IPs will
// be designated to the cluster for client access through Private Service
// Connect Automation. Currently, only one PscConfig is supported.
PscConfigs []*PscConfig `protobuf:"bytes,15,rep,name=psc_configs,json=pscConfigs,proto3" json:"psc_configs,omitempty"`
// Output only. Endpoints created on each given network, for Redis clients to
// connect to the cluster. Currently only one discovery endpoint is supported.
DiscoveryEndpoints []*DiscoveryEndpoint `protobuf:"bytes,16,rep,name=discovery_endpoints,json=discoveryEndpoints,proto3" json:"discovery_endpoints,omitempty"`
// Output only. The list of PSC connections that are auto-created through
// service connectivity automation.
PscConnections []*PscConnection `protobuf:"bytes,17,rep,name=psc_connections,json=pscConnections,proto3" json:"psc_connections,omitempty"`
// Output only. Additional information about the current state of the cluster.
StateInfo *Cluster_StateInfo `protobuf:"bytes,18,opt,name=state_info,json=stateInfo,proto3" json:"state_info,omitempty"`
// Optional. The type of a redis node in the cluster. NodeType determines the
// underlying machine-type of a redis node.
NodeType NodeType `protobuf:"varint,19,opt,name=node_type,json=nodeType,proto3,enum=google.cloud.redis.cluster.v1.NodeType" json:"node_type,omitempty"`
// Optional. Persistence config (RDB, AOF) for the cluster.
PersistenceConfig *ClusterPersistenceConfig `protobuf:"bytes,20,opt,name=persistence_config,json=persistenceConfig,proto3" json:"persistence_config,omitempty"`
// Optional. Key/Value pairs of customer overrides for mutable Redis Configs
RedisConfigs map[string]string `protobuf:"bytes,21,rep,name=redis_configs,json=redisConfigs,proto3" json:"redis_configs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Output only. Precise value of redis memory size in GB for the entire
// cluster.
PreciseSizeGb *float64 `protobuf:"fixed64,22,opt,name=precise_size_gb,json=preciseSizeGb,proto3,oneof" json:"precise_size_gb,omitempty"`
// Optional. This config will be used to determine how the customer wants us
// to distribute cluster resources within the region.
ZoneDistributionConfig *ZoneDistributionConfig `protobuf:"bytes,23,opt,name=zone_distribution_config,json=zoneDistributionConfig,proto3" json:"zone_distribution_config,omitempty"`
// Optional. Cross cluster replication config.
CrossClusterReplicationConfig *CrossClusterReplicationConfig `protobuf:"bytes,24,opt,name=cross_cluster_replication_config,json=crossClusterReplicationConfig,proto3" json:"cross_cluster_replication_config,omitempty"`
// Optional. The delete operation will fail when the value is set to true.
DeletionProtectionEnabled *bool `protobuf:"varint,25,opt,name=deletion_protection_enabled,json=deletionProtectionEnabled,proto3,oneof" json:"deletion_protection_enabled,omitempty"`
// Optional. ClusterMaintenancePolicy determines when to allow or deny
// updates.
MaintenancePolicy *ClusterMaintenancePolicy `protobuf:"bytes,26,opt,name=maintenance_policy,json=maintenancePolicy,proto3,oneof" json:"maintenance_policy,omitempty"`
// Output only. ClusterMaintenanceSchedule Output only Published maintenance
// schedule.
MaintenanceSchedule *ClusterMaintenanceSchedule `protobuf:"bytes,27,opt,name=maintenance_schedule,json=maintenanceSchedule,proto3,oneof" json:"maintenance_schedule,omitempty"`
// Output only. Service attachment details to configure Psc connections
PscServiceAttachments []*PscServiceAttachment `protobuf:"bytes,30,rep,name=psc_service_attachments,json=pscServiceAttachments,proto3" json:"psc_service_attachments,omitempty"`
// Optional. A list of cluster enpoints.
ClusterEndpoints []*ClusterEndpoint `protobuf:"bytes,36,rep,name=cluster_endpoints,json=clusterEndpoints,proto3" json:"cluster_endpoints,omitempty"`
// Optional. Output only. The backup collection full resource name. Example:
// projects/{project}/locations/{location}/backupCollections/{collection}
BackupCollection *string `protobuf:"bytes,39,opt,name=backup_collection,json=backupCollection,proto3,oneof" json:"backup_collection,omitempty"`
// Optional. The KMS key used to encrypt the at-rest data of the cluster.
KmsKey *string `protobuf:"bytes,40,opt,name=kms_key,json=kmsKey,proto3,oneof" json:"kms_key,omitempty"`
// Optional. The automated backup config for the cluster.
AutomatedBackupConfig *AutomatedBackupConfig `protobuf:"bytes,42,opt,name=automated_backup_config,json=automatedBackupConfig,proto3" json:"automated_backup_config,omitempty"`
// Output only. Encryption information of the data at rest of the cluster.
EncryptionInfo *EncryptionInfo `protobuf:"bytes,43,opt,name=encryption_info,json=encryptionInfo,proto3" json:"encryption_info,omitempty"`
// Optional. Server CA mode for the cluster.
ServerCaMode *ServerCaMode `protobuf:"varint,53,opt,name=server_ca_mode,json=serverCaMode,proto3,enum=google.cloud.redis.cluster.v1.ServerCaMode,oneof" json:"server_ca_mode,omitempty"`
// Optional. Customer-managed CA pool for the cluster. Only applicable for
// BYOCA i.e. if server_ca_mode is SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA.
// Format: "projects/{project}/locations/{region}/caPools/{ca_pool}".
ServerCaPool *string `protobuf:"bytes,54,opt,name=server_ca_pool,json=serverCaPool,proto3,oneof" json:"server_ca_pool,omitempty"`
// Optional. Input only. Rotate the server certificates.
RotateServerCertificate *bool `protobuf:"varint,55,opt,name=rotate_server_certificate,json=rotateServerCertificate,proto3,oneof" json:"rotate_server_certificate,omitempty"`
// contains filtered or unexported fields
}A cluster instance.
func (*Cluster) Descriptor
Deprecated: Use Cluster.ProtoReflect.Descriptor instead.
func (*Cluster) GetAuthorizationMode
func (x *Cluster) GetAuthorizationMode() AuthorizationModefunc (*Cluster) GetAutomatedBackupConfig
func (x *Cluster) GetAutomatedBackupConfig() *AutomatedBackupConfigfunc (*Cluster) GetBackupCollection
func (*Cluster) GetClusterEndpoints
func (x *Cluster) GetClusterEndpoints() []*ClusterEndpointfunc (*Cluster) GetCreateTime
func (x *Cluster) GetCreateTime() *timestamppb.Timestampfunc (*Cluster) GetCrossClusterReplicationConfig
func (x *Cluster) GetCrossClusterReplicationConfig() *CrossClusterReplicationConfigfunc (*Cluster) GetDeletionProtectionEnabled
func (*Cluster) GetDiscoveryEndpoints
func (x *Cluster) GetDiscoveryEndpoints() []*DiscoveryEndpointfunc (*Cluster) GetEncryptionInfo
func (x *Cluster) GetEncryptionInfo() *EncryptionInfofunc (*Cluster) GetGcsSource
func (x *Cluster) GetGcsSource() *Cluster_GcsBackupSourcefunc (*Cluster) GetImportSources
func (x *Cluster) GetImportSources() isCluster_ImportSourcesfunc (*Cluster) GetKmsKey
func (*Cluster) GetMaintenancePolicy
func (x *Cluster) GetMaintenancePolicy() *ClusterMaintenancePolicyfunc (*Cluster) GetMaintenanceSchedule
func (x *Cluster) GetMaintenanceSchedule() *ClusterMaintenanceSchedulefunc (*Cluster) GetManagedBackupSource
func (x *Cluster) GetManagedBackupSource() *Cluster_ManagedBackupSourcefunc (*Cluster) GetName
func (*Cluster) GetNodeType
func (*Cluster) GetPersistenceConfig
func (x *Cluster) GetPersistenceConfig() *ClusterPersistenceConfigfunc (*Cluster) GetPreciseSizeGb
func (*Cluster) GetPscConfigs
func (*Cluster) GetPscConnections
func (x *Cluster) GetPscConnections() []*PscConnectionfunc (*Cluster) GetPscServiceAttachments
func (x *Cluster) GetPscServiceAttachments() []*PscServiceAttachmentfunc (*Cluster) GetRedisConfigs
func (*Cluster) GetReplicaCount
func (*Cluster) GetRotateServerCertificate
func (*Cluster) GetServerCaMode
func (x *Cluster) GetServerCaMode() ServerCaModefunc (*Cluster) GetServerCaPool
func (*Cluster) GetShardCount
func (*Cluster) GetSizeGb
func (*Cluster) GetState
func (x *Cluster) GetState() Cluster_Statefunc (*Cluster) GetStateInfo
func (x *Cluster) GetStateInfo() *Cluster_StateInfofunc (*Cluster) GetTransitEncryptionMode
func (x *Cluster) GetTransitEncryptionMode() TransitEncryptionModefunc (*Cluster) GetUid
func (*Cluster) GetZoneDistributionConfig
func (x *Cluster) GetZoneDistributionConfig() *ZoneDistributionConfigfunc (*Cluster) ProtoMessage
func (*Cluster) ProtoMessage()func (*Cluster) ProtoReflect
func (x *Cluster) ProtoReflect() protoreflect.Messagefunc (*Cluster) Reset
func (x *Cluster) Reset()func (*Cluster) String
ClusterEndpoint
type ClusterEndpoint struct {
// A group of PSC connections. They are created in the same VPC network, one
// for each service attachment in the cluster.
Connections []*ConnectionDetail `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
// contains filtered or unexported fields
}ClusterEndpoint consists of PSC connections that are created as a group in each VPC network for accessing the cluster. In each group, there shall be one connection for each service attachment in the cluster.
func (*ClusterEndpoint) Descriptor
func (*ClusterEndpoint) Descriptor() ([]byte, []int)Deprecated: Use ClusterEndpoint.ProtoReflect.Descriptor instead.
func (*ClusterEndpoint) GetConnections
func (x *ClusterEndpoint) GetConnections() []*ConnectionDetailfunc (*ClusterEndpoint) ProtoMessage
func (*ClusterEndpoint) ProtoMessage()func (*ClusterEndpoint) ProtoReflect
func (x *ClusterEndpoint) ProtoReflect() protoreflect.Messagefunc (*ClusterEndpoint) Reset
func (x *ClusterEndpoint) Reset()func (*ClusterEndpoint) String
func (x *ClusterEndpoint) String() stringClusterMaintenancePolicy
type ClusterMaintenancePolicy struct {
// Output only. The time when the policy was created i.e. Maintenance Window
// or Deny Period was assigned.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the policy was updated i.e. Maintenance Window
// or Deny Period was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Maintenance window that is applied to resources covered by this
// policy. Minimum 1. For the current version, the maximum number of
// weekly_maintenance_window is expected to be one.
WeeklyMaintenanceWindow []*ClusterWeeklyMaintenanceWindow `protobuf:"bytes,3,rep,name=weekly_maintenance_window,json=weeklyMaintenanceWindow,proto3" json:"weekly_maintenance_window,omitempty"`
// contains filtered or unexported fields
}Maintenance policy per cluster.
func (*ClusterMaintenancePolicy) Descriptor
func (*ClusterMaintenancePolicy) Descriptor() ([]byte, []int)Deprecated: Use ClusterMaintenancePolicy.ProtoReflect.Descriptor instead.
func (*ClusterMaintenancePolicy) GetCreateTime
func (x *ClusterMaintenancePolicy) GetCreateTime() *timestamppb.Timestampfunc (*ClusterMaintenancePolicy) GetUpdateTime
func (x *ClusterMaintenancePolicy) GetUpdateTime() *timestamppb.Timestampfunc (*ClusterMaintenancePolicy) GetWeeklyMaintenanceWindow
func (x *ClusterMaintenancePolicy) GetWeeklyMaintenanceWindow() []*ClusterWeeklyMaintenanceWindowfunc (*ClusterMaintenancePolicy) ProtoMessage
func (*ClusterMaintenancePolicy) ProtoMessage()func (*ClusterMaintenancePolicy) ProtoReflect
func (x *ClusterMaintenancePolicy) ProtoReflect() protoreflect.Messagefunc (*ClusterMaintenancePolicy) Reset
func (x *ClusterMaintenancePolicy) Reset()func (*ClusterMaintenancePolicy) String
func (x *ClusterMaintenancePolicy) String() stringClusterMaintenanceSchedule
type ClusterMaintenanceSchedule struct {
// Output only. The start time of any upcoming scheduled maintenance for this
// instance.
StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. The end time of any upcoming scheduled maintenance for this
// instance.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}Upcoming maitenance schedule.
func (*ClusterMaintenanceSchedule) Descriptor
func (*ClusterMaintenanceSchedule) Descriptor() ([]byte, []int)Deprecated: Use ClusterMaintenanceSchedule.ProtoReflect.Descriptor instead.
func (*ClusterMaintenanceSchedule) GetEndTime
func (x *ClusterMaintenanceSchedule) GetEndTime() *timestamppb.Timestampfunc (*ClusterMaintenanceSchedule) GetStartTime
func (x *ClusterMaintenanceSchedule) GetStartTime() *timestamppb.Timestampfunc (*ClusterMaintenanceSchedule) ProtoMessage
func (*ClusterMaintenanceSchedule) ProtoMessage()func (*ClusterMaintenanceSchedule) ProtoReflect
func (x *ClusterMaintenanceSchedule) ProtoReflect() protoreflect.Messagefunc (*ClusterMaintenanceSchedule) Reset
func (x *ClusterMaintenanceSchedule) Reset()func (*ClusterMaintenanceSchedule) String
func (x *ClusterMaintenanceSchedule) String() stringClusterPersistenceConfig
type ClusterPersistenceConfig struct {
// Optional. The mode of persistence.
Mode ClusterPersistenceConfig_PersistenceMode `protobuf:"varint,1,opt,name=mode,proto3,enum=google.cloud.redis.cluster.v1.ClusterPersistenceConfig_PersistenceMode" json:"mode,omitempty"`
// Optional. RDB configuration. This field will be ignored if mode is not RDB.
RdbConfig *ClusterPersistenceConfig_RDBConfig `protobuf:"bytes,2,opt,name=rdb_config,json=rdbConfig,proto3" json:"rdb_config,omitempty"`
// Optional. AOF configuration. This field will be ignored if mode is not AOF.
AofConfig *ClusterPersistenceConfig_AOFConfig `protobuf:"bytes,3,opt,name=aof_config,json=aofConfig,proto3" json:"aof_config,omitempty"`
// contains filtered or unexported fields
}Configuration of the persistence functionality.
func (*ClusterPersistenceConfig) Descriptor
func (*ClusterPersistenceConfig) Descriptor() ([]byte, []int)Deprecated: Use ClusterPersistenceConfig.ProtoReflect.Descriptor instead.
func (*ClusterPersistenceConfig) GetAofConfig
func (x *ClusterPersistenceConfig) GetAofConfig() *ClusterPersistenceConfig_AOFConfigfunc (*ClusterPersistenceConfig) GetMode
func (x *ClusterPersistenceConfig) GetMode() ClusterPersistenceConfig_PersistenceModefunc (*ClusterPersistenceConfig) GetRdbConfig
func (x *ClusterPersistenceConfig) GetRdbConfig() *ClusterPersistenceConfig_RDBConfigfunc (*ClusterPersistenceConfig) ProtoMessage
func (*ClusterPersistenceConfig) ProtoMessage()func (*ClusterPersistenceConfig) ProtoReflect
func (x *ClusterPersistenceConfig) ProtoReflect() protoreflect.Messagefunc (*ClusterPersistenceConfig) Reset
func (x *ClusterPersistenceConfig) Reset()func (*ClusterPersistenceConfig) String
func (x *ClusterPersistenceConfig) String() stringClusterPersistenceConfig_AOFConfig
type ClusterPersistenceConfig_AOFConfig struct {
// Optional. fsync configuration.
AppendFsync ClusterPersistenceConfig_AOFConfig_AppendFsync `protobuf:"varint,1,opt,name=append_fsync,json=appendFsync,proto3,enum=google.cloud.redis.cluster.v1.ClusterPersistenceConfig_AOFConfig_AppendFsync" json:"append_fsync,omitempty"`
// contains filtered or unexported fields
}Configuration of the AOF based persistence.
func (*ClusterPersistenceConfig_AOFConfig) Descriptor
func (*ClusterPersistenceConfig_AOFConfig) Descriptor() ([]byte, []int)Deprecated: Use ClusterPersistenceConfig_AOFConfig.ProtoReflect.Descriptor instead.
func (*ClusterPersistenceConfig_AOFConfig) GetAppendFsync
func (x *ClusterPersistenceConfig_AOFConfig) GetAppendFsync() ClusterPersistenceConfig_AOFConfig_AppendFsyncfunc (*ClusterPersistenceConfig_AOFConfig) ProtoMessage
func (*ClusterPersistenceConfig_AOFConfig) ProtoMessage()func (*ClusterPersistenceConfig_AOFConfig) ProtoReflect
func (x *ClusterPersistenceConfig_AOFConfig) ProtoReflect() protoreflect.Messagefunc (*ClusterPersistenceConfig_AOFConfig) Reset
func (x *ClusterPersistenceConfig_AOFConfig) Reset()func (*ClusterPersistenceConfig_AOFConfig) String
func (x *ClusterPersistenceConfig_AOFConfig) String() stringClusterPersistenceConfig_AOFConfig_AppendFsync
type ClusterPersistenceConfig_AOFConfig_AppendFsync int32Available fsync modes.
ClusterPersistenceConfig_AOFConfig_APPEND_FSYNC_UNSPECIFIED, ClusterPersistenceConfig_AOFConfig_NO, ClusterPersistenceConfig_AOFConfig_EVERYSEC, ClusterPersistenceConfig_AOFConfig_ALWAYS
const (
// Not set. Default: EVERYSEC
ClusterPersistenceConfig_AOFConfig_APPEND_FSYNC_UNSPECIFIED ClusterPersistenceConfig_AOFConfig_AppendFsync = 0
// Never fsync. Normally Linux will flush data every 30 seconds with this
// configuration, but it's up to the kernel's exact tuning.
ClusterPersistenceConfig_AOFConfig_NO ClusterPersistenceConfig_AOFConfig_AppendFsync = 1
// fsync every second. Fast enough, and you may lose 1 second of data if
// there is a disaster
ClusterPersistenceConfig_AOFConfig_EVERYSEC ClusterPersistenceConfig_AOFConfig_AppendFsync = 2
// fsync every time new write commands are appended to the AOF. It has the
// best data loss protection at the cost of performance
ClusterPersistenceConfig_AOFConfig_ALWAYS ClusterPersistenceConfig_AOFConfig_AppendFsync = 3
)func (ClusterPersistenceConfig_AOFConfig_AppendFsync) Descriptor
func (ClusterPersistenceConfig_AOFConfig_AppendFsync) Descriptor() protoreflect.EnumDescriptorfunc (ClusterPersistenceConfig_AOFConfig_AppendFsync) Enum
func (x ClusterPersistenceConfig_AOFConfig_AppendFsync) Enum() *ClusterPersistenceConfig_AOFConfig_AppendFsyncfunc (ClusterPersistenceConfig_AOFConfig_AppendFsync) EnumDescriptor
func (ClusterPersistenceConfig_AOFConfig_AppendFsync) EnumDescriptor() ([]byte, []int)Deprecated: Use ClusterPersistenceConfig_AOFConfig_AppendFsync.Descriptor instead.
func (ClusterPersistenceConfig_AOFConfig_AppendFsync) Number
func (x ClusterPersistenceConfig_AOFConfig_AppendFsync) Number() protoreflect.EnumNumberfunc (ClusterPersistenceConfig_AOFConfig_AppendFsync) String
func (x ClusterPersistenceConfig_AOFConfig_AppendFsync) String() stringfunc (ClusterPersistenceConfig_AOFConfig_AppendFsync) Type
ClusterPersistenceConfig_PersistenceMode
type ClusterPersistenceConfig_PersistenceMode int32Available persistence modes.
ClusterPersistenceConfig_PERSISTENCE_MODE_UNSPECIFIED, ClusterPersistenceConfig_DISABLED, ClusterPersistenceConfig_RDB, ClusterPersistenceConfig_AOF
const (
// Not set.
ClusterPersistenceConfig_PERSISTENCE_MODE_UNSPECIFIED ClusterPersistenceConfig_PersistenceMode = 0
// Persistence is disabled, and any snapshot data is deleted.
ClusterPersistenceConfig_DISABLED ClusterPersistenceConfig_PersistenceMode = 1
// RDB based persistence is enabled.
ClusterPersistenceConfig_RDB ClusterPersistenceConfig_PersistenceMode = 2
// AOF based persistence is enabled.
ClusterPersistenceConfig_AOF ClusterPersistenceConfig_PersistenceMode = 3
)func (ClusterPersistenceConfig_PersistenceMode) Descriptor
func (ClusterPersistenceConfig_PersistenceMode) Descriptor() protoreflect.EnumDescriptorfunc (ClusterPersistenceConfig_PersistenceMode) Enum
func (ClusterPersistenceConfig_PersistenceMode) EnumDescriptor
func (ClusterPersistenceConfig_PersistenceMode) EnumDescriptor() ([]byte, []int)Deprecated: Use ClusterPersistenceConfig_PersistenceMode.Descriptor instead.
func (ClusterPersistenceConfig_PersistenceMode) Number
func (x ClusterPersistenceConfig_PersistenceMode) Number() protoreflect.EnumNumberfunc (ClusterPersistenceConfig_PersistenceMode) String
func (x ClusterPersistenceConfig_PersistenceMode) String() stringfunc (ClusterPersistenceConfig_PersistenceMode) Type
func (ClusterPersistenceConfig_PersistenceMode) Type() protoreflect.EnumTypeClusterPersistenceConfig_RDBConfig
type ClusterPersistenceConfig_RDBConfig struct {
// Optional. Period between RDB snapshots.
RdbSnapshotPeriod ClusterPersistenceConfig_RDBConfig_SnapshotPeriod `protobuf:"varint,1,opt,name=rdb_snapshot_period,json=rdbSnapshotPeriod,proto3,enum=google.cloud.redis.cluster.v1.ClusterPersistenceConfig_RDBConfig_SnapshotPeriod" json:"rdb_snapshot_period,omitempty"`
// Optional. The time that the first snapshot was/will be attempted, and to
// which future snapshots will be aligned. If not provided, the current time
// will be used.
RdbSnapshotStartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=rdb_snapshot_start_time,json=rdbSnapshotStartTime,proto3" json:"rdb_snapshot_start_time,omitempty"`
// contains filtered or unexported fields
}Configuration of the RDB based persistence.
func (*ClusterPersistenceConfig_RDBConfig) Descriptor
func (*ClusterPersistenceConfig_RDBConfig) Descriptor() ([]byte, []int)Deprecated: Use ClusterPersistenceConfig_RDBConfig.ProtoReflect.Descriptor instead.
func (*ClusterPersistenceConfig_RDBConfig) GetRdbSnapshotPeriod
func (x *ClusterPersistenceConfig_RDBConfig) GetRdbSnapshotPeriod() ClusterPersistenceConfig_RDBConfig_SnapshotPeriodfunc (*ClusterPersistenceConfig_RDBConfig) GetRdbSnapshotStartTime
func (x *ClusterPersistenceConfig_RDBConfig) GetRdbSnapshotStartTime() *timestamppb.Timestampfunc (*ClusterPersistenceConfig_RDBConfig) ProtoMessage
func (*ClusterPersistenceConfig_RDBConfig) ProtoMessage()func (*ClusterPersistenceConfig_RDBConfig) ProtoReflect
func (x *ClusterPersistenceConfig_RDBConfig) ProtoReflect() protoreflect.Messagefunc (*ClusterPersistenceConfig_RDBConfig) Reset
func (x *ClusterPersistenceConfig_RDBConfig) Reset()func (*ClusterPersistenceConfig_RDBConfig) String
func (x *ClusterPersistenceConfig_RDBConfig) String() stringClusterPersistenceConfig_RDBConfig_SnapshotPeriod
type ClusterPersistenceConfig_RDBConfig_SnapshotPeriod int32Available snapshot periods.
ClusterPersistenceConfig_RDBConfig_SNAPSHOT_PERIOD_UNSPECIFIED, ClusterPersistenceConfig_RDBConfig_ONE_HOUR, ClusterPersistenceConfig_RDBConfig_SIX_HOURS, ClusterPersistenceConfig_RDBConfig_TWELVE_HOURS, ClusterPersistenceConfig_RDBConfig_TWENTY_FOUR_HOURS
const (
// Not set.
ClusterPersistenceConfig_RDBConfig_SNAPSHOT_PERIOD_UNSPECIFIED ClusterPersistenceConfig_RDBConfig_SnapshotPeriod = 0
// One hour.
ClusterPersistenceConfig_RDBConfig_ONE_HOUR ClusterPersistenceConfig_RDBConfig_SnapshotPeriod = 1
// Six hours.
ClusterPersistenceConfig_RDBConfig_SIX_HOURS ClusterPersistenceConfig_RDBConfig_SnapshotPeriod = 2
// Twelve hours.
ClusterPersistenceConfig_RDBConfig_TWELVE_HOURS ClusterPersistenceConfig_RDBConfig_SnapshotPeriod = 3
// Twenty four hours.
ClusterPersistenceConfig_RDBConfig_TWENTY_FOUR_HOURS ClusterPersistenceConfig_RDBConfig_SnapshotPeriod = 4
)func (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Descriptor
func (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Descriptor() protoreflect.EnumDescriptorfunc (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Enum
func (x ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Enum() *ClusterPersistenceConfig_RDBConfig_SnapshotPeriodfunc (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) EnumDescriptor
func (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) EnumDescriptor() ([]byte, []int)Deprecated: Use ClusterPersistenceConfig_RDBConfig_SnapshotPeriod.Descriptor instead.
func (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Number
func (x ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Number() protoreflect.EnumNumberfunc (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) String
func (x ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) String() stringfunc (ClusterPersistenceConfig_RDBConfig_SnapshotPeriod) Type
ClusterWeeklyMaintenanceWindow
type ClusterWeeklyMaintenanceWindow struct {
// Allows to define schedule that runs specified day of the week.
Day dayofweek.DayOfWeek `protobuf:"varint,1,opt,name=day,proto3,enum=google.type.DayOfWeek" json:"day,omitempty"`
// Start time of the window in UTC.
StartTime *timeofday.TimeOfDay `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// contains filtered or unexported fields
}Time window specified for weekly operations.
func (*ClusterWeeklyMaintenanceWindow) Descriptor
func (*ClusterWeeklyMaintenanceWindow) Descriptor() ([]byte, []int)Deprecated: Use ClusterWeeklyMaintenanceWindow.ProtoReflect.Descriptor instead.
func (*ClusterWeeklyMaintenanceWindow) GetDay
func (x *ClusterWeeklyMaintenanceWindow) GetDay() dayofweek.DayOfWeekfunc (*ClusterWeeklyMaintenanceWindow) GetStartTime
func (x *ClusterWeeklyMaintenanceWindow) GetStartTime() *timeofday.TimeOfDayfunc (*ClusterWeeklyMaintenanceWindow) ProtoMessage
func (*ClusterWeeklyMaintenanceWindow) ProtoMessage()func (*ClusterWeeklyMaintenanceWindow) ProtoReflect
func (x *ClusterWeeklyMaintenanceWindow) ProtoReflect() protoreflect.Messagefunc (*ClusterWeeklyMaintenanceWindow) Reset
func (x *ClusterWeeklyMaintenanceWindow) Reset()func (*ClusterWeeklyMaintenanceWindow) String
func (x *ClusterWeeklyMaintenanceWindow) String() stringCluster_GcsBackupSource
type Cluster_GcsBackupSource struct {
// Optional. URIs of the GCS objects to import.
// Example: gs://bucket1/object1, gs://bucket2/folder2/object2
Uris []string `protobuf:"bytes,1,rep,name=uris,proto3" json:"uris,omitempty"`
// contains filtered or unexported fields
}Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the clusters.
func (*Cluster_GcsBackupSource) Descriptor
func (*Cluster_GcsBackupSource) Descriptor() ([]byte, []int)Deprecated: Use Cluster_GcsBackupSource.ProtoReflect.Descriptor instead.
func (*Cluster_GcsBackupSource) GetUris
func (x *Cluster_GcsBackupSource) GetUris() []stringfunc (*Cluster_GcsBackupSource) ProtoMessage
func (*Cluster_GcsBackupSource) ProtoMessage()func (*Cluster_GcsBackupSource) ProtoReflect
func (x *Cluster_GcsBackupSource) ProtoReflect() protoreflect.Messagefunc (*Cluster_GcsBackupSource) Reset
func (x *Cluster_GcsBackupSource) Reset()func (*Cluster_GcsBackupSource) String
func (x *Cluster_GcsBackupSource) String() stringCluster_GcsSource
type Cluster_GcsSource struct {
// Optional. Backups stored in Cloud Storage buckets.
// The Cloud Storage buckets need to be the same region as the clusters.
// Read permission is required to import from the provided Cloud Storage
// objects.
GcsSource *Cluster_GcsBackupSource `protobuf:"bytes,34,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}Cluster_ManagedBackupSource
type Cluster_ManagedBackupSource struct {
// Optional. Example:
// //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
// A shorter version (without the prefix) of the backup name is also
// supported, like
// projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
// In this case, it assumes the backup is under redis.googleapis.com.
Backup string `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"`
// contains filtered or unexported fields
}Backups that generated and managed by memorystore.
func (*Cluster_ManagedBackupSource) Descriptor
func (*Cluster_ManagedBackupSource) Descriptor() ([]byte, []int)Deprecated: Use Cluster_ManagedBackupSource.ProtoReflect.Descriptor instead.
func (*Cluster_ManagedBackupSource) GetBackup
func (x *Cluster_ManagedBackupSource) GetBackup() stringfunc (*Cluster_ManagedBackupSource) ProtoMessage
func (*Cluster_ManagedBackupSource) ProtoMessage()func (*Cluster_ManagedBackupSource) ProtoReflect
func (x *Cluster_ManagedBackupSource) ProtoReflect() protoreflect.Messagefunc (*Cluster_ManagedBackupSource) Reset
func (x *Cluster_ManagedBackupSource) Reset()func (*Cluster_ManagedBackupSource) String
func (x *Cluster_ManagedBackupSource) String() stringCluster_ManagedBackupSource_
type Cluster_ManagedBackupSource_ struct {
// Optional. Backups generated and managed by memorystore service.
ManagedBackupSource *Cluster_ManagedBackupSource `protobuf:"bytes,35,opt,name=managed_backup_source,json=managedBackupSource,proto3,oneof"`
}Cluster_State
type Cluster_State int32Represents the different states of a Redis cluster.
Cluster_STATE_UNSPECIFIED, Cluster_CREATING, Cluster_ACTIVE, Cluster_UPDATING, Cluster_DELETING
const (
// Not set.
Cluster_STATE_UNSPECIFIED Cluster_State = 0
// Redis cluster is being created.
Cluster_CREATING Cluster_State = 1
// Redis cluster has been created and is fully usable.
Cluster_ACTIVE Cluster_State = 2
// Redis cluster configuration is being updated.
Cluster_UPDATING Cluster_State = 3
// Redis cluster is being deleted.
Cluster_DELETING Cluster_State = 4
)func (Cluster_State) Descriptor
func (Cluster_State) Descriptor() protoreflect.EnumDescriptorfunc (Cluster_State) Enum
func (x Cluster_State) Enum() *Cluster_Statefunc (Cluster_State) EnumDescriptor
func (Cluster_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Cluster_State.Descriptor instead.
func (Cluster_State) Number
func (x Cluster_State) Number() protoreflect.EnumNumberfunc (Cluster_State) String
func (x Cluster_State) String() stringfunc (Cluster_State) Type
func (Cluster_State) Type() protoreflect.EnumTypeCluster_StateInfo
type Cluster_StateInfo struct {
// Types that are valid to be assigned to Info:
//
// *Cluster_StateInfo_UpdateInfo_
Info isCluster_StateInfo_Info `protobuf_oneof:"info"`
// contains filtered or unexported fields
}Represents additional information about the state of the cluster.
func (*Cluster_StateInfo) Descriptor
func (*Cluster_StateInfo) Descriptor() ([]byte, []int)Deprecated: Use Cluster_StateInfo.ProtoReflect.Descriptor instead.
func (*Cluster_StateInfo) GetInfo
func (x *Cluster_StateInfo) GetInfo() isCluster_StateInfo_Infofunc (*Cluster_StateInfo) GetUpdateInfo
func (x *Cluster_StateInfo) GetUpdateInfo() *Cluster_StateInfo_UpdateInfofunc (*Cluster_StateInfo) ProtoMessage
func (*Cluster_StateInfo) ProtoMessage()func (*Cluster_StateInfo) ProtoReflect
func (x *Cluster_StateInfo) ProtoReflect() protoreflect.Messagefunc (*Cluster_StateInfo) Reset
func (x *Cluster_StateInfo) Reset()func (*Cluster_StateInfo) String
func (x *Cluster_StateInfo) String() stringCluster_StateInfo_UpdateInfo
type Cluster_StateInfo_UpdateInfo struct {
// Target number of shards for redis cluster
TargetShardCount *int32 `protobuf:"varint,1,opt,name=target_shard_count,json=targetShardCount,proto3,oneof" json:"target_shard_count,omitempty"`
// Target number of replica nodes per shard.
TargetReplicaCount *int32 `protobuf:"varint,2,opt,name=target_replica_count,json=targetReplicaCount,proto3,oneof" json:"target_replica_count,omitempty"`
// contains filtered or unexported fields
}Represents information about an updating cluster.
func (*Cluster_StateInfo_UpdateInfo) Descriptor
func (*Cluster_StateInfo_UpdateInfo) Descriptor() ([]byte, []int)Deprecated: Use Cluster_StateInfo_UpdateInfo.ProtoReflect.Descriptor instead.
func (*Cluster_StateInfo_UpdateInfo) GetTargetReplicaCount
func (x *Cluster_StateInfo_UpdateInfo) GetTargetReplicaCount() int32func (*Cluster_StateInfo_UpdateInfo) GetTargetShardCount
func (x *Cluster_StateInfo_UpdateInfo) GetTargetShardCount() int32func (*Cluster_StateInfo_UpdateInfo) ProtoMessage
func (*Cluster_StateInfo_UpdateInfo) ProtoMessage()func (*Cluster_StateInfo_UpdateInfo) ProtoReflect
func (x *Cluster_StateInfo_UpdateInfo) ProtoReflect() protoreflect.Messagefunc (*Cluster_StateInfo_UpdateInfo) Reset
func (x *Cluster_StateInfo_UpdateInfo) Reset()func (*Cluster_StateInfo_UpdateInfo) String
func (x *Cluster_StateInfo_UpdateInfo) String() stringCluster_StateInfo_UpdateInfo_
type Cluster_StateInfo_UpdateInfo_ struct {
// Describes ongoing update on the cluster when cluster state is UPDATING.
UpdateInfo *Cluster_StateInfo_UpdateInfo `protobuf:"bytes,1,opt,name=update_info,json=updateInfo,proto3,oneof"`
}ConnectionDetail
type ConnectionDetail struct {
// A PSC connection to a cluster could either be created through Service
// Connectivity Automation (auto-registered connection) during the cluster
// creation, or it could be created by customer themselves (user-registered
// connection).
//
// Types that are valid to be assigned to Connection:
//
// *ConnectionDetail_PscAutoConnection
// *ConnectionDetail_PscConnection
Connection isConnectionDetail_Connection `protobuf_oneof:"connection"`
// contains filtered or unexported fields
}Detailed information of each PSC connection.
func (*ConnectionDetail) Descriptor
func (*ConnectionDetail) Descriptor() ([]byte, []int)Deprecated: Use ConnectionDetail.ProtoReflect.Descriptor instead.
func (*ConnectionDetail) GetConnection
func (x *ConnectionDetail) GetConnection() isConnectionDetail_Connectionfunc (*ConnectionDetail) GetPscAutoConnection
func (x *ConnectionDetail) GetPscAutoConnection() *PscAutoConnectionfunc (*ConnectionDetail) GetPscConnection
func (x *ConnectionDetail) GetPscConnection() *PscConnectionfunc (*ConnectionDetail) ProtoMessage
func (*ConnectionDetail) ProtoMessage()func (*ConnectionDetail) ProtoReflect
func (x *ConnectionDetail) ProtoReflect() protoreflect.Messagefunc (*ConnectionDetail) Reset
func (x *ConnectionDetail) Reset()func (*ConnectionDetail) String
func (x *ConnectionDetail) String() stringConnectionDetail_PscAutoConnection
type ConnectionDetail_PscAutoConnection struct {
// Detailed information of a PSC connection that is created through
// service connectivity automation.
PscAutoConnection *PscAutoConnection `protobuf:"bytes,1,opt,name=psc_auto_connection,json=pscAutoConnection,proto3,oneof"`
}ConnectionDetail_PscConnection
type ConnectionDetail_PscConnection struct {
// Detailed information of a PSC connection that is created by the customer
// who owns the cluster.
PscConnection *PscConnection `protobuf:"bytes,2,opt,name=psc_connection,json=pscConnection,proto3,oneof"`
}ConnectionType
type ConnectionType int32Type of a PSC connection, for cluster access purpose.
ConnectionType_CONNECTION_TYPE_UNSPECIFIED, ConnectionType_CONNECTION_TYPE_DISCOVERY, ConnectionType_CONNECTION_TYPE_PRIMARY, ConnectionType_CONNECTION_TYPE_READER
const (
// Cluster endpoint Type is not set
ConnectionType_CONNECTION_TYPE_UNSPECIFIED ConnectionType = 0
// Cluster endpoint that will be used as for cluster topology discovery.
ConnectionType_CONNECTION_TYPE_DISCOVERY ConnectionType = 1
// Cluster endpoint that will be used as primary endpoint to access primary.
ConnectionType_CONNECTION_TYPE_PRIMARY ConnectionType = 2
// Cluster endpoint that will be used as reader endpoint to access replicas.
ConnectionType_CONNECTION_TYPE_READER ConnectionType = 3
)func (ConnectionType) Descriptor
func (ConnectionType) Descriptor() protoreflect.EnumDescriptorfunc (ConnectionType) Enum
func (x ConnectionType) Enum() *ConnectionTypefunc (ConnectionType) EnumDescriptor
func (ConnectionType) EnumDescriptor() ([]byte, []int)Deprecated: Use ConnectionType.Descriptor instead.
func (ConnectionType) Number
func (x ConnectionType) Number() protoreflect.EnumNumberfunc (ConnectionType) String
func (x ConnectionType) String() stringfunc (ConnectionType) Type
func (ConnectionType) Type() protoreflect.EnumTypeCreateClusterRequest
type CreateClusterRequest struct {
// Required. The resource name of the cluster location using the form:
//
// `projects/{project_id}/locations/{location_id}`
//
// where `location_id` refers to a GCP region.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The logical name of the Redis cluster in the customer project
// with the following restrictions:
//
// * Must contain only lowercase letters, numbers, and hyphens.
// * Must start with a letter.
// * Must be between 1-63 characters.
// * Must end with a number or a letter.
// * Must be unique within the customer project / location
ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
// Required. The cluster that is to be created.
Cluster *Cluster `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Idempotent request UUID.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [CreateCluster][CloudRedis.CreateCluster].
func (*CreateClusterRequest) Descriptor
func (*CreateClusterRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateClusterRequest.ProtoReflect.Descriptor instead.
func (*CreateClusterRequest) GetCluster
func (x *CreateClusterRequest) GetCluster() *Clusterfunc (*CreateClusterRequest) GetClusterId
func (x *CreateClusterRequest) GetClusterId() stringfunc (*CreateClusterRequest) GetParent
func (x *CreateClusterRequest) GetParent() stringfunc (*CreateClusterRequest) GetRequestId
func (x *CreateClusterRequest) GetRequestId() stringfunc (*CreateClusterRequest) ProtoMessage
func (*CreateClusterRequest) ProtoMessage()func (*CreateClusterRequest) ProtoReflect
func (x *CreateClusterRequest) ProtoReflect() protoreflect.Messagefunc (*CreateClusterRequest) Reset
func (x *CreateClusterRequest) Reset()func (*CreateClusterRequest) String
func (x *CreateClusterRequest) String() stringCrossClusterReplicationConfig
type CrossClusterReplicationConfig struct {
// The role of the cluster in cross cluster replication.
ClusterRole CrossClusterReplicationConfig_ClusterRole `protobuf:"varint,1,opt,name=cluster_role,json=clusterRole,proto3,enum=google.cloud.redis.cluster.v1.CrossClusterReplicationConfig_ClusterRole" json:"cluster_role,omitempty"`
// Details of the primary cluster that is used as the replication source for
// this secondary cluster.
//
// This field is only set for a secondary cluster.
PrimaryCluster *CrossClusterReplicationConfig_RemoteCluster `protobuf:"bytes,2,opt,name=primary_cluster,json=primaryCluster,proto3" json:"primary_cluster,omitempty"`
// List of secondary clusters that are replicating from this primary cluster.
//
// This field is only set for a primary cluster.
SecondaryClusters []*CrossClusterReplicationConfig_RemoteCluster `protobuf:"bytes,3,rep,name=secondary_clusters,json=secondaryClusters,proto3" json:"secondary_clusters,omitempty"`
// Output only. The last time cross cluster replication config was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. An output only view of all the member clusters participating
// in the cross cluster replication. This view will be provided by every
// member cluster irrespective of its cluster role(primary or secondary).
//
// A primary cluster can provide information about all the secondary clusters
// replicating from it. However, a secondary cluster only knows about the
// primary cluster from which it is replicating. However, for scenarios, where
// the primary cluster is unavailable(e.g. regional outage), a GetCluster
// request can be sent to any other member cluster and this field will list
// all the member clusters participating in cross cluster replication.
Membership *CrossClusterReplicationConfig_Membership `protobuf:"bytes,5,opt,name=membership,proto3" json:"membership,omitempty"`
// contains filtered or unexported fields
}Cross cluster replication config.
func (*CrossClusterReplicationConfig) Descriptor
func (*CrossClusterReplicationConfig) Descriptor() ([]byte, []int)Deprecated: Use CrossClusterReplicationConfig.ProtoReflect.Descriptor instead.
func (*CrossClusterReplicationConfig) GetClusterRole
func (x *CrossClusterReplicationConfig) GetClusterRole() CrossClusterReplicationConfig_ClusterRolefunc (*CrossClusterReplicationConfig) GetMembership
func (x *CrossClusterReplicationConfig) GetMembership() *CrossClusterReplicationConfig_Membershipfunc (*CrossClusterReplicationConfig) GetPrimaryCluster
func (x *CrossClusterReplicationConfig) GetPrimaryCluster() *CrossClusterReplicationConfig_RemoteClusterfunc (*CrossClusterReplicationConfig) GetSecondaryClusters
func (x *CrossClusterReplicationConfig) GetSecondaryClusters() []*CrossClusterReplicationConfig_RemoteClusterfunc (*CrossClusterReplicationConfig) GetUpdateTime
func (x *CrossClusterReplicationConfig) GetUpdateTime() *timestamppb.Timestampfunc (*CrossClusterReplicationConfig) ProtoMessage
func (*CrossClusterReplicationConfig) ProtoMessage()func (*CrossClusterReplicationConfig) ProtoReflect
func (x *CrossClusterReplicationConfig) ProtoReflect() protoreflect.Messagefunc (*CrossClusterReplicationConfig) Reset
func (x *CrossClusterReplicationConfig) Reset()func (*CrossClusterReplicationConfig) String
func (x *CrossClusterReplicationConfig) String() stringCrossClusterReplicationConfig_ClusterRole
type CrossClusterReplicationConfig_ClusterRole int32The role of the cluster in cross cluster replication.
CrossClusterReplicationConfig_CLUSTER_ROLE_UNSPECIFIED, CrossClusterReplicationConfig_NONE, CrossClusterReplicationConfig_PRIMARY, CrossClusterReplicationConfig_SECONDARY
const (
// Cluster role is not set.
// The behavior is equivalent to NONE.
CrossClusterReplicationConfig_CLUSTER_ROLE_UNSPECIFIED CrossClusterReplicationConfig_ClusterRole = 0
// This cluster does not participate in cross cluster replication. It is an
// independent cluster and does not replicate to or from any other clusters.
CrossClusterReplicationConfig_NONE CrossClusterReplicationConfig_ClusterRole = 1
// A cluster that allows both reads and writes. Any data written to this
// cluster is also replicated to the attached secondary clusters.
CrossClusterReplicationConfig_PRIMARY CrossClusterReplicationConfig_ClusterRole = 2
// A cluster that allows only reads and replicates data from a primary
// cluster.
CrossClusterReplicationConfig_SECONDARY CrossClusterReplicationConfig_ClusterRole = 3
)func (CrossClusterReplicationConfig_ClusterRole) Descriptor
func (CrossClusterReplicationConfig_ClusterRole) Descriptor() protoreflect.EnumDescriptorfunc (CrossClusterReplicationConfig_ClusterRole) Enum
func (x CrossClusterReplicationConfig_ClusterRole) Enum() *CrossClusterReplicationConfig_ClusterRolefunc (CrossClusterReplicationConfig_ClusterRole) EnumDescriptor
func (CrossClusterReplicationConfig_ClusterRole) EnumDescriptor() ([]byte, []int)Deprecated: Use CrossClusterReplicationConfig_ClusterRole.Descriptor instead.
func (CrossClusterReplicationConfig_ClusterRole) Number
func (x CrossClusterReplicationConfig_ClusterRole) Number() protoreflect.EnumNumberfunc (CrossClusterReplicationConfig_ClusterRole) String
func (x CrossClusterReplicationConfig_ClusterRole) String() stringfunc (CrossClusterReplicationConfig_ClusterRole) Type
func (CrossClusterReplicationConfig_ClusterRole) Type() protoreflect.EnumTypeCrossClusterReplicationConfig_Membership
type CrossClusterReplicationConfig_Membership struct {
// Output only. The primary cluster that acts as the source of replication
// for the secondary clusters.
PrimaryCluster *CrossClusterReplicationConfig_RemoteCluster `protobuf:"bytes,1,opt,name=primary_cluster,json=primaryCluster,proto3" json:"primary_cluster,omitempty"`
// Output only. The list of secondary clusters replicating from the primary
// cluster.
SecondaryClusters []*CrossClusterReplicationConfig_RemoteCluster `protobuf:"bytes,2,rep,name=secondary_clusters,json=secondaryClusters,proto3" json:"secondary_clusters,omitempty"`
// contains filtered or unexported fields
}An output only view of all the member clusters participating in the cross cluster replication.
func (*CrossClusterReplicationConfig_Membership) Descriptor
func (*CrossClusterReplicationConfig_Membership) Descriptor() ([]byte, []int)Deprecated: Use CrossClusterReplicationConfig_Membership.ProtoReflect.Descriptor instead.
func (*CrossClusterReplicationConfig_Membership) GetPrimaryCluster
func (x *CrossClusterReplicationConfig_Membership) GetPrimaryCluster() *CrossClusterReplicationConfig_RemoteClusterfunc (*CrossClusterReplicationConfig_Membership) GetSecondaryClusters
func (x *CrossClusterReplicationConfig_Membership) GetSecondaryClusters() []*CrossClusterReplicationConfig_RemoteClusterfunc (*CrossClusterReplicationConfig_Membership) ProtoMessage
func (*CrossClusterReplicationConfig_Membership) ProtoMessage()func (*CrossClusterReplicationConfig_Membership) ProtoReflect
func (x *CrossClusterReplicationConfig_Membership) ProtoReflect() protoreflect.Messagefunc (*CrossClusterReplicationConfig_Membership) Reset
func (x *CrossClusterReplicationConfig_Membership) Reset()func (*CrossClusterReplicationConfig_Membership) String
func (x *CrossClusterReplicationConfig_Membership) String() stringCrossClusterReplicationConfig_RemoteCluster
type CrossClusterReplicationConfig_RemoteCluster struct {
// The full resource path of the remote cluster in
// the format: projects/Details of the remote cluster associated with this cluster in a cross cluster replication setup.
func (*CrossClusterReplicationConfig_RemoteCluster) Descriptor
func (*CrossClusterReplicationConfig_RemoteCluster) Descriptor() ([]byte, []int)Deprecated: Use CrossClusterReplicationConfig_RemoteCluster.ProtoReflect.Descriptor instead.
func (*CrossClusterReplicationConfig_RemoteCluster) GetCluster
func (x *CrossClusterReplicationConfig_RemoteCluster) GetCluster() stringfunc (*CrossClusterReplicationConfig_RemoteCluster) GetUid
func (x *CrossClusterReplicationConfig_RemoteCluster) GetUid() stringfunc (*CrossClusterReplicationConfig_RemoteCluster) ProtoMessage
func (*CrossClusterReplicationConfig_RemoteCluster) ProtoMessage()func (*CrossClusterReplicationConfig_RemoteCluster) ProtoReflect
func (x *CrossClusterReplicationConfig_RemoteCluster) ProtoReflect() protoreflect.Messagefunc (*CrossClusterReplicationConfig_RemoteCluster) Reset
func (x *CrossClusterReplicationConfig_RemoteCluster) Reset()func (*CrossClusterReplicationConfig_RemoteCluster) String
func (x *CrossClusterReplicationConfig_RemoteCluster) String() stringDeleteBackupRequest
type DeleteBackupRequest struct {
// Required. Redis backup resource name using the form:
// `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Idempotent request UUID.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [DeleteBackup].
func (*DeleteBackupRequest) Descriptor
func (*DeleteBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteBackupRequest.ProtoReflect.Descriptor instead.
func (*DeleteBackupRequest) GetName
func (x *DeleteBackupRequest) GetName() stringfunc (*DeleteBackupRequest) GetRequestId
func (x *DeleteBackupRequest) GetRequestId() stringfunc (*DeleteBackupRequest) ProtoMessage
func (*DeleteBackupRequest) ProtoMessage()func (*DeleteBackupRequest) ProtoReflect
func (x *DeleteBackupRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteBackupRequest) Reset
func (x *DeleteBackupRequest) Reset()func (*DeleteBackupRequest) String
func (x *DeleteBackupRequest) String() stringDeleteClusterRequest
type DeleteClusterRequest struct {
// Required. Redis cluster resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Idempotent request UUID.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [DeleteCluster][CloudRedis.DeleteCluster].
func (*DeleteClusterRequest) Descriptor
func (*DeleteClusterRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteClusterRequest.ProtoReflect.Descriptor instead.
func (*DeleteClusterRequest) GetName
func (x *DeleteClusterRequest) GetName() stringfunc (*DeleteClusterRequest) GetRequestId
func (x *DeleteClusterRequest) GetRequestId() stringfunc (*DeleteClusterRequest) ProtoMessage
func (*DeleteClusterRequest) ProtoMessage()func (*DeleteClusterRequest) ProtoReflect
func (x *DeleteClusterRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteClusterRequest) Reset
func (x *DeleteClusterRequest) Reset()func (*DeleteClusterRequest) String
func (x *DeleteClusterRequest) String() stringDiscoveryEndpoint
type DiscoveryEndpoint struct {
// Output only. Address of the exposed Redis endpoint used by clients to
// connect to the service. The address could be either IP or hostname.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Output only. The port number of the exposed Redis endpoint.
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
// Output only. Customer configuration for where the endpoint is created and
// accessed from.
PscConfig *PscConfig `protobuf:"bytes,3,opt,name=psc_config,json=pscConfig,proto3" json:"psc_config,omitempty"`
// contains filtered or unexported fields
}Endpoints on each network, for Redis clients to connect to the cluster.
func (*DiscoveryEndpoint) Descriptor
func (*DiscoveryEndpoint) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryEndpoint.ProtoReflect.Descriptor instead.
func (*DiscoveryEndpoint) GetAddress
func (x *DiscoveryEndpoint) GetAddress() stringfunc (*DiscoveryEndpoint) GetPort
func (x *DiscoveryEndpoint) GetPort() int32func (*DiscoveryEndpoint) GetPscConfig
func (x *DiscoveryEndpoint) GetPscConfig() *PscConfigfunc (*DiscoveryEndpoint) ProtoMessage
func (*DiscoveryEndpoint) ProtoMessage()func (*DiscoveryEndpoint) ProtoReflect
func (x *DiscoveryEndpoint) ProtoReflect() protoreflect.Messagefunc (*DiscoveryEndpoint) Reset
func (x *DiscoveryEndpoint) Reset()func (*DiscoveryEndpoint) String
func (x *DiscoveryEndpoint) String() stringEncryptionInfo
type EncryptionInfo struct {
// Output only. Type of encryption.
EncryptionType EncryptionInfo_Type `protobuf:"varint,1,opt,name=encryption_type,json=encryptionType,proto3,enum=google.cloud.redis.cluster.v1.EncryptionInfo_Type" json:"encryption_type,omitempty"`
// Output only. KMS key versions that are being used to protect the data
// at-rest.
KmsKeyVersions []string `protobuf:"bytes,2,rep,name=kms_key_versions,json=kmsKeyVersions,proto3" json:"kms_key_versions,omitempty"`
// Output only. The state of the primary version of the KMS key perceived by
// the system. This field is not populated in backups.
KmsKeyPrimaryState EncryptionInfo_KmsKeyState `protobuf:"varint,3,opt,name=kms_key_primary_state,json=kmsKeyPrimaryState,proto3,enum=google.cloud.redis.cluster.v1.EncryptionInfo_KmsKeyState" json:"kms_key_primary_state,omitempty"`
// Output only. The most recent time when the encryption info was updated.
LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
// contains filtered or unexported fields
}EncryptionInfo describes the encryption information of a cluster or a backup.
func (*EncryptionInfo) Descriptor
func (*EncryptionInfo) Descriptor() ([]byte, []int)Deprecated: Use EncryptionInfo.ProtoReflect.Descriptor instead.
func (*EncryptionInfo) GetEncryptionType
func (x *EncryptionInfo) GetEncryptionType() EncryptionInfo_Typefunc (*EncryptionInfo) GetKmsKeyPrimaryState
func (x *EncryptionInfo) GetKmsKeyPrimaryState() EncryptionInfo_KmsKeyStatefunc (*EncryptionInfo) GetKmsKeyVersions
func (x *EncryptionInfo) GetKmsKeyVersions() []stringfunc (*EncryptionInfo) GetLastUpdateTime
func (x *EncryptionInfo) GetLastUpdateTime() *timestamppb.Timestampfunc (*EncryptionInfo) ProtoMessage
func (*EncryptionInfo) ProtoMessage()func (*EncryptionInfo) ProtoReflect
func (x *EncryptionInfo) ProtoReflect() protoreflect.Messagefunc (*EncryptionInfo) Reset
func (x *EncryptionInfo) Reset()func (*EncryptionInfo) String
func (x *EncryptionInfo) String() stringEncryptionInfo_KmsKeyState
type EncryptionInfo_KmsKeyState int32The state of the KMS key perceived by the system. Refer to the public documentation for the impact of each state.
EncryptionInfo_KMS_KEY_STATE_UNSPECIFIED, EncryptionInfo_ENABLED, EncryptionInfo_PERMISSION_DENIED, EncryptionInfo_DISABLED, EncryptionInfo_DESTROYED, EncryptionInfo_DESTROY_SCHEDULED, EncryptionInfo_EKM_KEY_UNREACHABLE_DETECTED, EncryptionInfo_BILLING_DISABLED, EncryptionInfo_UNKNOWN_FAILURE
const (
// The default value. This value is unused.
EncryptionInfo_KMS_KEY_STATE_UNSPECIFIED EncryptionInfo_KmsKeyState = 0
// The KMS key is enabled and correctly configured.
EncryptionInfo_ENABLED EncryptionInfo_KmsKeyState = 1
// Permission denied on the KMS key.
EncryptionInfo_PERMISSION_DENIED EncryptionInfo_KmsKeyState = 2
// The KMS key is disabled.
EncryptionInfo_DISABLED EncryptionInfo_KmsKeyState = 3
// The KMS key is destroyed.
EncryptionInfo_DESTROYED EncryptionInfo_KmsKeyState = 4
// The KMS key is scheduled to be destroyed.
EncryptionInfo_DESTROY_SCHEDULED EncryptionInfo_KmsKeyState = 5
// The EKM key is unreachable.
EncryptionInfo_EKM_KEY_UNREACHABLE_DETECTED EncryptionInfo_KmsKeyState = 6
// Billing is disabled for the project.
EncryptionInfo_BILLING_DISABLED EncryptionInfo_KmsKeyState = 7
// All other unknown failures.
EncryptionInfo_UNKNOWN_FAILURE EncryptionInfo_KmsKeyState = 8
)func (EncryptionInfo_KmsKeyState) Descriptor
func (EncryptionInfo_KmsKeyState) Descriptor() protoreflect.EnumDescriptorfunc (EncryptionInfo_KmsKeyState) Enum
func (x EncryptionInfo_KmsKeyState) Enum() *EncryptionInfo_KmsKeyStatefunc (EncryptionInfo_KmsKeyState) EnumDescriptor
func (EncryptionInfo_KmsKeyState) EnumDescriptor() ([]byte, []int)Deprecated: Use EncryptionInfo_KmsKeyState.Descriptor instead.
func (EncryptionInfo_KmsKeyState) Number
func (x EncryptionInfo_KmsKeyState) Number() protoreflect.EnumNumberfunc (EncryptionInfo_KmsKeyState) String
func (x EncryptionInfo_KmsKeyState) String() stringfunc (EncryptionInfo_KmsKeyState) Type
func (EncryptionInfo_KmsKeyState) Type() protoreflect.EnumTypeEncryptionInfo_Type
type EncryptionInfo_Type int32Possible encryption types.
EncryptionInfo_TYPE_UNSPECIFIED, EncryptionInfo_GOOGLE_DEFAULT_ENCRYPTION, EncryptionInfo_CUSTOMER_MANAGED_ENCRYPTION
const (
// Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
EncryptionInfo_TYPE_UNSPECIFIED EncryptionInfo_Type = 0
// The data is encrypted at rest with a key that is fully managed by Google.
// No key version will be populated. This is the default state.
EncryptionInfo_GOOGLE_DEFAULT_ENCRYPTION EncryptionInfo_Type = 1
// The data is encrypted at rest with a key that is managed by the customer.
// KMS key versions will be populated.
EncryptionInfo_CUSTOMER_MANAGED_ENCRYPTION EncryptionInfo_Type = 2
)func (EncryptionInfo_Type) Descriptor
func (EncryptionInfo_Type) Descriptor() protoreflect.EnumDescriptorfunc (EncryptionInfo_Type) Enum
func (x EncryptionInfo_Type) Enum() *EncryptionInfo_Typefunc (EncryptionInfo_Type) EnumDescriptor
func (EncryptionInfo_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use EncryptionInfo_Type.Descriptor instead.
func (EncryptionInfo_Type) Number
func (x EncryptionInfo_Type) Number() protoreflect.EnumNumberfunc (EncryptionInfo_Type) String
func (x EncryptionInfo_Type) String() stringfunc (EncryptionInfo_Type) Type
func (EncryptionInfo_Type) Type() protoreflect.EnumTypeExportBackupRequest
type ExportBackupRequest struct {
// Required. Specify destination to export a backup.
//
// Types that are valid to be assigned to Destination:
//
// *ExportBackupRequest_GcsBucket
Destination isExportBackupRequest_Destination `protobuf_oneof:"destination"`
// Required. Redis backup resource name using the form:
// `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [ExportBackup].
func (*ExportBackupRequest) Descriptor
func (*ExportBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use ExportBackupRequest.ProtoReflect.Descriptor instead.
func (*ExportBackupRequest) GetDestination
func (x *ExportBackupRequest) GetDestination() isExportBackupRequest_Destinationfunc (*ExportBackupRequest) GetGcsBucket
func (x *ExportBackupRequest) GetGcsBucket() stringfunc (*ExportBackupRequest) GetName
func (x *ExportBackupRequest) GetName() stringfunc (*ExportBackupRequest) ProtoMessage
func (*ExportBackupRequest) ProtoMessage()func (*ExportBackupRequest) ProtoReflect
func (x *ExportBackupRequest) ProtoReflect() protoreflect.Messagefunc (*ExportBackupRequest) Reset
func (x *ExportBackupRequest) Reset()func (*ExportBackupRequest) String
func (x *ExportBackupRequest) String() stringExportBackupRequest_GcsBucket
type ExportBackupRequest_GcsBucket struct {
// Google Cloud Storage bucket, like "my-bucket".
GcsBucket string `protobuf:"bytes,3,opt,name=gcs_bucket,json=gcsBucket,proto3,oneof"`
}GetBackupCollectionRequest
type GetBackupCollectionRequest struct {
// Required. Redis backupCollection resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [GetBackupCollection].
func (*GetBackupCollectionRequest) Descriptor
func (*GetBackupCollectionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupCollectionRequest.ProtoReflect.Descriptor instead.
func (*GetBackupCollectionRequest) GetName
func (x *GetBackupCollectionRequest) GetName() stringfunc (*GetBackupCollectionRequest) ProtoMessage
func (*GetBackupCollectionRequest) ProtoMessage()func (*GetBackupCollectionRequest) ProtoReflect
func (x *GetBackupCollectionRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupCollectionRequest) Reset
func (x *GetBackupCollectionRequest) Reset()func (*GetBackupCollectionRequest) String
func (x *GetBackupCollectionRequest) String() stringGetBackupRequest
type GetBackupRequest struct {
// Required. Redis backup resource name using the form:
// `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [GetBackup].
func (*GetBackupRequest) Descriptor
func (*GetBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupRequest.ProtoReflect.Descriptor instead.
func (*GetBackupRequest) GetName
func (x *GetBackupRequest) GetName() stringfunc (*GetBackupRequest) ProtoMessage
func (*GetBackupRequest) ProtoMessage()func (*GetBackupRequest) ProtoReflect
func (x *GetBackupRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupRequest) Reset
func (x *GetBackupRequest) Reset()func (*GetBackupRequest) String
func (x *GetBackupRequest) String() stringGetClusterCertificateAuthorityRequest
type GetClusterCertificateAuthorityRequest struct {
// Required. Redis cluster certificate authority resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest].
func (*GetClusterCertificateAuthorityRequest) Descriptor
func (*GetClusterCertificateAuthorityRequest) Descriptor() ([]byte, []int)Deprecated: Use GetClusterCertificateAuthorityRequest.ProtoReflect.Descriptor instead.
func (*GetClusterCertificateAuthorityRequest) GetName
func (x *GetClusterCertificateAuthorityRequest) GetName() stringfunc (*GetClusterCertificateAuthorityRequest) ProtoMessage
func (*GetClusterCertificateAuthorityRequest) ProtoMessage()func (*GetClusterCertificateAuthorityRequest) ProtoReflect
func (x *GetClusterCertificateAuthorityRequest) ProtoReflect() protoreflect.Messagefunc (*GetClusterCertificateAuthorityRequest) Reset
func (x *GetClusterCertificateAuthorityRequest) Reset()func (*GetClusterCertificateAuthorityRequest) String
func (x *GetClusterCertificateAuthorityRequest) String() stringGetClusterRequest
type GetClusterRequest struct {
// Required. Redis cluster resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [GetCluster][CloudRedis.GetCluster].
func (*GetClusterRequest) Descriptor
func (*GetClusterRequest) Descriptor() ([]byte, []int)Deprecated: Use GetClusterRequest.ProtoReflect.Descriptor instead.
func (*GetClusterRequest) GetName
func (x *GetClusterRequest) GetName() stringfunc (*GetClusterRequest) ProtoMessage
func (*GetClusterRequest) ProtoMessage()func (*GetClusterRequest) ProtoReflect
func (x *GetClusterRequest) ProtoReflect() protoreflect.Messagefunc (*GetClusterRequest) Reset
func (x *GetClusterRequest) Reset()func (*GetClusterRequest) String
func (x *GetClusterRequest) String() stringGetSharedRegionalCertificateAuthorityRequest
type GetSharedRegionalCertificateAuthorityRequest struct {
// Required. Regional certificate authority resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority`
//
// where `location_id` refers to a Google Cloud region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [GetSharedRegionalCertificateAuthority][CloudRedis.GetSharedRegionalCertificateAuthority].
func (*GetSharedRegionalCertificateAuthorityRequest) Descriptor
func (*GetSharedRegionalCertificateAuthorityRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSharedRegionalCertificateAuthorityRequest.ProtoReflect.Descriptor instead.
func (*GetSharedRegionalCertificateAuthorityRequest) GetName
func (x *GetSharedRegionalCertificateAuthorityRequest) GetName() stringfunc (*GetSharedRegionalCertificateAuthorityRequest) ProtoMessage
func (*GetSharedRegionalCertificateAuthorityRequest) ProtoMessage()func (*GetSharedRegionalCertificateAuthorityRequest) ProtoReflect
func (x *GetSharedRegionalCertificateAuthorityRequest) ProtoReflect() protoreflect.Messagefunc (*GetSharedRegionalCertificateAuthorityRequest) Reset
func (x *GetSharedRegionalCertificateAuthorityRequest) Reset()func (*GetSharedRegionalCertificateAuthorityRequest) String
func (x *GetSharedRegionalCertificateAuthorityRequest) String() stringListBackupCollectionsRequest
type ListBackupCollectionsRequest struct {
// Required. The resource name of the backupCollection location using the
// form:
//
// `projects/{project_id}/locations/{location_id}`
//
// where `location_id` refers to a GCP region.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return.
//
// If not specified, a default value of 1000 will be used by the service.
// Regardless of the page_size value, the response may include a partial list
// and a caller should only rely on response's
// [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token]
// to determine if there are more clusters left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The `next_page_token` value returned from a previous
// [ListBackupCollections] request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request for [ListBackupCollections]
func (*ListBackupCollectionsRequest) Descriptor
func (*ListBackupCollectionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBackupCollectionsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupCollectionsRequest) GetPageSize
func (x *ListBackupCollectionsRequest) GetPageSize() int32func (*ListBackupCollectionsRequest) GetPageToken
func (x *ListBackupCollectionsRequest) GetPageToken() stringfunc (*ListBackupCollectionsRequest) GetParent
func (x *ListBackupCollectionsRequest) GetParent() stringfunc (*ListBackupCollectionsRequest) ProtoMessage
func (*ListBackupCollectionsRequest) ProtoMessage()func (*ListBackupCollectionsRequest) ProtoReflect
func (x *ListBackupCollectionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListBackupCollectionsRequest) Reset
func (x *ListBackupCollectionsRequest) Reset()func (*ListBackupCollectionsRequest) String
func (x *ListBackupCollectionsRequest) String() stringListBackupCollectionsResponse
type ListBackupCollectionsResponse struct {
// A list of backupCollections in the project.
//
// If the `location_id` in the parent field of the request is "-", all regions
// available to the project are queried, and the results aggregated.
// If in such an aggregated query a location is unavailable, a placeholder
// backupCollection entry is included in the response with the `name` field
// set to a value of the form
// `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
// `status` field set to ERROR and `status_message` field set to "location not
// available for ListBackupCollections".
BackupCollections []*BackupCollection `protobuf:"bytes,1,rep,name=backup_collections,json=backupCollections,proto3" json:"backup_collections,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response for [ListBackupCollections].
func (*ListBackupCollectionsResponse) Descriptor
func (*ListBackupCollectionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBackupCollectionsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupCollectionsResponse) GetBackupCollections
func (x *ListBackupCollectionsResponse) GetBackupCollections() []*BackupCollectionfunc (*ListBackupCollectionsResponse) GetNextPageToken
func (x *ListBackupCollectionsResponse) GetNextPageToken() stringfunc (*ListBackupCollectionsResponse) GetUnreachable
func (x *ListBackupCollectionsResponse) GetUnreachable() []stringfunc (*ListBackupCollectionsResponse) ProtoMessage
func (*ListBackupCollectionsResponse) ProtoMessage()func (*ListBackupCollectionsResponse) ProtoReflect
func (x *ListBackupCollectionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListBackupCollectionsResponse) Reset
func (x *ListBackupCollectionsResponse) Reset()func (*ListBackupCollectionsResponse) String
func (x *ListBackupCollectionsResponse) String() stringListBackupsRequest
type ListBackupsRequest struct {
// Required. The resource name of the backupCollection using the form:
// `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return.
//
// If not specified, a default value of 1000 will be used by the service.
// Regardless of the page_size value, the response may include a partial list
// and a caller should only rely on response's
// [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token]
// to determine if there are more clusters left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The `next_page_token` value returned from a previous
// [ListBackupCollections] request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request for [ListBackups].
func (*ListBackupsRequest) Descriptor
func (*ListBackupsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupsRequest) GetPageSize
func (x *ListBackupsRequest) GetPageSize() int32func (*ListBackupsRequest) GetPageToken
func (x *ListBackupsRequest) GetPageToken() stringfunc (*ListBackupsRequest) GetParent
func (x *ListBackupsRequest) GetParent() stringfunc (*ListBackupsRequest) ProtoMessage
func (*ListBackupsRequest) ProtoMessage()func (*ListBackupsRequest) ProtoReflect
func (x *ListBackupsRequest) ProtoReflect() protoreflect.Messagefunc (*ListBackupsRequest) Reset
func (x *ListBackupsRequest) Reset()func (*ListBackupsRequest) String
func (x *ListBackupsRequest) String() stringListBackupsResponse
type ListBackupsResponse struct {
// A list of backups in the project.
Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Backups that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response for [ListBackups].
func (*ListBackupsResponse) Descriptor
func (*ListBackupsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBackupsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupsResponse) GetBackups
func (x *ListBackupsResponse) GetBackups() []*Backupfunc (*ListBackupsResponse) GetNextPageToken
func (x *ListBackupsResponse) GetNextPageToken() stringfunc (*ListBackupsResponse) GetUnreachable
func (x *ListBackupsResponse) GetUnreachable() []stringfunc (*ListBackupsResponse) ProtoMessage
func (*ListBackupsResponse) ProtoMessage()func (*ListBackupsResponse) ProtoReflect
func (x *ListBackupsResponse) ProtoReflect() protoreflect.Messagefunc (*ListBackupsResponse) Reset
func (x *ListBackupsResponse) Reset()func (*ListBackupsResponse) String
func (x *ListBackupsResponse) String() stringListClustersRequest
type ListClustersRequest struct {
// Required. The resource name of the cluster location using the form:
//
// `projects/{project_id}/locations/{location_id}`
//
// where `location_id` refers to a GCP region.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return.
//
// If not specified, a default value of 1000 will be used by the service.
// Regardless of the page_size value, the response may include a partial list
// and a caller should only rely on response's
// [`next_page_token`][google.cloud.redis.cluster.v1.ListClustersResponse.next_page_token]
// to determine if there are more clusters left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The `next_page_token` value returned from a previous
// [ListClusters][CloudRedis.ListClusters] request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request for [ListClusters][CloudRedis.ListClusters].
func (*ListClustersRequest) Descriptor
func (*ListClustersRequest) Descriptor() ([]byte, []int)Deprecated: Use ListClustersRequest.ProtoReflect.Descriptor instead.
func (*ListClustersRequest) GetPageSize
func (x *ListClustersRequest) GetPageSize() int32func (*ListClustersRequest) GetPageToken
func (x *ListClustersRequest) GetPageToken() stringfunc (*ListClustersRequest) GetParent
func (x *ListClustersRequest) GetParent() stringfunc (*ListClustersRequest) ProtoMessage
func (*ListClustersRequest) ProtoMessage()func (*ListClustersRequest) ProtoReflect
func (x *ListClustersRequest) ProtoReflect() protoreflect.Messagefunc (*ListClustersRequest) Reset
func (x *ListClustersRequest) Reset()func (*ListClustersRequest) String
func (x *ListClustersRequest) String() stringListClustersResponse
type ListClustersResponse struct {
// A list of Redis clusters in the project in the specified location,
// or across all locations.
//
// If the `location_id` in the parent field of the request is "-", all regions
// available to the project are queried, and the results aggregated.
// If in such an aggregated query a location is unavailable, a placeholder
// Redis entry is included in the response with the `name` field set to a
// value of the form
// `projects/{project_id}/locations/{location_id}/clusters/`- and the
// `status` field set to ERROR and `status_message` field set to "location not
// available for ListClusters".
Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response for [ListClusters][CloudRedis.ListClusters].
func (*ListClustersResponse) Descriptor
func (*ListClustersResponse) Descriptor() ([]byte, []int)Deprecated: Use ListClustersResponse.ProtoReflect.Descriptor instead.
func (*ListClustersResponse) GetClusters
func (x *ListClustersResponse) GetClusters() []*Clusterfunc (*ListClustersResponse) GetNextPageToken
func (x *ListClustersResponse) GetNextPageToken() stringfunc (*ListClustersResponse) GetUnreachable
func (x *ListClustersResponse) GetUnreachable() []stringfunc (*ListClustersResponse) ProtoMessage
func (*ListClustersResponse) ProtoMessage()func (*ListClustersResponse) ProtoReflect
func (x *ListClustersResponse) ProtoReflect() protoreflect.Messagefunc (*ListClustersResponse) Reset
func (x *ListClustersResponse) Reset()func (*ListClustersResponse) String
func (x *ListClustersResponse) String() stringNodeType
type NodeType int32NodeType of a redis cluster node,
NodeType_NODE_TYPE_UNSPECIFIED, NodeType_REDIS_SHARED_CORE_NANO, NodeType_REDIS_HIGHMEM_MEDIUM, NodeType_REDIS_HIGHMEM_XLARGE, NodeType_REDIS_STANDARD_SMALL, NodeType_REDIS_HIGHCPU_MEDIUM, NodeType_REDIS_STANDARD_LARGE, NodeType_REDIS_HIGHMEM_2XLARGE
const (
// Node type unspecified
NodeType_NODE_TYPE_UNSPECIFIED NodeType = 0
// Redis shared core nano node_type.
NodeType_REDIS_SHARED_CORE_NANO NodeType = 1
// Redis highmem medium node_type.
NodeType_REDIS_HIGHMEM_MEDIUM NodeType = 2
// Redis highmem xlarge node_type.
NodeType_REDIS_HIGHMEM_XLARGE NodeType = 3
// Redis standard small node_type.
NodeType_REDIS_STANDARD_SMALL NodeType = 4
// Redis highcpu medium node_type.
NodeType_REDIS_HIGHCPU_MEDIUM NodeType = 7
// Redis standard large node_type.
NodeType_REDIS_STANDARD_LARGE NodeType = 8
// Redis highmem 2xlarge node_type.
NodeType_REDIS_HIGHMEM_2XLARGE NodeType = 9
)func (NodeType) Descriptor
func (NodeType) Descriptor() protoreflect.EnumDescriptorfunc (NodeType) Enum
func (NodeType) EnumDescriptor
Deprecated: Use NodeType.Descriptor instead.
func (NodeType) Number
func (x NodeType) Number() protoreflect.EnumNumberfunc (NodeType) String
func (NodeType) Type
func (NodeType) Type() protoreflect.EnumTypeOperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Pre-defined metadata fields.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringPscAutoConnection
type PscAutoConnection struct {
// Output only. The PSC connection id of the forwarding rule connected to the
// service attachment.
PscConnectionId string `protobuf:"bytes,1,opt,name=psc_connection_id,json=pscConnectionId,proto3" json:"psc_connection_id,omitempty"`
// Output only. The IP allocated on the consumer network for the PSC
// forwarding rule.
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// Output only. The URI of the consumer side forwarding rule.
// Example:
// projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
ForwardingRule string `protobuf:"bytes,3,opt,name=forwarding_rule,json=forwardingRule,proto3" json:"forwarding_rule,omitempty"`
// Required. The consumer project_id where the forwarding rule is created
// from.
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The consumer network where the IP address resides, in the form of
// projects/{project_id}/global/networks/{network_id}.
Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
// Output only. The service attachment which is the target of the PSC
// connection, in the form of
// projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
ServiceAttachment string `protobuf:"bytes,6,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"`
// Output only. The status of the PSC connection.
// Please note that this value is updated periodically.
// Please use Private Service Connect APIs for the latest status.
PscConnectionStatus PscConnectionStatus `protobuf:"varint,8,opt,name=psc_connection_status,json=pscConnectionStatus,proto3,enum=google.cloud.redis.cluster.v1.PscConnectionStatus" json:"psc_connection_status,omitempty"`
// Output only. Type of the PSC connection.
ConnectionType ConnectionType `protobuf:"varint,9,opt,name=connection_type,json=connectionType,proto3,enum=google.cloud.redis.cluster.v1.ConnectionType" json:"connection_type,omitempty"`
// contains filtered or unexported fields
}Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.
func (*PscAutoConnection) Descriptor
func (*PscAutoConnection) Descriptor() ([]byte, []int)Deprecated: Use PscAutoConnection.ProtoReflect.Descriptor instead.
func (*PscAutoConnection) GetAddress
func (x *PscAutoConnection) GetAddress() stringfunc (*PscAutoConnection) GetConnectionType
func (x *PscAutoConnection) GetConnectionType() ConnectionTypefunc (*PscAutoConnection) GetForwardingRule
func (x *PscAutoConnection) GetForwardingRule() stringfunc (*PscAutoConnection) GetNetwork
func (x *PscAutoConnection) GetNetwork() stringfunc (*PscAutoConnection) GetProjectId
func (x *PscAutoConnection) GetProjectId() stringfunc (*PscAutoConnection) GetPscConnectionId
func (x *PscAutoConnection) GetPscConnectionId() stringfunc (*PscAutoConnection) GetPscConnectionStatus
func (x *PscAutoConnection) GetPscConnectionStatus() PscConnectionStatusfunc (*PscAutoConnection) GetServiceAttachment
func (x *PscAutoConnection) GetServiceAttachment() stringfunc (*PscAutoConnection) ProtoMessage
func (*PscAutoConnection) ProtoMessage()func (*PscAutoConnection) ProtoReflect
func (x *PscAutoConnection) ProtoReflect() protoreflect.Messagefunc (*PscAutoConnection) Reset
func (x *PscAutoConnection) Reset()func (*PscAutoConnection) String
func (x *PscAutoConnection) String() stringPscConfig
type PscConfig struct {
// Required. The network where the IP address of the discovery endpoint will
// be reserved, in the form of
// projects/{network_project}/global/networks/{network_id}.
Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
// contains filtered or unexported fields
}func (*PscConfig) Descriptor
Deprecated: Use PscConfig.ProtoReflect.Descriptor instead.
func (*PscConfig) GetNetwork
func (*PscConfig) ProtoMessage
func (*PscConfig) ProtoMessage()func (*PscConfig) ProtoReflect
func (x *PscConfig) ProtoReflect() protoreflect.Messagefunc (*PscConfig) Reset
func (x *PscConfig) Reset()func (*PscConfig) String
PscConnection
type PscConnection struct {
// Required. The PSC connection id of the forwarding rule connected to the
// service attachment.
PscConnectionId string `protobuf:"bytes,1,opt,name=psc_connection_id,json=pscConnectionId,proto3" json:"psc_connection_id,omitempty"`
// Required. The IP allocated on the consumer network for the PSC forwarding
// rule.
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// Required. The URI of the consumer side forwarding rule.
// Example:
// projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
ForwardingRule string `protobuf:"bytes,3,opt,name=forwarding_rule,json=forwardingRule,proto3" json:"forwarding_rule,omitempty"`
// Optional. Project ID of the consumer project where the forwarding rule is
// created in.
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The consumer network where the IP address resides, in the form of
// projects/{project_id}/global/networks/{network_id}.
Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
// Required. The service attachment which is the target of the PSC connection,
// in the form of
// projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
ServiceAttachment string `protobuf:"bytes,6,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"`
// Output only. The status of the PSC connection.
// Please note that this value is updated periodically.
// To get the latest status of a PSC connection, follow
// https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
PscConnectionStatus PscConnectionStatus `protobuf:"varint,8,opt,name=psc_connection_status,json=pscConnectionStatus,proto3,enum=google.cloud.redis.cluster.v1.PscConnectionStatus" json:"psc_connection_status,omitempty"`
// Output only. Type of the PSC connection.
ConnectionType ConnectionType `protobuf:"varint,10,opt,name=connection_type,json=connectionType,proto3,enum=google.cloud.redis.cluster.v1.ConnectionType" json:"connection_type,omitempty"`
// contains filtered or unexported fields
}Details of consumer resources in a PSC connection.
func (*PscConnection) Descriptor
func (*PscConnection) Descriptor() ([]byte, []int)Deprecated: Use PscConnection.ProtoReflect.Descriptor instead.
func (*PscConnection) GetAddress
func (x *PscConnection) GetAddress() stringfunc (*PscConnection) GetConnectionType
func (x *PscConnection) GetConnectionType() ConnectionTypefunc (*PscConnection) GetForwardingRule
func (x *PscConnection) GetForwardingRule() stringfunc (*PscConnection) GetNetwork
func (x *PscConnection) GetNetwork() stringfunc (*PscConnection) GetProjectId
func (x *PscConnection) GetProjectId() stringfunc (*PscConnection) GetPscConnectionId
func (x *PscConnection) GetPscConnectionId() stringfunc (*PscConnection) GetPscConnectionStatus
func (x *PscConnection) GetPscConnectionStatus() PscConnectionStatusfunc (*PscConnection) GetServiceAttachment
func (x *PscConnection) GetServiceAttachment() stringfunc (*PscConnection) ProtoMessage
func (*PscConnection) ProtoMessage()func (*PscConnection) ProtoReflect
func (x *PscConnection) ProtoReflect() protoreflect.Messagefunc (*PscConnection) Reset
func (x *PscConnection) Reset()func (*PscConnection) String
func (x *PscConnection) String() stringPscConnectionStatus
type PscConnectionStatus int32Status of the PSC connection.
PscConnectionStatus_PSC_CONNECTION_STATUS_UNSPECIFIED, PscConnectionStatus_PSC_CONNECTION_STATUS_ACTIVE, PscConnectionStatus_PSC_CONNECTION_STATUS_NOT_FOUND
const (
// PSC connection status is not specified.
PscConnectionStatus_PSC_CONNECTION_STATUS_UNSPECIFIED PscConnectionStatus = 0
// The connection is active
PscConnectionStatus_PSC_CONNECTION_STATUS_ACTIVE PscConnectionStatus = 1
// Connection not found
PscConnectionStatus_PSC_CONNECTION_STATUS_NOT_FOUND PscConnectionStatus = 2
)func (PscConnectionStatus) Descriptor
func (PscConnectionStatus) Descriptor() protoreflect.EnumDescriptorfunc (PscConnectionStatus) Enum
func (x PscConnectionStatus) Enum() *PscConnectionStatusfunc (PscConnectionStatus) EnumDescriptor
func (PscConnectionStatus) EnumDescriptor() ([]byte, []int)Deprecated: Use PscConnectionStatus.Descriptor instead.
func (PscConnectionStatus) Number
func (x PscConnectionStatus) Number() protoreflect.EnumNumberfunc (PscConnectionStatus) String
func (x PscConnectionStatus) String() stringfunc (PscConnectionStatus) Type
func (PscConnectionStatus) Type() protoreflect.EnumTypePscServiceAttachment
type PscServiceAttachment struct {
// Output only. Service attachment URI which your self-created PscConnection
// should use as target
ServiceAttachment string `protobuf:"bytes,1,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"`
// Output only. Type of a PSC connection targeting this service attachment.
ConnectionType ConnectionType `protobuf:"varint,3,opt,name=connection_type,json=connectionType,proto3,enum=google.cloud.redis.cluster.v1.ConnectionType" json:"connection_type,omitempty"`
// contains filtered or unexported fields
}Configuration of a service attachment of the cluster, for creating PSC connections.
func (*PscServiceAttachment) Descriptor
func (*PscServiceAttachment) Descriptor() ([]byte, []int)Deprecated: Use PscServiceAttachment.ProtoReflect.Descriptor instead.
func (*PscServiceAttachment) GetConnectionType
func (x *PscServiceAttachment) GetConnectionType() ConnectionTypefunc (*PscServiceAttachment) GetServiceAttachment
func (x *PscServiceAttachment) GetServiceAttachment() stringfunc (*PscServiceAttachment) ProtoMessage
func (*PscServiceAttachment) ProtoMessage()func (*PscServiceAttachment) ProtoReflect
func (x *PscServiceAttachment) ProtoReflect() protoreflect.Messagefunc (*PscServiceAttachment) Reset
func (x *PscServiceAttachment) Reset()func (*PscServiceAttachment) String
func (x *PscServiceAttachment) String() stringRescheduleClusterMaintenanceRequest
type RescheduleClusterMaintenanceRequest struct {
// Required. Redis Cluster instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
// well.
RescheduleType RescheduleClusterMaintenanceRequest_RescheduleType `protobuf:"varint,2,opt,name=reschedule_type,json=rescheduleType,proto3,enum=google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest_RescheduleType" json:"reschedule_type,omitempty"`
// Optional. Timestamp when the maintenance shall be rescheduled to if
// reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
// example `2012-11-15T16:19:00.094Z`.
ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
// contains filtered or unexported fields
}Request for rescheduling a cluster maintenance.
func (*RescheduleClusterMaintenanceRequest) Descriptor
func (*RescheduleClusterMaintenanceRequest) Descriptor() ([]byte, []int)Deprecated: Use RescheduleClusterMaintenanceRequest.ProtoReflect.Descriptor instead.
func (*RescheduleClusterMaintenanceRequest) GetName
func (x *RescheduleClusterMaintenanceRequest) GetName() stringfunc (*RescheduleClusterMaintenanceRequest) GetRescheduleType
func (x *RescheduleClusterMaintenanceRequest) GetRescheduleType() RescheduleClusterMaintenanceRequest_RescheduleTypefunc (*RescheduleClusterMaintenanceRequest) GetScheduleTime
func (x *RescheduleClusterMaintenanceRequest) GetScheduleTime() *timestamppb.Timestampfunc (*RescheduleClusterMaintenanceRequest) ProtoMessage
func (*RescheduleClusterMaintenanceRequest) ProtoMessage()func (*RescheduleClusterMaintenanceRequest) ProtoReflect
func (x *RescheduleClusterMaintenanceRequest) ProtoReflect() protoreflect.Messagefunc (*RescheduleClusterMaintenanceRequest) Reset
func (x *RescheduleClusterMaintenanceRequest) Reset()func (*RescheduleClusterMaintenanceRequest) String
func (x *RescheduleClusterMaintenanceRequest) String() stringRescheduleClusterMaintenanceRequest_RescheduleType
type RescheduleClusterMaintenanceRequest_RescheduleType int32Reschedule options.
RescheduleClusterMaintenanceRequest_RESCHEDULE_TYPE_UNSPECIFIED, RescheduleClusterMaintenanceRequest_IMMEDIATE, RescheduleClusterMaintenanceRequest_SPECIFIC_TIME
const (
// Not set.
RescheduleClusterMaintenanceRequest_RESCHEDULE_TYPE_UNSPECIFIED RescheduleClusterMaintenanceRequest_RescheduleType = 0
// If the user wants to schedule the maintenance to happen now.
RescheduleClusterMaintenanceRequest_IMMEDIATE RescheduleClusterMaintenanceRequest_RescheduleType = 1
// If the user wants to reschedule the maintenance to a specific time.
RescheduleClusterMaintenanceRequest_SPECIFIC_TIME RescheduleClusterMaintenanceRequest_RescheduleType = 3
)func (RescheduleClusterMaintenanceRequest_RescheduleType) Descriptor
func (RescheduleClusterMaintenanceRequest_RescheduleType) Descriptor() protoreflect.EnumDescriptorfunc (RescheduleClusterMaintenanceRequest_RescheduleType) Enum
func (x RescheduleClusterMaintenanceRequest_RescheduleType) Enum() *RescheduleClusterMaintenanceRequest_RescheduleTypefunc (RescheduleClusterMaintenanceRequest_RescheduleType) EnumDescriptor
func (RescheduleClusterMaintenanceRequest_RescheduleType) EnumDescriptor() ([]byte, []int)Deprecated: Use RescheduleClusterMaintenanceRequest_RescheduleType.Descriptor instead.
func (RescheduleClusterMaintenanceRequest_RescheduleType) Number
func (x RescheduleClusterMaintenanceRequest_RescheduleType) Number() protoreflect.EnumNumberfunc (RescheduleClusterMaintenanceRequest_RescheduleType) String
func (x RescheduleClusterMaintenanceRequest_RescheduleType) String() stringfunc (RescheduleClusterMaintenanceRequest_RescheduleType) Type
ServerCaMode
type ServerCaMode int32Server CA mode for the cluster.
ServerCaMode_SERVER_CA_MODE_UNSPECIFIED, ServerCaMode_SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA, ServerCaMode_SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA, ServerCaMode_SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA
const (
// Server CA mode not specified.
ServerCaMode_SERVER_CA_MODE_UNSPECIFIED ServerCaMode = 0
// Each cluster has its own Google managed CA.
ServerCaMode_SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA ServerCaMode = 1
// The cluster uses Google managed shared CA in the region.
ServerCaMode_SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA ServerCaMode = 2
// The cluster uses customer managed CA from CAS.
ServerCaMode_SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA ServerCaMode = 3
)func (ServerCaMode) Descriptor
func (ServerCaMode) Descriptor() protoreflect.EnumDescriptorfunc (ServerCaMode) Enum
func (x ServerCaMode) Enum() *ServerCaModefunc (ServerCaMode) EnumDescriptor
func (ServerCaMode) EnumDescriptor() ([]byte, []int)Deprecated: Use ServerCaMode.Descriptor instead.
func (ServerCaMode) Number
func (x ServerCaMode) Number() protoreflect.EnumNumberfunc (ServerCaMode) String
func (x ServerCaMode) String() stringfunc (ServerCaMode) Type
func (ServerCaMode) Type() protoreflect.EnumTypeSharedRegionalCertificateAuthority
type SharedRegionalCertificateAuthority struct {
// Server ca information.
//
// Types that are valid to be assigned to ServerCa:
//
// *SharedRegionalCertificateAuthority_ManagedServerCa
ServerCa isSharedRegionalCertificateAuthority_ServerCa `protobuf_oneof:"server_ca"`
// Identifier. Unique name of the resource in this scope including project and
// location using the form:
//
// `projects/{project}/locations/{location}/sharedRegionalCertificateAuthority`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Shared regional certificate authority
func (*SharedRegionalCertificateAuthority) Descriptor
func (*SharedRegionalCertificateAuthority) Descriptor() ([]byte, []int)Deprecated: Use SharedRegionalCertificateAuthority.ProtoReflect.Descriptor instead.
func (*SharedRegionalCertificateAuthority) GetManagedServerCa
func (x *SharedRegionalCertificateAuthority) GetManagedServerCa() *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthorityfunc (*SharedRegionalCertificateAuthority) GetName
func (x *SharedRegionalCertificateAuthority) GetName() stringfunc (*SharedRegionalCertificateAuthority) GetServerCa
func (x *SharedRegionalCertificateAuthority) GetServerCa() isSharedRegionalCertificateAuthority_ServerCafunc (*SharedRegionalCertificateAuthority) ProtoMessage
func (*SharedRegionalCertificateAuthority) ProtoMessage()func (*SharedRegionalCertificateAuthority) ProtoReflect
func (x *SharedRegionalCertificateAuthority) ProtoReflect() protoreflect.Messagefunc (*SharedRegionalCertificateAuthority) Reset
func (x *SharedRegionalCertificateAuthority) Reset()func (*SharedRegionalCertificateAuthority) String
func (x *SharedRegionalCertificateAuthority) String() stringSharedRegionalCertificateAuthority_ManagedServerCa
type SharedRegionalCertificateAuthority_ManagedServerCa struct {
// CA certificate chains for redis managed server authentication.
ManagedServerCa *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority `protobuf:"bytes,2,opt,name=managed_server_ca,json=managedServerCa,proto3,oneof"`
}SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority
type SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority struct {
// The PEM encoded CA certificate chains for redis managed
// server authentication
CaCerts []*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain `protobuf:"bytes,1,rep,name=ca_certs,json=caCerts,proto3" json:"ca_certs,omitempty"`
// contains filtered or unexported fields
}CA certificate chains for redis managed server authentication.
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) Descriptor
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) Descriptor() ([]byte, []int)Deprecated: Use SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority.ProtoReflect.Descriptor instead.
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) GetCaCerts
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) GetCaCerts() []*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChainfunc (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) ProtoMessage
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) ProtoMessage()func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) ProtoReflect
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) ProtoReflect() protoreflect.Messagefunc (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) Reset
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) Reset()func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) String
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority) String() stringSharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain
type SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain struct {
// The certificates that form the CA chain, from leaf to root order.
Certificates []string `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"`
// contains filtered or unexported fields
}The certificates that form the CA chain, from leaf to root order.
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) Descriptor
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) Descriptor() ([]byte, []int)Deprecated: Use SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain.ProtoReflect.Descriptor instead.
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) GetCertificates
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) GetCertificates() []stringfunc (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) ProtoMessage
func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) ProtoMessage()func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) ProtoReflect
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) ProtoReflect() protoreflect.Messagefunc (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) Reset
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) Reset()func (*SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) String
func (x *SharedRegionalCertificateAuthority_RegionalManagedCertificateAuthority_RegionalCertChain) String() stringTransitEncryptionMode
type TransitEncryptionMode int32Available mode of in-transit encryption.
TransitEncryptionMode_TRANSIT_ENCRYPTION_MODE_UNSPECIFIED, TransitEncryptionMode_TRANSIT_ENCRYPTION_MODE_DISABLED, TransitEncryptionMode_TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION
const (
// In-transit encryption not set.
TransitEncryptionMode_TRANSIT_ENCRYPTION_MODE_UNSPECIFIED TransitEncryptionMode = 0
// In-transit encryption disabled.
TransitEncryptionMode_TRANSIT_ENCRYPTION_MODE_DISABLED TransitEncryptionMode = 1
// Use server managed encryption for in-transit encryption.
TransitEncryptionMode_TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION TransitEncryptionMode = 2
)func (TransitEncryptionMode) Descriptor
func (TransitEncryptionMode) Descriptor() protoreflect.EnumDescriptorfunc (TransitEncryptionMode) Enum
func (x TransitEncryptionMode) Enum() *TransitEncryptionModefunc (TransitEncryptionMode) EnumDescriptor
func (TransitEncryptionMode) EnumDescriptor() ([]byte, []int)Deprecated: Use TransitEncryptionMode.Descriptor instead.
func (TransitEncryptionMode) Number
func (x TransitEncryptionMode) Number() protoreflect.EnumNumberfunc (TransitEncryptionMode) String
func (x TransitEncryptionMode) String() stringfunc (TransitEncryptionMode) Type
func (TransitEncryptionMode) Type() protoreflect.EnumTypeUnimplementedCloudRedisClusterServer
type UnimplementedCloudRedisClusterServer struct {
}UnimplementedCloudRedisClusterServer should be embedded to have forward compatible implementations.
func (UnimplementedCloudRedisClusterServer) BackupCluster
func (UnimplementedCloudRedisClusterServer) BackupCluster(context.Context, *BackupClusterRequest) (*longrunningpb.Operation, error)func (UnimplementedCloudRedisClusterServer) CreateCluster
func (UnimplementedCloudRedisClusterServer) CreateCluster(context.Context, *CreateClusterRequest) (*longrunningpb.Operation, error)func (UnimplementedCloudRedisClusterServer) DeleteBackup
func (UnimplementedCloudRedisClusterServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error)func (UnimplementedCloudRedisClusterServer) DeleteCluster
func (UnimplementedCloudRedisClusterServer) DeleteCluster(context.Context, *DeleteClusterRequest) (*longrunningpb.Operation, error)func (UnimplementedCloudRedisClusterServer) ExportBackup
func (UnimplementedCloudRedisClusterServer) ExportBackup(context.Context, *ExportBackupRequest) (*longrunningpb.Operation, error)func (UnimplementedCloudRedisClusterServer) GetBackup
func (UnimplementedCloudRedisClusterServer) GetBackup(context.Context, *GetBackupRequest) (*Backup, error)func (UnimplementedCloudRedisClusterServer) GetBackupCollection
func (UnimplementedCloudRedisClusterServer) GetBackupCollection(context.Context, *GetBackupCollectionRequest) (*BackupCollection, error)func (UnimplementedCloudRedisClusterServer) GetCluster
func (UnimplementedCloudRedisClusterServer) GetCluster(context.Context, *GetClusterRequest) (*Cluster, error)func (UnimplementedCloudRedisClusterServer) GetClusterCertificateAuthority
func (UnimplementedCloudRedisClusterServer) GetClusterCertificateAuthority(context.Context, *GetClusterCertificateAuthorityRequest) (*CertificateAuthority, error)func (UnimplementedCloudRedisClusterServer) GetSharedRegionalCertificateAuthority
func (UnimplementedCloudRedisClusterServer) GetSharedRegionalCertificateAuthority(context.Context, *GetSharedRegionalCertificateAuthorityRequest) (*SharedRegionalCertificateAuthority, error)func (UnimplementedCloudRedisClusterServer) ListBackupCollections
func (UnimplementedCloudRedisClusterServer) ListBackupCollections(context.Context, *ListBackupCollectionsRequest) (*ListBackupCollectionsResponse, error)func (UnimplementedCloudRedisClusterServer) ListBackups
func (UnimplementedCloudRedisClusterServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)func (UnimplementedCloudRedisClusterServer) ListClusters
func (UnimplementedCloudRedisClusterServer) ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)func (UnimplementedCloudRedisClusterServer) RescheduleClusterMaintenance
func (UnimplementedCloudRedisClusterServer) RescheduleClusterMaintenance(context.Context, *RescheduleClusterMaintenanceRequest) (*longrunningpb.Operation, error)func (UnimplementedCloudRedisClusterServer) UpdateCluster
func (UnimplementedCloudRedisClusterServer) UpdateCluster(context.Context, *UpdateClusterRequest) (*longrunningpb.Operation, error)UnsafeCloudRedisClusterServer
type UnsafeCloudRedisClusterServer interface {
// contains filtered or unexported methods
}UnsafeCloudRedisClusterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudRedisClusterServer will result in compilation errors.
UpdateClusterRequest
type UpdateClusterRequest struct {
// Required. Mask of fields to update. At least one path must be supplied in
// this field. The elements of the repeated paths field may only include these
// fields from [Cluster][google.cloud.redis.cluster.v1.Cluster]:
//
// - `size_gb`
// - `replica_count`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. Update description.
// Only fields specified in update_mask are updated.
Cluster *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Idempotent request UUID.
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [UpdateCluster][CloudRedis.UpdateCluster].
func (*UpdateClusterRequest) Descriptor
func (*UpdateClusterRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateClusterRequest.ProtoReflect.Descriptor instead.
func (*UpdateClusterRequest) GetCluster
func (x *UpdateClusterRequest) GetCluster() *Clusterfunc (*UpdateClusterRequest) GetRequestId
func (x *UpdateClusterRequest) GetRequestId() stringfunc (*UpdateClusterRequest) GetUpdateMask
func (x *UpdateClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateClusterRequest) ProtoMessage
func (*UpdateClusterRequest) ProtoMessage()func (*UpdateClusterRequest) ProtoReflect
func (x *UpdateClusterRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateClusterRequest) Reset
func (x *UpdateClusterRequest) Reset()func (*UpdateClusterRequest) String
func (x *UpdateClusterRequest) String() stringZoneDistributionConfig
type ZoneDistributionConfig struct {
// Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
// specified.
Mode ZoneDistributionConfig_ZoneDistributionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=google.cloud.redis.cluster.v1.ZoneDistributionConfig_ZoneDistributionMode" json:"mode,omitempty"`
// Optional. When SINGLE ZONE distribution is selected, zone field would be
// used to allocate all resources in that zone. This is not applicable to
// MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
// contains filtered or unexported fields
}Zone distribution config for allocation of cluster resources.
func (*ZoneDistributionConfig) Descriptor
func (*ZoneDistributionConfig) Descriptor() ([]byte, []int)Deprecated: Use ZoneDistributionConfig.ProtoReflect.Descriptor instead.
func (*ZoneDistributionConfig) GetMode
func (x *ZoneDistributionConfig) GetMode() ZoneDistributionConfig_ZoneDistributionModefunc (*ZoneDistributionConfig) GetZone
func (x *ZoneDistributionConfig) GetZone() stringfunc (*ZoneDistributionConfig) ProtoMessage
func (*ZoneDistributionConfig) ProtoMessage()func (*ZoneDistributionConfig) ProtoReflect
func (x *ZoneDistributionConfig) ProtoReflect() protoreflect.Messagefunc (*ZoneDistributionConfig) Reset
func (x *ZoneDistributionConfig) Reset()func (*ZoneDistributionConfig) String
func (x *ZoneDistributionConfig) String() stringZoneDistributionConfig_ZoneDistributionMode
type ZoneDistributionConfig_ZoneDistributionMode int32Defines various modes of zone distribution.
ZoneDistributionConfig_ZONE_DISTRIBUTION_MODE_UNSPECIFIED, ZoneDistributionConfig_MULTI_ZONE, ZoneDistributionConfig_SINGLE_ZONE
const (
// Not Set. Default: MULTI_ZONE
ZoneDistributionConfig_ZONE_DISTRIBUTION_MODE_UNSPECIFIED ZoneDistributionConfig_ZoneDistributionMode = 0
// Distribute all resources across 3 zones picked at random, within the
// region.
ZoneDistributionConfig_MULTI_ZONE ZoneDistributionConfig_ZoneDistributionMode = 1
// Distribute all resources in a single zone. The zone field must be
// specified, when this mode is selected.
ZoneDistributionConfig_SINGLE_ZONE ZoneDistributionConfig_ZoneDistributionMode = 2
)func (ZoneDistributionConfig_ZoneDistributionMode) Descriptor
func (ZoneDistributionConfig_ZoneDistributionMode) Descriptor() protoreflect.EnumDescriptorfunc (ZoneDistributionConfig_ZoneDistributionMode) Enum
func (x ZoneDistributionConfig_ZoneDistributionMode) Enum() *ZoneDistributionConfig_ZoneDistributionModefunc (ZoneDistributionConfig_ZoneDistributionMode) EnumDescriptor
func (ZoneDistributionConfig_ZoneDistributionMode) EnumDescriptor() ([]byte, []int)Deprecated: Use ZoneDistributionConfig_ZoneDistributionMode.Descriptor instead.
func (ZoneDistributionConfig_ZoneDistributionMode) Number
func (x ZoneDistributionConfig_ZoneDistributionMode) Number() protoreflect.EnumNumberfunc (ZoneDistributionConfig_ZoneDistributionMode) String
func (x ZoneDistributionConfig_ZoneDistributionMode) String() stringfunc (ZoneDistributionConfig_ZoneDistributionMode) Type
func (ZoneDistributionConfig_ZoneDistributionMode) Type() protoreflect.EnumType