Variables
Instance_State_name, Instance_State_value
var (
Instance_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "UPDATING",
4: "DELETING",
5: "REPAIRING",
6: "MAINTENANCE",
8: "IMPORTING",
9: "FAILING_OVER",
}
Instance_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"UPDATING": 3,
"DELETING": 4,
"REPAIRING": 5,
"MAINTENANCE": 6,
"IMPORTING": 8,
"FAILING_OVER": 9,
}
)
Enum value maps for Instance_State.
Instance_Tier_name, Instance_Tier_value
var (
Instance_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "BASIC",
3: "STANDARD_HA",
}
Instance_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"BASIC": 1,
"STANDARD_HA": 3,
}
)
Enum value maps for Instance_Tier.
Instance_ConnectMode_name, Instance_ConnectMode_value
var (
Instance_ConnectMode_name = map[int32]string{
0: "CONNECT_MODE_UNSPECIFIED",
1: "DIRECT_PEERING",
2: "PRIVATE_SERVICE_ACCESS",
}
Instance_ConnectMode_value = map[string]int32{
"CONNECT_MODE_UNSPECIFIED": 0,
"DIRECT_PEERING": 1,
"PRIVATE_SERVICE_ACCESS": 2,
}
)
Enum value maps for Instance_ConnectMode.
Instance_TransitEncryptionMode_name, Instance_TransitEncryptionMode_value
var (
Instance_TransitEncryptionMode_name = map[int32]string{
0: "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED",
1: "SERVER_AUTHENTICATION",
2: "DISABLED",
}
Instance_TransitEncryptionMode_value = map[string]int32{
"TRANSIT_ENCRYPTION_MODE_UNSPECIFIED": 0,
"SERVER_AUTHENTICATION": 1,
"DISABLED": 2,
}
)
Enum value maps for Instance_TransitEncryptionMode.
Instance_ReadReplicasMode_name, Instance_ReadReplicasMode_value
var (
Instance_ReadReplicasMode_name = map[int32]string{
0: "READ_REPLICAS_MODE_UNSPECIFIED",
1: "READ_REPLICAS_DISABLED",
2: "READ_REPLICAS_ENABLED",
}
Instance_ReadReplicasMode_value = map[string]int32{
"READ_REPLICAS_MODE_UNSPECIFIED": 0,
"READ_REPLICAS_DISABLED": 1,
"READ_REPLICAS_ENABLED": 2,
}
)
Enum value maps for Instance_ReadReplicasMode.
Instance_SuspensionReason_name, Instance_SuspensionReason_value
var (
Instance_SuspensionReason_name = map[int32]string{
0: "SUSPENSION_REASON_UNSPECIFIED",
1: "CUSTOMER_MANAGED_KEY_ISSUE",
}
Instance_SuspensionReason_value = map[string]int32{
"SUSPENSION_REASON_UNSPECIFIED": 0,
"CUSTOMER_MANAGED_KEY_ISSUE": 1,
}
)
Enum value maps for Instance_SuspensionReason.
PersistenceConfig_PersistenceMode_name, PersistenceConfig_PersistenceMode_value
var (
PersistenceConfig_PersistenceMode_name = map[int32]string{
0: "PERSISTENCE_MODE_UNSPECIFIED",
1: "DISABLED",
2: "RDB",
}
PersistenceConfig_PersistenceMode_value = map[string]int32{
"PERSISTENCE_MODE_UNSPECIFIED": 0,
"DISABLED": 1,
"RDB": 2,
}
)
Enum value maps for PersistenceConfig_PersistenceMode.
PersistenceConfig_SnapshotPeriod_name, PersistenceConfig_SnapshotPeriod_value
var (
PersistenceConfig_SnapshotPeriod_name = map[int32]string{
0: "SNAPSHOT_PERIOD_UNSPECIFIED",
3: "ONE_HOUR",
4: "SIX_HOURS",
5: "TWELVE_HOURS",
6: "TWENTY_FOUR_HOURS",
}
PersistenceConfig_SnapshotPeriod_value = map[string]int32{
"SNAPSHOT_PERIOD_UNSPECIFIED": 0,
"ONE_HOUR": 3,
"SIX_HOURS": 4,
"TWELVE_HOURS": 5,
"TWENTY_FOUR_HOURS": 6,
}
)
Enum value maps for PersistenceConfig_SnapshotPeriod.
RescheduleMaintenanceRequest_RescheduleType_name, RescheduleMaintenanceRequest_RescheduleType_value
var (
RescheduleMaintenanceRequest_RescheduleType_name = map[int32]string{
0: "RESCHEDULE_TYPE_UNSPECIFIED",
1: "IMMEDIATE",
2: "NEXT_AVAILABLE_WINDOW",
3: "SPECIFIC_TIME",
}
RescheduleMaintenanceRequest_RescheduleType_value = map[string]int32{
"RESCHEDULE_TYPE_UNSPECIFIED": 0,
"IMMEDIATE": 1,
"NEXT_AVAILABLE_WINDOW": 2,
"SPECIFIC_TIME": 3,
}
)
Enum value maps for RescheduleMaintenanceRequest_RescheduleType.
FailoverInstanceRequest_DataProtectionMode_name, FailoverInstanceRequest_DataProtectionMode_value
var (
FailoverInstanceRequest_DataProtectionMode_name = map[int32]string{
0: "DATA_PROTECTION_MODE_UNSPECIFIED",
1: "LIMITED_DATA_LOSS",
2: "FORCE_DATA_LOSS",
}
FailoverInstanceRequest_DataProtectionMode_value = map[string]int32{
"DATA_PROTECTION_MODE_UNSPECIFIED": 0,
"LIMITED_DATA_LOSS": 1,
"FORCE_DATA_LOSS": 2,
}
)
Enum value maps for FailoverInstanceRequest_DataProtectionMode.
File_google_cloud_redis_v1_cloud_redis_proto
var File_google_cloud_redis_v1_cloud_redis_proto protoreflect.FileDescriptor
Functions
func RegisterCloudRedisServer
func RegisterCloudRedisServer(s *grpc.Server, srv CloudRedisServer)
CloudRedisClient
type CloudRedisClient interface {
// Lists all Redis instances 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.
ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
// Gets the details of a specific Redis instance.
GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
// Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
// instance the response will be empty. This information is not included in
// the details returned to GetInstance.
GetInstanceAuthString(ctx context.Context, in *GetInstanceAuthStringRequest, opts ...grpc.CallOption) (*InstanceAuthString, error)
// Creates a Redis instance based on the specified tier and memory size.
//
// By default, the instance is accessible from the project's
// [default network](https://cloud.google.com/vpc/docs/vpc).
//
// The creation is executed asynchronously and callers may check the returned
// operation to track its progress. Once the operation is completed the Redis
// instance will be fully functional. Completed longrunning.Operation will
// contain the new instance object in the response field.
//
// The returned operation is automatically deleted after a few hours, so there
// is no need to call DeleteOperation.
CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the metadata and configuration of a specific Redis instance.
//
// Completed longrunning.Operation will contain the new instance object
// in the response field. The returned operation is automatically deleted
// after a few hours, so there is no need to call DeleteOperation.
UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Upgrades Redis instance to the newer Redis version specified in the
// request.
UpgradeInstance(ctx context.Context, in *UpgradeInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
//
// Redis may stop serving during this operation. Instance state will be
// IMPORTING for entire operation. When complete, the instance will contain
// only data from the imported file.
//
// The returned operation is automatically deleted after a few hours, so
// there is no need to call DeleteOperation.
ImportInstance(ctx context.Context, in *ImportInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Export Redis instance data into a Redis RDB format file in Cloud Storage.
//
// Redis will continue serving during this operation.
//
// The returned operation is automatically deleted after a few hours, so
// there is no need to call DeleteOperation.
ExportInstance(ctx context.Context, in *ExportInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Initiates a failover of the primary node to current replica node for a
// specific STANDARD tier Cloud Memorystore for Redis instance.
FailoverInstance(ctx context.Context, in *FailoverInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a specific Redis instance. Instance stops serving and data is
// deleted.
DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Reschedule maintenance for a given instance in a given project and
// location.
RescheduleMaintenance(ctx context.Context, in *RescheduleMaintenanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}
CloudRedisClient is the client API for CloudRedis service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCloudRedisClient
func NewCloudRedisClient(cc grpc.ClientConnInterface) CloudRedisClient
CloudRedisServer
type CloudRedisServer interface {
// Lists all Redis instances 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.
ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
// Gets the details of a specific Redis instance.
GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
// Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
// instance the response will be empty. This information is not included in
// the details returned to GetInstance.
GetInstanceAuthString(context.Context, *GetInstanceAuthStringRequest) (*InstanceAuthString, error)
// Creates a Redis instance based on the specified tier and memory size.
//
// By default, the instance is accessible from the project's
// [default network](https://cloud.google.com/vpc/docs/vpc).
//
// The creation is executed asynchronously and callers may check the returned
// operation to track its progress. Once the operation is completed the Redis
// instance will be fully functional. Completed longrunning.Operation will
// contain the new instance object in the response field.
//
// The returned operation is automatically deleted after a few hours, so there
// is no need to call DeleteOperation.
CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error)
// Updates the metadata and configuration of a specific Redis instance.
//
// Completed longrunning.Operation will contain the new instance object
// in the response field. The returned operation is automatically deleted
// after a few hours, so there is no need to call DeleteOperation.
UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunningpb.Operation, error)
// Upgrades Redis instance to the newer Redis version specified in the
// request.
UpgradeInstance(context.Context, *UpgradeInstanceRequest) (*longrunningpb.Operation, error)
// Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
//
// Redis may stop serving during this operation. Instance state will be
// IMPORTING for entire operation. When complete, the instance will contain
// only data from the imported file.
//
// The returned operation is automatically deleted after a few hours, so
// there is no need to call DeleteOperation.
ImportInstance(context.Context, *ImportInstanceRequest) (*longrunningpb.Operation, error)
// Export Redis instance data into a Redis RDB format file in Cloud Storage.
//
// Redis will continue serving during this operation.
//
// The returned operation is automatically deleted after a few hours, so
// there is no need to call DeleteOperation.
ExportInstance(context.Context, *ExportInstanceRequest) (*longrunningpb.Operation, error)
// Initiates a failover of the primary node to current replica node for a
// specific STANDARD tier Cloud Memorystore for Redis instance.
FailoverInstance(context.Context, *FailoverInstanceRequest) (*longrunningpb.Operation, error)
// Deletes a specific Redis instance. Instance stops serving and data is
// deleted.
DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error)
// Reschedule maintenance for a given instance in a given project and
// location.
RescheduleMaintenance(context.Context, *RescheduleMaintenanceRequest) (*longrunningpb.Operation, error)
}
CloudRedisServer is the server API for CloudRedis service.
CreateInstanceRequest
type CreateInstanceRequest struct {
// Required. The resource name of the instance 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 instance 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-40 characters.
// * Must end with a number or a letter.
// * Must be unique within the customer project / location
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Required. A Redis [Instance] resource
Instance *Instance `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
// contains filtered or unexported fields
}
Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
func (*CreateInstanceRequest) Descriptor
func (*CreateInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstanceRequest.ProtoReflect.Descriptor instead.
func (*CreateInstanceRequest) GetInstance
func (x *CreateInstanceRequest) GetInstance() *Instance
func (*CreateInstanceRequest) GetInstanceId
func (x *CreateInstanceRequest) GetInstanceId() string
func (*CreateInstanceRequest) GetParent
func (x *CreateInstanceRequest) GetParent() string
func (*CreateInstanceRequest) ProtoMessage
func (*CreateInstanceRequest) ProtoMessage()
func (*CreateInstanceRequest) ProtoReflect
func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message
func (*CreateInstanceRequest) Reset
func (x *CreateInstanceRequest) Reset()
func (*CreateInstanceRequest) String
func (x *CreateInstanceRequest) String() string
DeleteInstanceRequest
type DeleteInstanceRequest struct {
// Required. Redis instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_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 [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
func (*DeleteInstanceRequest) Descriptor
func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteInstanceRequest.ProtoReflect.Descriptor instead.
func (*DeleteInstanceRequest) GetName
func (x *DeleteInstanceRequest) GetName() string
func (*DeleteInstanceRequest) ProtoMessage
func (*DeleteInstanceRequest) ProtoMessage()
func (*DeleteInstanceRequest) ProtoReflect
func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Message
func (*DeleteInstanceRequest) Reset
func (x *DeleteInstanceRequest) Reset()
func (*DeleteInstanceRequest) String
func (x *DeleteInstanceRequest) String() string
ExportInstanceRequest
type ExportInstanceRequest struct {
// Required. Redis instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Specify data to be exported.
OutputConfig *OutputConfig `protobuf:"bytes,3,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}
Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
func (*ExportInstanceRequest) Descriptor
func (*ExportInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportInstanceRequest.ProtoReflect.Descriptor instead.
func (*ExportInstanceRequest) GetName
func (x *ExportInstanceRequest) GetName() string
func (*ExportInstanceRequest) GetOutputConfig
func (x *ExportInstanceRequest) GetOutputConfig() *OutputConfig
func (*ExportInstanceRequest) ProtoMessage
func (*ExportInstanceRequest) ProtoMessage()
func (*ExportInstanceRequest) ProtoReflect
func (x *ExportInstanceRequest) ProtoReflect() protoreflect.Message
func (*ExportInstanceRequest) Reset
func (x *ExportInstanceRequest) Reset()
func (*ExportInstanceRequest) String
func (x *ExportInstanceRequest) String() string
FailoverInstanceRequest
type FailoverInstanceRequest struct {
// Required. Redis instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Available data protection modes that the user can choose. If it's
// unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
DataProtectionMode FailoverInstanceRequest_DataProtectionMode `protobuf:"varint,2,opt,name=data_protection_mode,json=dataProtectionMode,proto3,enum=google.cloud.redis.v1.FailoverInstanceRequest_DataProtectionMode" json:"data_protection_mode,omitempty"`
// contains filtered or unexported fields
}
Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
func (*FailoverInstanceRequest) Descriptor
func (*FailoverInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use FailoverInstanceRequest.ProtoReflect.Descriptor instead.
func (*FailoverInstanceRequest) GetDataProtectionMode
func (x *FailoverInstanceRequest) GetDataProtectionMode() FailoverInstanceRequest_DataProtectionMode
func (*FailoverInstanceRequest) GetName
func (x *FailoverInstanceRequest) GetName() string
func (*FailoverInstanceRequest) ProtoMessage
func (*FailoverInstanceRequest) ProtoMessage()
func (*FailoverInstanceRequest) ProtoReflect
func (x *FailoverInstanceRequest) ProtoReflect() protoreflect.Message
func (*FailoverInstanceRequest) Reset
func (x *FailoverInstanceRequest) Reset()
func (*FailoverInstanceRequest) String
func (x *FailoverInstanceRequest) String() string
FailoverInstanceRequest_DataProtectionMode
type FailoverInstanceRequest_DataProtectionMode int32
Specifies different modes of operation in relation to the data retention.
FailoverInstanceRequest_DATA_PROTECTION_MODE_UNSPECIFIED, FailoverInstanceRequest_LIMITED_DATA_LOSS, FailoverInstanceRequest_FORCE_DATA_LOSS
const (
// Defaults to LIMITED_DATA_LOSS if a data protection mode is not
// specified.
FailoverInstanceRequest_DATA_PROTECTION_MODE_UNSPECIFIED FailoverInstanceRequest_DataProtectionMode = 0
// Instance failover will be protected with data loss control. More
// specifically, the failover will only be performed if the current
// replication offset diff between primary and replica is under a certain
// threshold.
FailoverInstanceRequest_LIMITED_DATA_LOSS FailoverInstanceRequest_DataProtectionMode = 1
// Instance failover will be performed without data loss control.
FailoverInstanceRequest_FORCE_DATA_LOSS FailoverInstanceRequest_DataProtectionMode = 2
)
func (FailoverInstanceRequest_DataProtectionMode) Descriptor
func (FailoverInstanceRequest_DataProtectionMode) Descriptor() protoreflect.EnumDescriptor
func (FailoverInstanceRequest_DataProtectionMode) Enum
func (x FailoverInstanceRequest_DataProtectionMode) Enum() *FailoverInstanceRequest_DataProtectionMode
func (FailoverInstanceRequest_DataProtectionMode) EnumDescriptor
func (FailoverInstanceRequest_DataProtectionMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use FailoverInstanceRequest_DataProtectionMode.Descriptor instead.
func (FailoverInstanceRequest_DataProtectionMode) Number
func (x FailoverInstanceRequest_DataProtectionMode) Number() protoreflect.EnumNumber
func (FailoverInstanceRequest_DataProtectionMode) String
func (x FailoverInstanceRequest_DataProtectionMode) String() string
func (FailoverInstanceRequest_DataProtectionMode) Type
func (FailoverInstanceRequest_DataProtectionMode) Type() protoreflect.EnumType
GcsDestination
type GcsDestination struct {
// Required. Data destination URI (e.g.
// 'gs://my_bucket/my_object'). Existing files will be overwritten.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}
The Cloud Storage location for the output content
func (*GcsDestination) Descriptor
func (*GcsDestination) Descriptor() ([]byte, []int)
Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.
func (*GcsDestination) GetUri
func (x *GcsDestination) GetUri() string
func (*GcsDestination) ProtoMessage
func (*GcsDestination) ProtoMessage()
func (*GcsDestination) ProtoReflect
func (x *GcsDestination) ProtoReflect() protoreflect.Message
func (*GcsDestination) Reset
func (x *GcsDestination) Reset()
func (*GcsDestination) String
func (x *GcsDestination) String() string
GcsSource
type GcsSource struct {
// Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}
The Cloud Storage location for the input content
func (*GcsSource) Descriptor
Deprecated: Use GcsSource.ProtoReflect.Descriptor instead.
func (*GcsSource) GetUri
func (*GcsSource) ProtoMessage
func (*GcsSource) ProtoMessage()
func (*GcsSource) ProtoReflect
func (x *GcsSource) ProtoReflect() protoreflect.Message
func (*GcsSource) Reset
func (x *GcsSource) Reset()
func (*GcsSource) String
GetInstanceAuthStringRequest
type GetInstanceAuthStringRequest struct {
// Required. Redis instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_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 [GetInstanceAuthString][google.cloud.redis.v1.CloudRedis.GetInstanceAuthString].
func (*GetInstanceAuthStringRequest) Descriptor
func (*GetInstanceAuthStringRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInstanceAuthStringRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceAuthStringRequest) GetName
func (x *GetInstanceAuthStringRequest) GetName() string
func (*GetInstanceAuthStringRequest) ProtoMessage
func (*GetInstanceAuthStringRequest) ProtoMessage()
func (*GetInstanceAuthStringRequest) ProtoReflect
func (x *GetInstanceAuthStringRequest) ProtoReflect() protoreflect.Message
func (*GetInstanceAuthStringRequest) Reset
func (x *GetInstanceAuthStringRequest) Reset()
func (*GetInstanceAuthStringRequest) String
func (x *GetInstanceAuthStringRequest) String() string
GetInstanceRequest
type GetInstanceRequest struct {
// Required. Redis instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_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 [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
func (*GetInstanceRequest) Descriptor
func (*GetInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceRequest) GetName
func (x *GetInstanceRequest) GetName() string
func (*GetInstanceRequest) ProtoMessage
func (*GetInstanceRequest) ProtoMessage()
func (*GetInstanceRequest) ProtoReflect
func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message
func (*GetInstanceRequest) Reset
func (x *GetInstanceRequest) Reset()
func (*GetInstanceRequest) String
func (x *GetInstanceRequest) String() string
ImportInstanceRequest
type ImportInstanceRequest struct {
// Required. Redis instance resource name using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
//
// where `location_id` refers to a GCP region.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Specify data to be imported.
InputConfig *InputConfig `protobuf:"bytes,3,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
// contains filtered or unexported fields
}
Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
func (*ImportInstanceRequest) Descriptor
func (*ImportInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportInstanceRequest.ProtoReflect.Descriptor instead.
func (*ImportInstanceRequest) GetInputConfig
func (x *ImportInstanceRequest) GetInputConfig() *InputConfig
func (*ImportInstanceRequest) GetName
func (x *ImportInstanceRequest) GetName() string
func (*ImportInstanceRequest) ProtoMessage
func (*ImportInstanceRequest) ProtoMessage()
func (*ImportInstanceRequest) ProtoReflect
func (x *ImportInstanceRequest) ProtoReflect() protoreflect.Message
func (*ImportInstanceRequest) Reset
func (x *ImportInstanceRequest) Reset()
func (*ImportInstanceRequest) String
func (x *