mysql

package
v0.0.0-...-a04abcf Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackupService_Get_FullMethodName  = "/yandex.cloud.mdb.mysql.v1alpha.BackupService/Get"
	BackupService_List_FullMethodName = "/yandex.cloud.mdb.mysql.v1alpha.BackupService/List"
)
View Source
const (
	ClusterService_Get_FullMethodName            = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Get"
	ClusterService_List_FullMethodName           = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/List"
	ClusterService_Create_FullMethodName         = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Create"
	ClusterService_Update_FullMethodName         = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Update"
	ClusterService_Delete_FullMethodName         = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Delete"
	ClusterService_Start_FullMethodName          = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Start"
	ClusterService_Stop_FullMethodName           = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Stop"
	ClusterService_Backup_FullMethodName         = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Backup"
	ClusterService_Restore_FullMethodName        = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Restore"
	ClusterService_ListLogs_FullMethodName       = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListLogs"
	ClusterService_ListOperations_FullMethodName = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListOperations"
	ClusterService_ListBackups_FullMethodName    = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListBackups"
	ClusterService_ListHosts_FullMethodName      = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListHosts"
	ClusterService_AddHosts_FullMethodName       = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/AddHosts"
	ClusterService_DeleteHosts_FullMethodName    = "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/DeleteHosts"
)
View Source
const (
	DatabaseService_Get_FullMethodName    = "/yandex.cloud.mdb.mysql.v1alpha.DatabaseService/Get"
	DatabaseService_List_FullMethodName   = "/yandex.cloud.mdb.mysql.v1alpha.DatabaseService/List"
	DatabaseService_Create_FullMethodName = "/yandex.cloud.mdb.mysql.v1alpha.DatabaseService/Create"
	DatabaseService_Delete_FullMethodName = "/yandex.cloud.mdb.mysql.v1alpha.DatabaseService/Delete"
)
View Source
const (
	ResourcePresetService_Get_FullMethodName  = "/yandex.cloud.mdb.mysql.v1alpha.ResourcePresetService/Get"
	ResourcePresetService_List_FullMethodName = "/yandex.cloud.mdb.mysql.v1alpha.ResourcePresetService/List"
)
View Source
const (
	UserService_Get_FullMethodName              = "/yandex.cloud.mdb.mysql.v1alpha.UserService/Get"
	UserService_List_FullMethodName             = "/yandex.cloud.mdb.mysql.v1alpha.UserService/List"
	UserService_Create_FullMethodName           = "/yandex.cloud.mdb.mysql.v1alpha.UserService/Create"
	UserService_Update_FullMethodName           = "/yandex.cloud.mdb.mysql.v1alpha.UserService/Update"
	UserService_Delete_FullMethodName           = "/yandex.cloud.mdb.mysql.v1alpha.UserService/Delete"
	UserService_GrantPermission_FullMethodName  = "/yandex.cloud.mdb.mysql.v1alpha.UserService/GrantPermission"
	UserService_RevokePermission_FullMethodName = "/yandex.cloud.mdb.mysql.v1alpha.UserService/RevokePermission"
)

Variables

View Source
var (
	Cluster_Environment_name = map[int32]string{
		0: "ENVIRONMENT_UNSPECIFIED",
		1: "PRODUCTION",
		2: "PRESTABLE",
	}
	Cluster_Environment_value = map[string]int32{
		"ENVIRONMENT_UNSPECIFIED": 0,
		"PRODUCTION":              1,
		"PRESTABLE":               2,
	}
)

Enum value maps for Cluster_Environment.

View Source
var (
	Cluster_Health_name = map[int32]string{
		0: "HEALTH_UNKNOWN",
		1: "ALIVE",
		2: "DEAD",
		3: "DEGRADED",
	}
	Cluster_Health_value = map[string]int32{
		"HEALTH_UNKNOWN": 0,
		"ALIVE":          1,
		"DEAD":           2,
		"DEGRADED":       3,
	}
)

Enum value maps for Cluster_Health.

View Source
var (
	Cluster_Status_name = map[int32]string{
		0: "STATUS_UNKNOWN",
		1: "CREATING",
		2: "RUNNING",
		3: "ERROR",
		4: "UPDATING",
		5: "STOPPING",
		6: "STOPPED",
		7: "STARTING",
	}
	Cluster_Status_value = map[string]int32{
		"STATUS_UNKNOWN": 0,
		"CREATING":       1,
		"RUNNING":        2,
		"ERROR":          3,
		"UPDATING":       4,
		"STOPPING":       5,
		"STOPPED":        6,
		"STARTING":       7,
	}
)

Enum value maps for Cluster_Status.

View Source
var (
	Host_Role_name = map[int32]string{
		0: "ROLE_UNKNOWN",
		1: "MASTER",
		2: "REPLICA",
	}
	Host_Role_value = map[string]int32{
		"ROLE_UNKNOWN": 0,
		"MASTER":       1,
		"REPLICA":      2,
	}
)

Enum value maps for Host_Role.

View Source
var (
	Host_Health_name = map[int32]string{
		0: "HEALTH_UNKNOWN",
		1: "ALIVE",
		2: "DEAD",
		3: "DEGRADED",
	}
	Host_Health_value = map[string]int32{
		"HEALTH_UNKNOWN": 0,
		"ALIVE":          1,
		"DEAD":           2,
		"DEGRADED":       3,
	}
)

Enum value maps for Host_Health.

View Source
var (
	Service_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "MYSQL_ERROR",
		2: "MYSQL_GENERAL",
		3: "MYSQL_SLOW_QUERY",
	}
	Service_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"MYSQL_ERROR":      1,
		"MYSQL_GENERAL":    2,
		"MYSQL_SLOW_QUERY": 3,
	}
)

Enum value maps for Service_Type.

View Source
var (
	Service_Health_name = map[int32]string{
		0: "HEALTH_UNKNOWN",
		1: "ALIVE",
		2: "DEAD",
	}
	Service_Health_value = map[string]int32{
		"HEALTH_UNKNOWN": 0,
		"ALIVE":          1,
		"DEAD":           2,
	}
)

Enum value maps for Service_Health.

View Source
var (
	ListClusterLogsRequest_ServiceType_name = map[int32]string{
		0: "SERVICE_TYPE_UNSPECIFIED",
		1: "MYSQL",
	}
	ListClusterLogsRequest_ServiceType_value = map[string]int32{
		"SERVICE_TYPE_UNSPECIFIED": 0,
		"MYSQL":                    1,
	}
)

Enum value maps for ListClusterLogsRequest_ServiceType.

View Source
var (
	Permission_Privilege_name = map[int32]string{
		0:  "PRIVILEGE_UNSPECIFIED",
		1:  "ALL_PRIVILEGES",
		2:  "ALTER",
		3:  "ALTER_ROUTINE",
		4:  "CREATE",
		5:  "CREATE_ROUTINE",
		6:  "CREATE_TEMPORARY_TABLES",
		7:  "CREATE_VIEW",
		8:  "DELETE",
		9:  "DROP",
		10: "EVENT",
		11: "EXECUTE",
		12: "INDEX",
		13: "INSERT",
		14: "LOCK_TABLES",
		15: "SELECT",
		16: "SHOW_VIEW",
		17: "TRIGGER",
		18: "UPDATE",
	}
	Permission_Privilege_value = map[string]int32{
		"PRIVILEGE_UNSPECIFIED":   0,
		"ALL_PRIVILEGES":          1,
		"ALTER":                   2,
		"ALTER_ROUTINE":           3,
		"CREATE":                  4,
		"CREATE_ROUTINE":          5,
		"CREATE_TEMPORARY_TABLES": 6,
		"CREATE_VIEW":             7,
		"DELETE":                  8,
		"DROP":                    9,
		"EVENT":                   10,
		"EXECUTE":                 11,
		"INDEX":                   12,
		"INSERT":                  13,
		"LOCK_TABLES":             14,
		"SELECT":                  15,
		"SHOW_VIEW":               16,
		"TRIGGER":                 17,
		"UPDATE":                  18,
	}
)

Enum value maps for Permission_Privilege.

View Source
var BackupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.mdb.mysql.v1alpha.BackupService",
	HandlerType: (*BackupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _BackupService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _BackupService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/mdb/mysql/v1alpha/backup_service.proto",
}

BackupService_ServiceDesc is the grpc.ServiceDesc for BackupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ClusterService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.mdb.mysql.v1alpha.ClusterService",
	HandlerType: (*ClusterServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _ClusterService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ClusterService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _ClusterService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ClusterService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ClusterService_Delete_Handler,
		},
		{
			MethodName: "Start",
			Handler:    _ClusterService_Start_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _ClusterService_Stop_Handler,
		},
		{
			MethodName: "Backup",
			Handler:    _ClusterService_Backup_Handler,
		},
		{
			MethodName: "Restore",
			Handler:    _ClusterService_Restore_Handler,
		},
		{
			MethodName: "ListLogs",
			Handler:    _ClusterService_ListLogs_Handler,
		},
		{
			MethodName: "ListOperations",
			Handler:    _ClusterService_ListOperations_Handler,
		},
		{
			MethodName: "ListBackups",
			Handler:    _ClusterService_ListBackups_Handler,
		},
		{
			MethodName: "ListHosts",
			Handler:    _ClusterService_ListHosts_Handler,
		},
		{
			MethodName: "AddHosts",
			Handler:    _ClusterService_AddHosts_Handler,
		},
		{
			MethodName: "DeleteHosts",
			Handler:    _ClusterService_DeleteHosts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/mdb/mysql/v1alpha/cluster_service.proto",
}

ClusterService_ServiceDesc is the grpc.ServiceDesc for ClusterService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var DatabaseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.mdb.mysql.v1alpha.DatabaseService",
	HandlerType: (*DatabaseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _DatabaseService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _DatabaseService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _DatabaseService_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _DatabaseService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/mdb/mysql/v1alpha/database_service.proto",
}

DatabaseService_ServiceDesc is the grpc.ServiceDesc for DatabaseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_yandex_cloud_mdb_mysql_v1alpha_backup_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_backup_service_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_cluster_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_cluster_service_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_database_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_database_service_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_resource_preset_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_resource_preset_service_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_user_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_mdb_mysql_v1alpha_user_service_proto protoreflect.FileDescriptor
View Source
var ResourcePresetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.mdb.mysql.v1alpha.ResourcePresetService",
	HandlerType: (*ResourcePresetServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _ResourcePresetService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ResourcePresetService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/mdb/mysql/v1alpha/resource_preset_service.proto",
}

ResourcePresetService_ServiceDesc is the grpc.ServiceDesc for ResourcePresetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.mdb.mysql.v1alpha.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _UserService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _UserService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _UserService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _UserService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _UserService_Delete_Handler,
		},
		{
			MethodName: "GrantPermission",
			Handler:    _UserService_GrantPermission_Handler,
		},
		{
			MethodName: "RevokePermission",
			Handler:    _UserService_RevokePermission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/mdb/mysql/v1alpha/user_service.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterBackupServiceServer

func RegisterBackupServiceServer(s grpc.ServiceRegistrar, srv BackupServiceServer)

func RegisterClusterServiceServer

func RegisterClusterServiceServer(s grpc.ServiceRegistrar, srv ClusterServiceServer)

func RegisterDatabaseServiceServer

func RegisterDatabaseServiceServer(s grpc.ServiceRegistrar, srv DatabaseServiceServer)

func RegisterResourcePresetServiceServer

func RegisterResourcePresetServiceServer(s grpc.ServiceRegistrar, srv ResourcePresetServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AddClusterHostsMetadata

type AddClusterHostsMetadata struct {

	// ID of the MySQL cluster to which the hosts are being added.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Names of hosts that are being added to the cluster.
	HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"`
	// contains filtered or unexported fields
}

func (*AddClusterHostsMetadata) Descriptor deprecated

func (*AddClusterHostsMetadata) Descriptor() ([]byte, []int)

Deprecated: Use AddClusterHostsMetadata.ProtoReflect.Descriptor instead.

func (*AddClusterHostsMetadata) GetClusterId

func (x *AddClusterHostsMetadata) GetClusterId() string

func (*AddClusterHostsMetadata) GetHostNames

func (x *AddClusterHostsMetadata) GetHostNames() []string

func (*AddClusterHostsMetadata) ProtoMessage

func (*AddClusterHostsMetadata) ProtoMessage()

func (*AddClusterHostsMetadata) ProtoReflect

func (x *AddClusterHostsMetadata) ProtoReflect() protoreflect.Message

func (*AddClusterHostsMetadata) Reset

func (x *AddClusterHostsMetadata) Reset()

func (*AddClusterHostsMetadata) SetClusterId

func (m *AddClusterHostsMetadata) SetClusterId(v string)

func (*AddClusterHostsMetadata) SetHostNames

func (m *AddClusterHostsMetadata) SetHostNames(v []string)

func (*AddClusterHostsMetadata) String

func (x *AddClusterHostsMetadata) String() string

type AddClusterHostsRequest

type AddClusterHostsRequest struct {

	// ID of the MySQL cluster to add hosts to.
	// To get the MySQL cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Configurations for MySQL hosts that should be added to the cluster.
	HostSpecs []*HostSpec `protobuf:"bytes,2,rep,name=host_specs,json=hostSpecs,proto3" json:"host_specs,omitempty"`
	// contains filtered or unexported fields
}

func (*AddClusterHostsRequest) Descriptor deprecated

func (*AddClusterHostsRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddClusterHostsRequest.ProtoReflect.Descriptor instead.

func (*AddClusterHostsRequest) GetClusterId

func (x *AddClusterHostsRequest) GetClusterId() string

func (*AddClusterHostsRequest) GetHostSpecs

func (x *AddClusterHostsRequest) GetHostSpecs() []*HostSpec

func (*AddClusterHostsRequest) ProtoMessage

func (*AddClusterHostsRequest) ProtoMessage()

func (*AddClusterHostsRequest) ProtoReflect

func (x *AddClusterHostsRequest) ProtoReflect() protoreflect.Message

func (*AddClusterHostsRequest) Reset

func (x *AddClusterHostsRequest) Reset()

func (*AddClusterHostsRequest) SetClusterId

func (m *AddClusterHostsRequest) SetClusterId(v string)

func (*AddClusterHostsRequest) SetHostSpecs

func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec)

func (*AddClusterHostsRequest) String

func (x *AddClusterHostsRequest) String() string

type Backup

type Backup struct {

	// ID of the backup.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the backup belongs to.
	FolderId  string                 `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Comment for API reference generated automatically.
	// ID of the MySQL cluster that the backup was created for.
	SourceClusterId string `protobuf:"bytes,4,opt,name=source_cluster_id,json=sourceClusterId,proto3" json:"source_cluster_id,omitempty"`
	// Time when the backup operation was started.
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// contains filtered or unexported fields
}

A MySQL backup. For more information, see the [documentation](/docs/managed-mysql/concepts/backup).

func (*Backup) Descriptor deprecated

func (*Backup) Descriptor() ([]byte, []int)

Deprecated: Use Backup.ProtoReflect.Descriptor instead.

func (*Backup) GetCreatedAt

func (x *Backup) GetCreatedAt() *timestamppb.Timestamp

func (*Backup) GetFolderId

func (x *Backup) GetFolderId() string

func (*Backup) GetId

func (x *Backup) GetId() string

func (*Backup) GetSourceClusterId

func (x *Backup) GetSourceClusterId() string

func (*Backup) GetStartedAt

func (x *Backup) GetStartedAt() *timestamppb.Timestamp

func (*Backup) ProtoMessage

func (*Backup) ProtoMessage()

func (*Backup) ProtoReflect

func (x *Backup) ProtoReflect() protoreflect.Message

func (*Backup) Reset

func (x *Backup) Reset()

func (*Backup) SetCreatedAt

func (m *Backup) SetCreatedAt(v *timestamppb.Timestamp)

func (*Backup) SetFolderId

func (m *Backup) SetFolderId(v string)

func (*Backup) SetId

func (m *Backup) SetId(v string)

func (*Backup) SetSourceClusterId

func (m *Backup) SetSourceClusterId(v string)

func (*Backup) SetStartedAt

func (m *Backup) SetStartedAt(v *timestamppb.Timestamp)

func (*Backup) String

func (x *Backup) String() string

type BackupClusterMetadata

type BackupClusterMetadata struct {

	// ID of the MySQL cluster that is being backed up.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupClusterMetadata) Descriptor deprecated

func (*BackupClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BackupClusterMetadata.ProtoReflect.Descriptor instead.

func (*BackupClusterMetadata) GetClusterId

func (x *BackupClusterMetadata) GetClusterId() string

func (*BackupClusterMetadata) ProtoMessage

func (*BackupClusterMetadata) ProtoMessage()

func (*BackupClusterMetadata) ProtoReflect

func (x *BackupClusterMetadata) ProtoReflect() protoreflect.Message

func (*BackupClusterMetadata) Reset

func (x *BackupClusterMetadata) Reset()

func (*BackupClusterMetadata) SetClusterId

func (m *BackupClusterMetadata) SetClusterId(v string)

func (*BackupClusterMetadata) String

func (x *BackupClusterMetadata) String() string

type BackupClusterRequest

type BackupClusterRequest struct {

	// ID of the MySQL cluster to back up.
	// To get the MySQL cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupClusterRequest) Descriptor deprecated

func (*BackupClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use BackupClusterRequest.ProtoReflect.Descriptor instead.

func (*BackupClusterRequest) GetClusterId

func (x *BackupClusterRequest) GetClusterId() string

func (*BackupClusterRequest) ProtoMessage

func (*BackupClusterRequest) ProtoMessage()

func (*BackupClusterRequest) ProtoReflect

func (x *BackupClusterRequest) ProtoReflect() protoreflect.Message

func (*BackupClusterRequest) Reset

func (x *BackupClusterRequest) Reset()

func (*BackupClusterRequest) SetClusterId

func (m *BackupClusterRequest) SetClusterId(v string)

func (*BackupClusterRequest) String

func (x *BackupClusterRequest) String() string

type BackupServiceClient

type BackupServiceClient interface {
	// Returns the specified MySQL backup.
	//
	// To get the list of available MySQL backups, make a [List] request.
	Get(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error)
	// Retrieves the list of MySQL backups available for the specified folder.
	List(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error)
}

BackupServiceClient is the client API for BackupService 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.

type BackupServiceServer

type BackupServiceServer interface {
	// Returns the specified MySQL backup.
	//
	// To get the list of available MySQL backups, make a [List] request.
	Get(context.Context, *GetBackupRequest) (*Backup, error)
	// Retrieves the list of MySQL backups available for the specified folder.
	List(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
}

BackupServiceServer is the server API for BackupService service. All implementations should embed UnimplementedBackupServiceServer for forward compatibility

type Cluster

type Cluster struct {

	// ID of the MySQL cluster.
	// This ID is assigned by Managed Service for MySQL at creation time.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the MySQL cluster belongs to.
	FolderId  string                 `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the MySQL cluster.
	// The name must be unique within the folder, comply with RFC 1035
	// and be 1-63 characters long.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the MySQL cluster. 0-256 characters long.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the MySQL cluster as `key:value` pairs.
	// Maximum 64 per resource.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Deployment environment of the MySQL cluster.
	Environment Cluster_Environment `` /* 132-byte string literal not displayed */
	// Description of monitoring systems relevant to the MySQL cluster.
	Monitoring []*Monitoring `protobuf:"bytes,8,rep,name=monitoring,proto3" json:"monitoring,omitempty"`
	// Configuration of the MySQL cluster.
	Config *ClusterConfig `protobuf:"bytes,9,opt,name=config,proto3" json:"config,omitempty"`
	// ID of the network that the cluster belongs to.
	NetworkId string `protobuf:"bytes,10,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Aggregated cluster health.
	Health Cluster_Health `protobuf:"varint,11,opt,name=health,proto3,enum=yandex.cloud.mdb.mysql.v1alpha.Cluster_Health" json:"health,omitempty"`
	// Current state of the cluster.
	Status Cluster_Status `protobuf:"varint,12,opt,name=status,proto3,enum=yandex.cloud.mdb.mysql.v1alpha.Cluster_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

A MySQL cluster. For more information, see the [documentation](/docs/managed-mysql/concepts).

func (*Cluster) Descriptor deprecated

func (*Cluster) Descriptor() ([]byte, []int)

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetConfig

func (x *Cluster) GetConfig() *ClusterConfig

func (*Cluster) GetCreatedAt

func (x *Cluster) GetCreatedAt() *timestamppb.Timestamp

func (*Cluster) GetDescription

func (x *Cluster) GetDescription() string

func (*Cluster) GetEnvironment

func (x *Cluster) GetEnvironment() Cluster_Environment

func (*Cluster) GetFolderId

func (x *Cluster) GetFolderId() string

func (*Cluster) GetHealth

func (x *Cluster) GetHealth() Cluster_Health

func (*Cluster) GetId

func (x *Cluster) GetId() string

func (*Cluster) GetLabels

func (x *Cluster) GetLabels() map[string]string

func (*Cluster) GetMonitoring

func (x *Cluster) GetMonitoring() []*Monitoring

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) GetNetworkId

func (x *Cluster) GetNetworkId() string

func (*Cluster) GetStatus

func (x *Cluster) GetStatus() Cluster_Status

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

func (x *Cluster) ProtoReflect() protoreflect.Message

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) SetConfig

func (m *Cluster) SetConfig(v *ClusterConfig)

func (*Cluster) SetCreatedAt

func (m *Cluster) SetCreatedAt(v *timestamppb.Timestamp)

func (*Cluster) SetDescription

func (m *Cluster) SetDescription(v string)

func (*Cluster) SetEnvironment

func (m *Cluster) SetEnvironment(v Cluster_Environment)

func (*Cluster) SetFolderId

func (m *Cluster) SetFolderId(v string)

func (*Cluster) SetHealth

func (m *Cluster) SetHealth(v Cluster_Health)

func (*Cluster) SetId

func (m *Cluster) SetId(v string)

func (*Cluster) SetLabels

func (m *Cluster) SetLabels(v map[string]string)

func (*Cluster) SetMonitoring

func (m *Cluster) SetMonitoring(v []*Monitoring)

func (*Cluster) SetName

func (m *Cluster) SetName(v string)

func (*Cluster) SetNetworkId

func (m *Cluster) SetNetworkId(v string)

func (*Cluster) SetStatus

func (m *Cluster) SetStatus(v Cluster_Status)

func (*Cluster) String

func (x *Cluster) String() string

type ClusterConfig

type ClusterConfig struct {

	// Version of MySQL server software.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Configuration for MySQL servers in the cluster.
	//
	// Types that are assignable to MysqlConfig:
	//
	//	*ClusterConfig_MysqlConfig_5_7
	MysqlConfig isClusterConfig_MysqlConfig `protobuf_oneof:"mysql_config"`
	// Resources allocated to MySQL hosts.
	Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"`
	// Time to start the daily backup, in the UTC timezone.
	BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,4,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterConfig) Descriptor deprecated

func (*ClusterConfig) Descriptor() ([]byte, []int)

Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead.

func (*ClusterConfig) GetBackupWindowStart

func (x *ClusterConfig) GetBackupWindowStart() *timeofday.TimeOfDay

func (*ClusterConfig) GetMysqlConfig

func (m *ClusterConfig) GetMysqlConfig() isClusterConfig_MysqlConfig

func (*ClusterConfig) GetMysqlConfig_5_7

func (x *ClusterConfig) GetMysqlConfig_5_7() *config.MysqlConfigSet5_7

func (*ClusterConfig) GetResources

func (x *ClusterConfig) GetResources() *Resources

func (*ClusterConfig) GetVersion

func (x *ClusterConfig) GetVersion() string

func (*ClusterConfig) ProtoMessage

func (*ClusterConfig) ProtoMessage()

func (*ClusterConfig) ProtoReflect

func (x *ClusterConfig) ProtoReflect() protoreflect.Message

func (*ClusterConfig) Reset

func (x *ClusterConfig) Reset()

func (*ClusterConfig) SetBackupWindowStart

func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay)

func (*ClusterConfig) SetMysqlConfig

func (m *ClusterConfig) SetMysqlConfig(v ClusterConfig_MysqlConfig)

func (*ClusterConfig) SetMysqlConfig_5_7

func (m *ClusterConfig) SetMysqlConfig_5_7(v *config.MysqlConfigSet5_7)

func (*ClusterConfig) SetResources

func (m *ClusterConfig) SetResources(v *Resources)

func (*ClusterConfig) SetVersion

func (m *ClusterConfig) SetVersion(v string)

func (*ClusterConfig) String

func (x *ClusterConfig) String() string

type ClusterConfig_MysqlConfig

type ClusterConfig_MysqlConfig = isClusterConfig_MysqlConfig

type ClusterConfig_MysqlConfig_5_7

type ClusterConfig_MysqlConfig_5_7 struct {
	// Configuration of a MySQL 5.7 server.
	MysqlConfig_5_7 *config.MysqlConfigSet5_7 `protobuf:"bytes,2,opt,name=mysql_config_5_7,json=mysqlConfig_5_7,proto3,oneof"`
}

type ClusterServiceClient

type ClusterServiceClient interface {
	// Returns the specified MySQL cluster.
	//
	// To get the list of available MySQL clusters, make a [List] request.
	Get(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error)
	// Retrieves the list of MySQL clusters that belong to the specified folder.
	List(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error)
	// Creates a MySQL cluster in the specified folder.
	Create(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Modifies the specified MySQL cluster.
	Update(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified MySQL cluster.
	Delete(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Starts the specified MySQL cluster.
	Start(ctx context.Context, in *StartClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Stops the specified MySQL cluster.
	Stop(ctx context.Context, in *StopClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Creates a backup for the specified MySQL cluster.
	Backup(ctx context.Context, in *BackupClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Creates a new MySQL cluster using the specified backup.
	Restore(ctx context.Context, in *RestoreClusterRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Retrieves logs for the specified MySQL cluster.
	ListLogs(ctx context.Context, in *ListClusterLogsRequest, opts ...grpc.CallOption) (*ListClusterLogsResponse, error)
	// Retrieves the list of operations for the specified MySQL cluster.
	ListOperations(ctx context.Context, in *ListClusterOperationsRequest, opts ...grpc.CallOption) (*ListClusterOperationsResponse, error)
	// Retrieves the list of available backups for the specified MySQL cluster.
	ListBackups(ctx context.Context, in *ListClusterBackupsRequest, opts ...grpc.CallOption) (*ListClusterBackupsResponse, error)
	// Retrieves a list of hosts for the specified MySQL cluster.
	ListHosts(ctx context.Context, in *ListClusterHostsRequest, opts ...grpc.CallOption) (*ListClusterHostsResponse, error)
	// Creates new hosts for a cluster.
	AddHosts(ctx context.Context, in *AddClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified hosts for a cluster.
	DeleteHosts(ctx context.Context, in *DeleteClusterHostsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

ClusterServiceClient is the client API for ClusterService 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.

type ClusterServiceServer

type ClusterServiceServer interface {
	// Returns the specified MySQL cluster.
	//
	// To get the list of available MySQL clusters, make a [List] request.
	Get(context.Context, *GetClusterRequest) (*Cluster, error)
	// Retrieves the list of MySQL clusters that belong to the specified folder.
	List(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
	// Creates a MySQL cluster in the specified folder.
	Create(context.Context, *CreateClusterRequest) (*operation.Operation, error)
	// Modifies the specified MySQL cluster.
	Update(context.Context, *UpdateClusterRequest) (*operation.Operation, error)
	// Deletes the specified MySQL cluster.
	Delete(context.Context, *DeleteClusterRequest) (*operation.Operation, error)
	// Starts the specified MySQL cluster.
	Start(context.Context, *StartClusterRequest) (*operation.Operation, error)
	// Stops the specified MySQL cluster.
	Stop(context.Context, *StopClusterRequest) (*operation.Operation, error)
	// Creates a backup for the specified MySQL cluster.
	Backup(context.Context, *BackupClusterRequest) (*operation.Operation, error)
	// Creates a new MySQL cluster using the specified backup.
	Restore(context.Context, *RestoreClusterRequest) (*operation.Operation, error)
	// Retrieves logs for the specified MySQL cluster.
	ListLogs(context.Context, *ListClusterLogsRequest) (*ListClusterLogsResponse, error)
	// Retrieves the list of operations for the specified MySQL cluster.
	ListOperations(context.Context, *ListClusterOperationsRequest) (*ListClusterOperationsResponse, error)
	// Retrieves the list of available backups for the specified MySQL cluster.
	ListBackups(context.Context, *ListClusterBackupsRequest) (*ListClusterBackupsResponse, error)
	// Retrieves a list of hosts for the specified MySQL cluster.
	ListHosts(context.Context, *ListClusterHostsRequest) (*ListClusterHostsResponse, error)
	// Creates new hosts for a cluster.
	AddHosts(context.Context, *AddClusterHostsRequest) (*operation.Operation, error)
	// Deletes the specified hosts for a cluster.
	DeleteHosts(context.Context, *DeleteClusterHostsRequest) (*operation.Operation, error)
}

ClusterServiceServer is the server API for ClusterService service. All implementations should embed UnimplementedClusterServiceServer for forward compatibility

type Cluster_Environment

type Cluster_Environment int32
const (
	Cluster_ENVIRONMENT_UNSPECIFIED Cluster_Environment = 0
	// Stable environment with a conservative update policy:
	// only hotfixes are applied during regular maintenance.
	Cluster_PRODUCTION Cluster_Environment = 1
	// Environment with more aggressive update policy: new versions
	// are rolled out irrespective of backward compatibility.
	Cluster_PRESTABLE Cluster_Environment = 2
)

func (Cluster_Environment) Descriptor

func (Cluster_Environment) Enum

func (Cluster_Environment) EnumDescriptor deprecated

func (Cluster_Environment) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_Environment.Descriptor instead.

func (Cluster_Environment) Number

func (Cluster_Environment) String

func (x Cluster_Environment) String() string

func (Cluster_Environment) Type

type Cluster_Health

type Cluster_Health int32
const (
	// State of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN).
	Cluster_HEALTH_UNKNOWN Cluster_Health = 0
	// Cluster is alive and well ([Host.health] for every host in the cluster is ALIVE).
	Cluster_ALIVE Cluster_Health = 1
	// Cluster is inoperable ([Host.health] for every host in the cluster is DEAD).
	Cluster_DEAD Cluster_Health = 2
	// Cluster is working below capacity ([Host.health] for at least one host in the cluster is not ALIVE).
	Cluster_DEGRADED Cluster_Health = 3
)

func (Cluster_Health) Descriptor

func (Cluster_Health) Enum

func (x Cluster_Health) Enum() *Cluster_Health

func (Cluster_Health) EnumDescriptor deprecated

func (Cluster_Health) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_Health.Descriptor instead.

func (Cluster_Health) Number

func (Cluster_Health) String

func (x Cluster_Health) String() string

func (Cluster_Health) Type

type Cluster_Status

type Cluster_Status int32
const (
	// Cluster state is unknown.
	Cluster_STATUS_UNKNOWN Cluster_Status = 0
	// Cluster is being created.
	Cluster_CREATING Cluster_Status = 1
	// Cluster is running normally.
	Cluster_RUNNING Cluster_Status = 2
	// Cluster encountered a problem and cannot operate.
	Cluster_ERROR Cluster_Status = 3
	// Cluster is being updated.
	Cluster_UPDATING Cluster_Status = 4
	// Cluster is stopping.
	Cluster_STOPPING Cluster_Status = 5
	// Cluster stopped.
	Cluster_STOPPED Cluster_Status = 6
	// Cluster is starting.
	Cluster_STARTING Cluster_Status = 7
)

func (Cluster_Status) Descriptor

func (Cluster_Status) Enum

func (x Cluster_Status) Enum() *Cluster_Status

func (Cluster_Status) EnumDescriptor deprecated

func (Cluster_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_Status.Descriptor instead.

func (Cluster_Status) Number

func (Cluster_Status) String

func (x Cluster_Status) String() string

func (Cluster_Status) Type

type ConfigSpec

type ConfigSpec struct {

	// Version of MySQL used in the cluster.
	// Possible values:
	// * 5.7
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // No formal validation, a list of supported versions should suffice.
	// Configuration of a MySQL cluster.
	//
	// Types that are assignable to MysqlConfig:
	//
	//	*ConfigSpec_MysqlConfig_5_7
	MysqlConfig isConfigSpec_MysqlConfig `protobuf_oneof:"mysql_config"`
	// Resources allocated to MySQL hosts.
	Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"`
	// Time to start the daily backup, in the UTC timezone.
	BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,4,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigSpec) Descriptor deprecated

func (*ConfigSpec) Descriptor() ([]byte, []int)

Deprecated: Use ConfigSpec.ProtoReflect.Descriptor instead.

func (*ConfigSpec) GetBackupWindowStart

func (x *ConfigSpec) GetBackupWindowStart() *timeofday.TimeOfDay

func (*ConfigSpec) GetMysqlConfig

func (m *ConfigSpec) GetMysqlConfig() isConfigSpec_MysqlConfig

func (*ConfigSpec) GetMysqlConfig_5_7

func (x *ConfigSpec) GetMysqlConfig_5_7() *config.MysqlConfig5_7

func (*ConfigSpec) GetResources

func (x *ConfigSpec) GetResources() *Resources

func (*ConfigSpec) GetVersion

func (x *ConfigSpec) GetVersion() string

func (*ConfigSpec) ProtoMessage

func (*ConfigSpec) ProtoMessage()

func (*ConfigSpec) ProtoReflect

func (x *ConfigSpec) ProtoReflect() protoreflect.Message

func (*ConfigSpec) Reset

func (x *ConfigSpec) Reset()

func (*ConfigSpec) SetBackupWindowStart

func (m *ConfigSpec) SetBackupWindowStart(v *timeofday.TimeOfDay)

func (*ConfigSpec) SetMysqlConfig

func (m *ConfigSpec) SetMysqlConfig(v ConfigSpec_MysqlConfig)

func (*ConfigSpec) SetMysqlConfig_5_7

func (m *ConfigSpec) SetMysqlConfig_5_7(v *config.MysqlConfig5_7)

func (*ConfigSpec) SetResources

func (m *ConfigSpec) SetResources(v *Resources)

func (*ConfigSpec) SetVersion

func (m *ConfigSpec) SetVersion(v string)

func (*ConfigSpec) String

func (x *ConfigSpec) String() string

type ConfigSpec_MysqlConfig

type ConfigSpec_MysqlConfig = isConfigSpec_MysqlConfig

type ConfigSpec_MysqlConfig_5_7

type ConfigSpec_MysqlConfig_5_7 struct {
	// Configuration for a MySQL 5.7 cluster.
	MysqlConfig_5_7 *config.MysqlConfig5_7 `protobuf:"bytes,2,opt,name=mysql_config_5_7,json=mysqlConfig_5_7,proto3,oneof"`
}

type CreateClusterMetadata

type CreateClusterMetadata struct {

	// ID of the MySQL cluster that is being created.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClusterMetadata) Descriptor deprecated

func (*CreateClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateClusterMetadata.ProtoReflect.Descriptor instead.

func (*CreateClusterMetadata) GetClusterId

func (x *CreateClusterMetadata) GetClusterId() string

func (*CreateClusterMetadata) ProtoMessage

func (*CreateClusterMetadata) ProtoMessage()

func (*CreateClusterMetadata) ProtoReflect

func (x *CreateClusterMetadata) ProtoReflect() protoreflect.Message

func (*CreateClusterMetadata) Reset

func (x *CreateClusterMetadata) Reset()

func (*CreateClusterMetadata) SetClusterId

func (m *CreateClusterMetadata) SetClusterId(v string)

func (*CreateClusterMetadata) String

func (x *CreateClusterMetadata) String() string

type CreateClusterRequest

type CreateClusterRequest struct {

	// ID of the folder to create the MySQL cluster in.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the MySQL cluster. The name must be unique within the folder.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the MySQL cluster.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the MySQL cluster as `key:value` pairs. Maximum 64 per resource.
	// For example, "project": "mvp" or "source": "dictionary".
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Deployment environment of the MySQL cluster.
	Environment Cluster_Environment `` /* 132-byte string literal not displayed */
	// Configuration and resources for hosts that should be created for the MySQL cluster.
	ConfigSpec *ConfigSpec `protobuf:"bytes,6,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"`
	// Descriptions of databases to be created in the MySQL cluster.
	DatabaseSpecs []*DatabaseSpec `protobuf:"bytes,7,rep,name=database_specs,json=databaseSpecs,proto3" json:"database_specs,omitempty"`
	// Descriptions of database users to be created in the MySQL cluster.
	UserSpecs []*UserSpec `protobuf:"bytes,8,rep,name=user_specs,json=userSpecs,proto3" json:"user_specs,omitempty"`
	// Individual configurations for hosts that should be created for the MySQL cluster.
	HostSpecs []*HostSpec `protobuf:"bytes,9,rep,name=host_specs,json=hostSpecs,proto3" json:"host_specs,omitempty"`
	// ID of the network to create the cluster in.
	NetworkId string `protobuf:"bytes,10,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClusterRequest) Descriptor deprecated

func (*CreateClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateClusterRequest.ProtoReflect.Descriptor instead.

func (*CreateClusterRequest) GetConfigSpec

func (x *CreateClusterRequest) GetConfigSpec() *ConfigSpec

func (*CreateClusterRequest) GetDatabaseSpecs

func (x *CreateClusterRequest) GetDatabaseSpecs() []*DatabaseSpec

func (*CreateClusterRequest) GetDescription

func (x *CreateClusterRequest) GetDescription() string

func (*CreateClusterRequest) GetEnvironment

func (x *CreateClusterRequest) GetEnvironment() Cluster_Environment

func (*CreateClusterRequest) GetFolderId

func (x *CreateClusterRequest) GetFolderId() string

func (*CreateClusterRequest) GetHostSpecs

func (x *CreateClusterRequest) GetHostSpecs() []*HostSpec

func (*CreateClusterRequest) GetLabels

func (x *CreateClusterRequest) GetLabels() map[string]string

func (*CreateClusterRequest) GetName

func (x *CreateClusterRequest) GetName() string

func (*CreateClusterRequest) GetNetworkId

func (x *CreateClusterRequest) GetNetworkId() string

func (*CreateClusterRequest) GetUserSpecs

func (x *CreateClusterRequest) GetUserSpecs() []*UserSpec

func (*CreateClusterRequest) ProtoMessage

func (*CreateClusterRequest) ProtoMessage()

func (*CreateClusterRequest) ProtoReflect

func (x *CreateClusterRequest) ProtoReflect() protoreflect.Message

func (*CreateClusterRequest) Reset

func (x *CreateClusterRequest) Reset()

func (*CreateClusterRequest) SetConfigSpec

func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec)

func (*CreateClusterRequest) SetDatabaseSpecs

func (m *CreateClusterRequest) SetDatabaseSpecs(v []*DatabaseSpec)

func (*CreateClusterRequest) SetDescription

func (m *CreateClusterRequest) SetDescription(v string)

func (*CreateClusterRequest) SetEnvironment

func (m *CreateClusterRequest) SetEnvironment(v Cluster_Environment)

func (*CreateClusterRequest) SetFolderId

func (m *CreateClusterRequest) SetFolderId(v string)

func (*CreateClusterRequest) SetHostSpecs

func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec)

func (*CreateClusterRequest) SetLabels

func (m *CreateClusterRequest) SetLabels(v map[string]string)

func (*CreateClusterRequest) SetName

func (m *CreateClusterRequest) SetName(v string)

func (*CreateClusterRequest) SetNetworkId

func (m *CreateClusterRequest) SetNetworkId(v string)

func (*CreateClusterRequest) SetUserSpecs

func (m *CreateClusterRequest) SetUserSpecs(v []*UserSpec)

func (*CreateClusterRequest) String

func (x *CreateClusterRequest) String() string

type CreateDatabaseMetadata

type CreateDatabaseMetadata struct {

	// ID of the MySQL cluster where a database is being created.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the MySQL database that is being created.
	DatabaseName string `protobuf:"bytes,2,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDatabaseMetadata) Descriptor deprecated

func (*CreateDatabaseMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateDatabaseMetadata.ProtoReflect.Descriptor instead.

func (*CreateDatabaseMetadata) GetClusterId

func (x *CreateDatabaseMetadata) GetClusterId() string

func (*CreateDatabaseMetadata) GetDatabaseName

func (x *CreateDatabaseMetadata) GetDatabaseName() string

func (*CreateDatabaseMetadata) ProtoMessage

func (*CreateDatabaseMetadata) ProtoMessage()

func (*CreateDatabaseMetadata) ProtoReflect

func (x *CreateDatabaseMetadata) ProtoReflect() protoreflect.Message

func (*CreateDatabaseMetadata) Reset

func (x *CreateDatabaseMetadata) Reset()

func (*CreateDatabaseMetadata) SetClusterId

func (m *CreateDatabaseMetadata) SetClusterId(v string)

func (*CreateDatabaseMetadata) SetDatabaseName

func (m *CreateDatabaseMetadata) SetDatabaseName(v string)

func (*CreateDatabaseMetadata) String

func (x *CreateDatabaseMetadata) String() string

type CreateDatabaseRequest

type CreateDatabaseRequest struct {

	// ID of the MySQL cluster to create a database in.
	// To get the cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Configuration of the database to create.
	DatabaseSpec *DatabaseSpec `protobuf:"bytes,2,opt,name=database_spec,json=databaseSpec,proto3" json:"database_spec,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDatabaseRequest) Descriptor deprecated

func (*CreateDatabaseRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDatabaseRequest.ProtoReflect.Descriptor instead.

func (*CreateDatabaseRequest) GetClusterId

func (x *CreateDatabaseRequest) GetClusterId() string

func (*CreateDatabaseRequest) GetDatabaseSpec

func (x *CreateDatabaseRequest) GetDatabaseSpec() *DatabaseSpec

func (*CreateDatabaseRequest) ProtoMessage

func (*CreateDatabaseRequest) ProtoMessage()

func (*CreateDatabaseRequest) ProtoReflect

func (x *CreateDatabaseRequest) ProtoReflect() protoreflect.Message

func (*CreateDatabaseRequest) Reset

func (x *CreateDatabaseRequest) Reset()

func (*CreateDatabaseRequest) SetClusterId

func (m *CreateDatabaseRequest) SetClusterId(v string)

func (*CreateDatabaseRequest) SetDatabaseSpec

func (m *CreateDatabaseRequest) SetDatabaseSpec(v *DatabaseSpec)

func (*CreateDatabaseRequest) String

func (x *CreateDatabaseRequest) String() string

type CreateUserMetadata

type CreateUserMetadata struct {

	// ID of the MySQL cluster the user is being created for.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user that is being created.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserMetadata) Descriptor deprecated

func (*CreateUserMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserMetadata.ProtoReflect.Descriptor instead.

func (*CreateUserMetadata) GetClusterId

func (x *CreateUserMetadata) GetClusterId() string

func (*CreateUserMetadata) GetUserName

func (x *CreateUserMetadata) GetUserName() string

func (*CreateUserMetadata) ProtoMessage

func (*CreateUserMetadata) ProtoMessage()

func (*CreateUserMetadata) ProtoReflect

func (x *CreateUserMetadata) ProtoReflect() protoreflect.Message

func (*CreateUserMetadata) Reset

func (x *CreateUserMetadata) Reset()

func (*CreateUserMetadata) SetClusterId

func (m *CreateUserMetadata) SetClusterId(v string)

func (*CreateUserMetadata) SetUserName

func (m *CreateUserMetadata) SetUserName(v string)

func (*CreateUserMetadata) String

func (x *CreateUserMetadata) String() string

type CreateUserRequest

type CreateUserRequest struct {

	// ID of the MySQL cluster to create a user for. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Properties of the user to be created.
	UserSpec *UserSpec `protobuf:"bytes,2,opt,name=user_spec,json=userSpec,proto3" json:"user_spec,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetClusterId

func (x *CreateUserRequest) GetClusterId() string

func (*CreateUserRequest) GetUserSpec

func (x *CreateUserRequest) GetUserSpec() *UserSpec

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) SetClusterId

func (m *CreateUserRequest) SetClusterId(v string)

func (*CreateUserRequest) SetUserSpec

func (m *CreateUserRequest) SetUserSpec(v *UserSpec)

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type Database

type Database struct {

	// Name of the database.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the MySQL cluster that the database belongs to.
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

A MySQL database. For more information, see the [documentation](/docs/managed-mysql/concepts).

func (*Database) Descriptor deprecated

func (*Database) Descriptor() ([]byte, []int)

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetClusterId

func (x *Database) GetClusterId() string

func (*Database) GetName

func (x *Database) GetName() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

func (x *Database) ProtoReflect() protoreflect.Message

func (*Database) Reset

func (x *Database) Reset()

func (*Database) SetClusterId

func (m *Database) SetClusterId(v string)

func (*Database) SetName

func (m *Database) SetName(v string)

func (*Database) String

func (x *Database) String() string

type DatabaseServiceClient

type DatabaseServiceClient interface {
	// Returns the specified MySQL database.
	//
	// To get the list of available MySQL databases, make a [List] request.
	Get(ctx context.Context, in *GetDatabaseRequest, opts ...grpc.CallOption) (*Database, error)
	// Retrieves the list of MySQL databases in the specified cluster.
	List(ctx context.Context, in *ListDatabasesRequest, opts ...grpc.CallOption) (*ListDatabasesResponse, error)
	// Creates a new MySQL database in the specified cluster.
	Create(ctx context.Context, in *CreateDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified MySQL database.
	Delete(ctx context.Context, in *DeleteDatabaseRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

DatabaseServiceClient is the client API for DatabaseService 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.

type DatabaseServiceServer

type DatabaseServiceServer interface {
	// Returns the specified MySQL database.
	//
	// To get the list of available MySQL databases, make a [List] request.
	Get(context.Context, *GetDatabaseRequest) (*Database, error)
	// Retrieves the list of MySQL databases in the specified cluster.
	List(context.Context, *ListDatabasesRequest) (*ListDatabasesResponse, error)
	// Creates a new MySQL database in the specified cluster.
	Create(context.Context, *CreateDatabaseRequest) (*operation.Operation, error)
	// Deletes the specified MySQL database.
	Delete(context.Context, *DeleteDatabaseRequest) (*operation.Operation, error)
}

DatabaseServiceServer is the server API for DatabaseService service. All implementations should embed UnimplementedDatabaseServiceServer for forward compatibility

type DatabaseSpec

type DatabaseSpec struct {

	// Name of the MySQL database.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabaseSpec) Descriptor deprecated

func (*DatabaseSpec) Descriptor() ([]byte, []int)

Deprecated: Use DatabaseSpec.ProtoReflect.Descriptor instead.

func (*DatabaseSpec) GetName

func (x *DatabaseSpec) GetName() string

func (*DatabaseSpec) ProtoMessage

func (*DatabaseSpec) ProtoMessage()

func (*DatabaseSpec) ProtoReflect

func (x *DatabaseSpec) ProtoReflect() protoreflect.Message

func (*DatabaseSpec) Reset

func (x *DatabaseSpec) Reset()

func (*DatabaseSpec) SetName

func (m *DatabaseSpec) SetName(v string)

func (*DatabaseSpec) String

func (x *DatabaseSpec) String() string

type DeleteClusterHostsMetadata

type DeleteClusterHostsMetadata struct {

	// ID of the MySQL cluster to remove hosts from.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Names of hosts that are being deleted.
	HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteClusterHostsMetadata) Descriptor deprecated

func (*DeleteClusterHostsMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClusterHostsMetadata.ProtoReflect.Descriptor instead.

func (*DeleteClusterHostsMetadata) GetClusterId

func (x *DeleteClusterHostsMetadata) GetClusterId() string

func (*DeleteClusterHostsMetadata) GetHostNames

func (x *DeleteClusterHostsMetadata) GetHostNames() []string

func (*DeleteClusterHostsMetadata) ProtoMessage

func (*DeleteClusterHostsMetadata) ProtoMessage()

func (*DeleteClusterHostsMetadata) ProtoReflect

func (*DeleteClusterHostsMetadata) Reset

func (x *DeleteClusterHostsMetadata) Reset()

func (*DeleteClusterHostsMetadata) SetClusterId

func (m *DeleteClusterHostsMetadata) SetClusterId(v string)

func (*DeleteClusterHostsMetadata) SetHostNames

func (m *DeleteClusterHostsMetadata) SetHostNames(v []string)

func (*DeleteClusterHostsMetadata) String

func (x *DeleteClusterHostsMetadata) String() string

type DeleteClusterHostsRequest

type DeleteClusterHostsRequest struct {

	// ID of the MySQL cluster to remove hosts from.
	// To get the MySQL cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Names of hosts to delete.
	HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteClusterHostsRequest) Descriptor deprecated

func (*DeleteClusterHostsRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClusterHostsRequest.ProtoReflect.Descriptor instead.

func (*DeleteClusterHostsRequest) GetClusterId

func (x *DeleteClusterHostsRequest) GetClusterId() string

func (*DeleteClusterHostsRequest) GetHostNames

func (x *DeleteClusterHostsRequest) GetHostNames() []string

func (*DeleteClusterHostsRequest) ProtoMessage

func (*DeleteClusterHostsRequest) ProtoMessage()

func (*DeleteClusterHostsRequest) ProtoReflect

func (*DeleteClusterHostsRequest) Reset

func (x *DeleteClusterHostsRequest) Reset()

func (*DeleteClusterHostsRequest) SetClusterId

func (m *DeleteClusterHostsRequest) SetClusterId(v string)

func (*DeleteClusterHostsRequest) SetHostNames

func (m *DeleteClusterHostsRequest) SetHostNames(v []string)

func (*DeleteClusterHostsRequest) String

func (x *DeleteClusterHostsRequest) String() string

type DeleteClusterMetadata

type DeleteClusterMetadata struct {

	// ID of the MySQL cluster that is being deleted.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteClusterMetadata) Descriptor deprecated

func (*DeleteClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClusterMetadata.ProtoReflect.Descriptor instead.

func (*DeleteClusterMetadata) GetClusterId

func (x *DeleteClusterMetadata) GetClusterId() string

func (*DeleteClusterMetadata) ProtoMessage

func (*DeleteClusterMetadata) ProtoMessage()

func (*DeleteClusterMetadata) ProtoReflect

func (x *DeleteClusterMetadata) ProtoReflect() protoreflect.Message

func (*DeleteClusterMetadata) Reset

func (x *DeleteClusterMetadata) Reset()

func (*DeleteClusterMetadata) SetClusterId

func (m *DeleteClusterMetadata) SetClusterId(v string)

func (*DeleteClusterMetadata) String

func (x *DeleteClusterMetadata) String() string

type DeleteClusterRequest

type DeleteClusterRequest struct {

	// ID of the MySQL cluster to delete.
	// To get the MySQL cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteClusterRequest) Descriptor deprecated

func (*DeleteClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClusterRequest.ProtoReflect.Descriptor instead.

func (*DeleteClusterRequest) GetClusterId

func (x *DeleteClusterRequest) GetClusterId() string

func (*DeleteClusterRequest) ProtoMessage

func (*DeleteClusterRequest) ProtoMessage()

func (*DeleteClusterRequest) ProtoReflect

func (x *DeleteClusterRequest) ProtoReflect() protoreflect.Message

func (*DeleteClusterRequest) Reset

func (x *DeleteClusterRequest) Reset()

func (*DeleteClusterRequest) SetClusterId

func (m *DeleteClusterRequest) SetClusterId(v string)

func (*DeleteClusterRequest) String

func (x *DeleteClusterRequest) String() string

type DeleteDatabaseMetadata

type DeleteDatabaseMetadata struct {

	// ID of the MySQL cluster where a database is being deleted.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the MySQL database that is being deleted.
	DatabaseName string `protobuf:"bytes,2,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDatabaseMetadata) Descriptor deprecated

func (*DeleteDatabaseMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDatabaseMetadata.ProtoReflect.Descriptor instead.

func (*DeleteDatabaseMetadata) GetClusterId

func (x *DeleteDatabaseMetadata) GetClusterId() string

func (*DeleteDatabaseMetadata) GetDatabaseName

func (x *DeleteDatabaseMetadata) GetDatabaseName() string

func (*DeleteDatabaseMetadata) ProtoMessage

func (*DeleteDatabaseMetadata) ProtoMessage()

func (*DeleteDatabaseMetadata) ProtoReflect

func (x *DeleteDatabaseMetadata) ProtoReflect() protoreflect.Message

func (*DeleteDatabaseMetadata) Reset

func (x *DeleteDatabaseMetadata) Reset()

func (*DeleteDatabaseMetadata) SetClusterId

func (m *DeleteDatabaseMetadata) SetClusterId(v string)

func (*DeleteDatabaseMetadata) SetDatabaseName

func (m *DeleteDatabaseMetadata) SetDatabaseName(v string)

func (*DeleteDatabaseMetadata) String

func (x *DeleteDatabaseMetadata) String() string

type DeleteDatabaseRequest

type DeleteDatabaseRequest struct {

	// ID of the MySQL cluster to delete a database in.
	// To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the database to delete.
	// To get the name of the database, use a [DatabaseService.List] request.
	DatabaseName string `protobuf:"bytes,2,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDatabaseRequest) Descriptor deprecated

func (*DeleteDatabaseRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDatabaseRequest.ProtoReflect.Descriptor instead.

func (*DeleteDatabaseRequest) GetClusterId

func (x *DeleteDatabaseRequest) GetClusterId() string

func (*DeleteDatabaseRequest) GetDatabaseName

func (x *DeleteDatabaseRequest) GetDatabaseName() string

func (*DeleteDatabaseRequest) ProtoMessage

func (*DeleteDatabaseRequest) ProtoMessage()

func (*DeleteDatabaseRequest) ProtoReflect

func (x *DeleteDatabaseRequest) ProtoReflect() protoreflect.Message

func (*DeleteDatabaseRequest) Reset

func (x *DeleteDatabaseRequest) Reset()

func (*DeleteDatabaseRequest) SetClusterId

func (m *DeleteDatabaseRequest) SetClusterId(v string)

func (*DeleteDatabaseRequest) SetDatabaseName

func (m *DeleteDatabaseRequest) SetDatabaseName(v string)

func (*DeleteDatabaseRequest) String

func (x *DeleteDatabaseRequest) String() string

type DeleteUserMetadata

type DeleteUserMetadata struct {

	// ID of the MySQL cluster the user belongs to.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user that is being deleted.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserMetadata) Descriptor deprecated

func (*DeleteUserMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserMetadata.ProtoReflect.Descriptor instead.

func (*DeleteUserMetadata) GetClusterId

func (x *DeleteUserMetadata) GetClusterId() string

func (*DeleteUserMetadata) GetUserName

func (x *DeleteUserMetadata) GetUserName() string

func (*DeleteUserMetadata) ProtoMessage

func (*DeleteUserMetadata) ProtoMessage()

func (*DeleteUserMetadata) ProtoReflect

func (x *DeleteUserMetadata) ProtoReflect() protoreflect.Message

func (*DeleteUserMetadata) Reset

func (x *DeleteUserMetadata) Reset()

func (*DeleteUserMetadata) SetClusterId

func (m *DeleteUserMetadata) SetClusterId(v string)

func (*DeleteUserMetadata) SetUserName

func (m *DeleteUserMetadata) SetUserName(v string)

func (*DeleteUserMetadata) String

func (x *DeleteUserMetadata) String() string

type DeleteUserRequest

type DeleteUserRequest struct {

	// ID of the MySQL cluster the user belongs to. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user to delete. To get the name of the user, use a [UserService.List] request.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetClusterId

func (x *DeleteUserRequest) GetClusterId() string

func (*DeleteUserRequest) GetUserName

func (x *DeleteUserRequest) GetUserName() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) SetClusterId

func (m *DeleteUserRequest) SetClusterId(v string)

func (*DeleteUserRequest) SetUserName

func (m *DeleteUserRequest) SetUserName(v string)

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type GetBackupRequest

type GetBackupRequest struct {

	// ID of the backup to return information about.
	// To get the backup ID, use a [ClusterService.ListBackups] request.
	BackupId string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBackupRequest) Descriptor deprecated

func (*GetBackupRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBackupRequest.ProtoReflect.Descriptor instead.

func (*GetBackupRequest) GetBackupId

func (x *GetBackupRequest) GetBackupId() string

func (*GetBackupRequest) ProtoMessage

func (*GetBackupRequest) ProtoMessage()

func (*GetBackupRequest) ProtoReflect

func (x *GetBackupRequest) ProtoReflect() protoreflect.Message

func (*GetBackupRequest) Reset

func (x *GetBackupRequest) Reset()

func (*GetBackupRequest) SetBackupId

func (m *GetBackupRequest) SetBackupId(v string)

func (*GetBackupRequest) String

func (x *GetBackupRequest) String() string

type GetClusterRequest

type GetClusterRequest struct {

	// ID of the MySQL cluster to return.
	// To get the cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClusterRequest) Descriptor deprecated

func (*GetClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetClusterRequest.ProtoReflect.Descriptor instead.

func (*GetClusterRequest) GetClusterId

func (x *GetClusterRequest) GetClusterId() string

func (*GetClusterRequest) ProtoMessage

func (*GetClusterRequest) ProtoMessage()

func (*GetClusterRequest) ProtoReflect

func (x *GetClusterRequest) ProtoReflect() protoreflect.Message

func (*GetClusterRequest) Reset

func (x *GetClusterRequest) Reset()

func (*GetClusterRequest) SetClusterId

func (m *GetClusterRequest) SetClusterId(v string)

func (*GetClusterRequest) String

func (x *GetClusterRequest) String() string

type GetDatabaseRequest

type GetDatabaseRequest struct {

	// ID of the MySQL cluster that the database belongs to.
	// To get the cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the MySQL database to return.
	// To get the name of the database use a [DatabaseService.List] request.
	DatabaseName string `protobuf:"bytes,2,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDatabaseRequest) Descriptor deprecated

func (*GetDatabaseRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDatabaseRequest.ProtoReflect.Descriptor instead.

func (*GetDatabaseRequest) GetClusterId

func (x *GetDatabaseRequest) GetClusterId() string

func (*GetDatabaseRequest) GetDatabaseName

func (x *GetDatabaseRequest) GetDatabaseName() string

func (*GetDatabaseRequest) ProtoMessage

func (*GetDatabaseRequest) ProtoMessage()

func (*GetDatabaseRequest) ProtoReflect

func (x *GetDatabaseRequest) ProtoReflect() protoreflect.Message

func (*GetDatabaseRequest) Reset

func (x *GetDatabaseRequest) Reset()

func (*GetDatabaseRequest) SetClusterId

func (m *GetDatabaseRequest) SetClusterId(v string)

func (*GetDatabaseRequest) SetDatabaseName

func (m *GetDatabaseRequest) SetDatabaseName(v string)

func (*GetDatabaseRequest) String

func (x *GetDatabaseRequest) String() string

type GetResourcePresetRequest

type GetResourcePresetRequest struct {

	// ID of the resource preset to return.
	// To get the resource preset ID, use a [ResourcePresetService.List] request.
	ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourcePresetRequest) Descriptor deprecated

func (*GetResourcePresetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourcePresetRequest.ProtoReflect.Descriptor instead.

func (*GetResourcePresetRequest) GetResourcePresetId

func (x *GetResourcePresetRequest) GetResourcePresetId() string

func (*GetResourcePresetRequest) ProtoMessage

func (*GetResourcePresetRequest) ProtoMessage()

func (*GetResourcePresetRequest) ProtoReflect

func (x *GetResourcePresetRequest) ProtoReflect() protoreflect.Message

func (*GetResourcePresetRequest) Reset

func (x *GetResourcePresetRequest) Reset()

func (*GetResourcePresetRequest) SetResourcePresetId

func (m *GetResourcePresetRequest) SetResourcePresetId(v string)

func (*GetResourcePresetRequest) String

func (x *GetResourcePresetRequest) String() string

type GetUserRequest

type GetUserRequest struct {

	// ID of the MySQL cluster.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetClusterId

func (x *GetUserRequest) GetClusterId() string

func (*GetUserRequest) GetUserName

func (x *GetUserRequest) GetUserName() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) SetClusterId

func (m *GetUserRequest) SetClusterId(v string)

func (*GetUserRequest) SetUserName

func (m *GetUserRequest) SetUserName(v string)

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GrantUserPermissionMetadata

type GrantUserPermissionMetadata struct {

	// ID of the MySQL cluster the user belongs to. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user that is being granted a permission.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GrantUserPermissionMetadata) Descriptor deprecated

func (*GrantUserPermissionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use GrantUserPermissionMetadata.ProtoReflect.Descriptor instead.

func (*GrantUserPermissionMetadata) GetClusterId

func (x *GrantUserPermissionMetadata) GetClusterId() string

func (*GrantUserPermissionMetadata) GetUserName

func (x *GrantUserPermissionMetadata) GetUserName() string

func (*GrantUserPermissionMetadata) ProtoMessage

func (*GrantUserPermissionMetadata) ProtoMessage()

func (*GrantUserPermissionMetadata) ProtoReflect

func (*GrantUserPermissionMetadata) Reset

func (x *GrantUserPermissionMetadata) Reset()

func (*GrantUserPermissionMetadata) SetClusterId

func (m *GrantUserPermissionMetadata) SetClusterId(v string)

func (*GrantUserPermissionMetadata) SetUserName

func (m *GrantUserPermissionMetadata) SetUserName(v string)

func (*GrantUserPermissionMetadata) String

func (x *GrantUserPermissionMetadata) String() string

type GrantUserPermissionRequest

type GrantUserPermissionRequest struct {

	// ID of the MySQL cluster the user belongs to. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user to grant the permission to. To get the name of the user, use a [UserService.List] request.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// Permission that should be granted to the specified user.
	Permission *Permission `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

func (*GrantUserPermissionRequest) Descriptor deprecated

func (*GrantUserPermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GrantUserPermissionRequest.ProtoReflect.Descriptor instead.

func (*GrantUserPermissionRequest) GetClusterId

func (x *GrantUserPermissionRequest) GetClusterId() string

func (*GrantUserPermissionRequest) GetPermission

func (x *GrantUserPermissionRequest) GetPermission() *Permission

func (*GrantUserPermissionRequest) GetUserName

func (x *GrantUserPermissionRequest) GetUserName() string

func (*GrantUserPermissionRequest) ProtoMessage

func (*GrantUserPermissionRequest) ProtoMessage()

func (*GrantUserPermissionRequest) ProtoReflect

func (*GrantUserPermissionRequest) Reset

func (x *GrantUserPermissionRequest) Reset()

func (*GrantUserPermissionRequest) SetClusterId

func (m *GrantUserPermissionRequest) SetClusterId(v string)

func (*GrantUserPermissionRequest) SetPermission

func (m *GrantUserPermissionRequest) SetPermission(v *Permission)

func (*GrantUserPermissionRequest) SetUserName

func (m *GrantUserPermissionRequest) SetUserName(v string)

func (*GrantUserPermissionRequest) String

func (x *GrantUserPermissionRequest) String() string

type Host

type Host struct {

	// Name of the MySQL host. The host name is assigned by Managed Service for MySQL
	// at creation time, and cannot be changed. 1-63 characters long.
	//
	// The name is unique across all database hosts that exist on the platform,
	// as it defines the FQDN of the host.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the MySQL host. The ID is assigned by Managed Service for MySQL
	// at creation time.
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// ID of the availability zone where the MySQL host resides.
	ZoneId string `protobuf:"bytes,3,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Resources allocated to the host.
	Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"`
	// Role of the host in the cluster.
	Role Host_Role `protobuf:"varint,5,opt,name=role,proto3,enum=yandex.cloud.mdb.mysql.v1alpha.Host_Role" json:"role,omitempty"`
	// Status code of the aggregated health of the host.
	Health Host_Health `protobuf:"varint,6,opt,name=health,proto3,enum=yandex.cloud.mdb.mysql.v1alpha.Host_Health" json:"health,omitempty"`
	// Services provided by the host.
	Services []*Service `protobuf:"bytes,7,rep,name=services,proto3" json:"services,omitempty"`
	// ID of the subnet that the host belongs to.
	SubnetId string `protobuf:"bytes,8,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	// Flag showing public IP assignment status to this host.
	AssignPublicIp bool `protobuf:"varint,9,opt,name=assign_public_ip,json=assignPublicIp,proto3" json:"assign_public_ip,omitempty"`
	// contains filtered or unexported fields
}

func (*Host) Descriptor deprecated

func (*Host) Descriptor() ([]byte, []int)

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) GetAssignPublicIp

func (x *Host) GetAssignPublicIp() bool

func (*Host) GetClusterId

func (x *Host) GetClusterId() string

func (*Host) GetHealth

func (x *Host) GetHealth() Host_Health

func (*Host) GetName

func (x *Host) GetName() string

func (*Host) GetResources

func (x *Host) GetResources() *Resources

func (*Host) GetRole

func (x *Host) GetRole() Host_Role

func (*Host) GetServices

func (x *Host) GetServices() []*Service

func (*Host) GetSubnetId

func (x *Host) GetSubnetId() string

func (*Host) GetZoneId

func (x *Host) GetZoneId() string

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect

func (x *Host) ProtoReflect() protoreflect.Message

func (*Host) Reset

func (x *Host) Reset()

func (*Host) SetAssignPublicIp

func (m *Host) SetAssignPublicIp(v bool)

func (*Host) SetClusterId

func (m *Host) SetClusterId(v string)

func (*Host) SetHealth

func (m *Host) SetHealth(v Host_Health)

func (*Host) SetName

func (m *Host) SetName(v string)

func (*Host) SetResources

func (m *Host) SetResources(v *Resources)

func (*Host) SetRole

func (m *Host) SetRole(v Host_Role)

func (*Host) SetServices

func (m *Host) SetServices(v []*Service)

func (*Host) SetSubnetId

func (m *Host) SetSubnetId(v string)

func (*Host) SetZoneId

func (m *Host) SetZoneId(v string)

func (*Host) String

func (x *Host) String() string

type HostSpec

type HostSpec struct {

	// ID of the availability zone where the host resides.
	// To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request.
	ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// ID of the subnet that the host should belong to. This subnet should be a part
	// of the network that the cluster belongs to.
	// The ID of the network is set in the field [Cluster.network_id].
	SubnetId string `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	// Whether the host should get a public IP address on creation.
	//
	// After a host has been created, this setting cannot be changed. To remove an assigned public IP, or to assign
	// a public IP to a host without one, recreate the host with [assign_public_ip] set as needed.
	//
	// Possible values:
	// * false - don't assign a public IP to the host.
	// * true - the host should have a public IP address.
	AssignPublicIp bool `protobuf:"varint,3,opt,name=assign_public_ip,json=assignPublicIp,proto3" json:"assign_public_ip,omitempty"`
	// contains filtered or unexported fields
}

func (*HostSpec) Descriptor deprecated

func (*HostSpec) Descriptor() ([]byte, []int)

Deprecated: Use HostSpec.ProtoReflect.Descriptor instead.

func (*HostSpec) GetAssignPublicIp

func (x *HostSpec) GetAssignPublicIp() bool

func (*HostSpec) GetSubnetId

func (x *HostSpec) GetSubnetId() string

func (*HostSpec) GetZoneId

func (x *HostSpec) GetZoneId() string

func (*HostSpec) ProtoMessage

func (*HostSpec) ProtoMessage()

func (*HostSpec) ProtoReflect

func (x *HostSpec) ProtoReflect() protoreflect.Message

func (*HostSpec) Reset

func (x *HostSpec) Reset()

func (*HostSpec) SetAssignPublicIp

func (m *HostSpec) SetAssignPublicIp(v bool)

func (*HostSpec) SetSubnetId

func (m *HostSpec) SetSubnetId(v string)

func (*HostSpec) SetZoneId

func (m *HostSpec) SetZoneId(v string)

func (*HostSpec) String

func (x *HostSpec) String() string

type Host_Health

type Host_Health int32
const (
	// Health of the host is unknown.
	Host_HEALTH_UNKNOWN Host_Health = 0
	// The host is performing all its functions normally.
	Host_ALIVE Host_Health = 1
	// The host is inoperable, and cannot perform any of its essential functions.
	Host_DEAD Host_Health = 2
	// The host is degraded, and can perform only some of its essential functions.
	Host_DEGRADED Host_Health = 3
)

func (Host_Health) Descriptor

func (Host_Health) Enum

func (x Host_Health) Enum() *Host_Health

func (Host_Health) EnumDescriptor deprecated

func (Host_Health) EnumDescriptor() ([]byte, []int)

Deprecated: Use Host_Health.Descriptor instead.

func (Host_Health) Number

func (x Host_Health) Number() protoreflect.EnumNumber

func (Host_Health) String

func (x Host_Health) String() string

func (Host_Health) Type

type Host_Role

type Host_Role int32
const (
	// Role of the host in the cluster is unknown.
	Host_ROLE_UNKNOWN Host_Role = 0
	// Host is the master MySQL server in the cluster.
	Host_MASTER Host_Role = 1
	// Host is a replica MySQL server in the cluster.
	Host_REPLICA Host_Role = 2
)

func (Host_Role) Descriptor

func (Host_Role) Descriptor() protoreflect.EnumDescriptor

func (Host_Role) Enum

func (x Host_Role) Enum() *Host_Role

func (Host_Role) EnumDescriptor deprecated

func (Host_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Host_Role.Descriptor instead.

func (Host_Role) Number

func (x Host_Role) Number() protoreflect.EnumNumber

func (Host_Role) String

func (x Host_Role) String() string

func (Host_Role) Type

type ListBackupsRequest

type ListBackupsRequest struct {

	// ID of the folder to list backups in.
	// To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListBackupsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token.  To get the next page of results, Set [page_token] to the [ListBackupsResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBackupsRequest) Descriptor deprecated

func (*ListBackupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead.

func (*ListBackupsRequest) GetFolderId

func (x *ListBackupsRequest) GetFolderId() string

func (*ListBackupsRequest) GetPageSize

func (x *ListBackupsRequest) GetPageSize() int64

func (*ListBackupsRequest) GetPageToken

func (x *ListBackupsRequest) GetPageToken() string

func (*ListBackupsRequest) ProtoMessage

func (*ListBackupsRequest) ProtoMessage()

func (*ListBackupsRequest) ProtoReflect

func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message

func (*ListBackupsRequest) Reset

func (x *ListBackupsRequest) Reset()

func (*ListBackupsRequest) SetFolderId

func (m *ListBackupsRequest) SetFolderId(v string)

func (*ListBackupsRequest) SetPageSize

func (m *ListBackupsRequest) SetPageSize(v int64)

func (*ListBackupsRequest) SetPageToken

func (m *ListBackupsRequest) SetPageToken(v string)

func (*ListBackupsRequest) String

func (x *ListBackupsRequest) String() string

type ListBackupsResponse

type ListBackupsResponse struct {

	// List of MySQL backups.
	Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListBackupsRequest.page_size], use the [next_page_token] as the value
	// for the [ListBackupsRequest.page_token] parameter in the next list request. Each subsequent
	// list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBackupsResponse) Descriptor deprecated

func (*ListBackupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListBackupsResponse.ProtoReflect.Descriptor instead.

func (*ListBackupsResponse) GetBackups

func (x *ListBackupsResponse) GetBackups() []*Backup

func (*ListBackupsResponse) GetNextPageToken

func (x *ListBackupsResponse) GetNextPageToken() string

func (*ListBackupsResponse) ProtoMessage

func (*ListBackupsResponse) ProtoMessage()

func (*ListBackupsResponse) ProtoReflect

func (x *ListBackupsResponse) ProtoReflect() protoreflect.Message

func (*ListBackupsResponse) Reset

func (x *ListBackupsResponse) Reset()

func (*ListBackupsResponse) SetBackups

func (m *ListBackupsResponse) SetBackups(v []*Backup)

func (*ListBackupsResponse) SetNextPageToken

func (m *ListBackupsResponse) SetNextPageToken(v string)

func (*ListBackupsResponse) String

func (x *ListBackupsResponse) String() string

type ListClusterBackupsRequest

type ListClusterBackupsRequest struct {

	// ID of the MySQL cluster.
	// To get the MySQL cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token.  To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterBackupsRequest) Descriptor deprecated

func (*ListClusterBackupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterBackupsRequest.ProtoReflect.Descriptor instead.

func (*ListClusterBackupsRequest) GetClusterId

func (x *ListClusterBackupsRequest) GetClusterId() string

func (*ListClusterBackupsRequest) GetPageSize

func (x *ListClusterBackupsRequest) GetPageSize() int64

func (*ListClusterBackupsRequest) GetPageToken

func (x *ListClusterBackupsRequest) GetPageToken() string

func (*ListClusterBackupsRequest) ProtoMessage

func (*ListClusterBackupsRequest) ProtoMessage()

func (*ListClusterBackupsRequest) ProtoReflect

func (*ListClusterBackupsRequest) Reset

func (x *ListClusterBackupsRequest) Reset()

func (*ListClusterBackupsRequest) SetClusterId

func (m *ListClusterBackupsRequest) SetClusterId(v string)

func (*ListClusterBackupsRequest) SetPageSize

func (m *ListClusterBackupsRequest) SetPageSize(v int64)

func (*ListClusterBackupsRequest) SetPageToken

func (m *ListClusterBackupsRequest) SetPageToken(v string)

func (*ListClusterBackupsRequest) String

func (x *ListClusterBackupsRequest) String() string

type ListClusterBackupsResponse

type ListClusterBackupsResponse struct {

	// List of MySQL backups.
	Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListClusterBackupsRequest.page_size], use the [next_page_token] as the value
	// for the [ListClusterBackupsRequest.page_token] query parameter in the next list request.
	// Each subsequent list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterBackupsResponse) Descriptor deprecated

func (*ListClusterBackupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterBackupsResponse.ProtoReflect.Descriptor instead.

func (*ListClusterBackupsResponse) GetBackups

func (x *ListClusterBackupsResponse) GetBackups() []*Backup

func (*ListClusterBackupsResponse) GetNextPageToken

func (x *ListClusterBackupsResponse) GetNextPageToken() string

func (*ListClusterBackupsResponse) ProtoMessage

func (*ListClusterBackupsResponse) ProtoMessage()

func (*ListClusterBackupsResponse) ProtoReflect

func (*ListClusterBackupsResponse) Reset

func (x *ListClusterBackupsResponse) Reset()

func (*ListClusterBackupsResponse) SetBackups

func (m *ListClusterBackupsResponse) SetBackups(v []*Backup)

func (*ListClusterBackupsResponse) SetNextPageToken

func (m *ListClusterBackupsResponse) SetNextPageToken(v string)

func (*ListClusterBackupsResponse) String

func (x *ListClusterBackupsResponse) String() string

type ListClusterHostsRequest

type ListClusterHostsRequest struct {

	// ID of the MySQL cluster.
	// To get the MySQL cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListClusterHostsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token.  To get the next page of results, set [page_token] to the [ListClusterHostsResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterHostsRequest) Descriptor deprecated

func (*ListClusterHostsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterHostsRequest.ProtoReflect.Descriptor instead.

func (*ListClusterHostsRequest) GetClusterId

func (x *ListClusterHostsRequest) GetClusterId() string

func (*ListClusterHostsRequest) GetPageSize

func (x *ListClusterHostsRequest) GetPageSize() int64

func (*ListClusterHostsRequest) GetPageToken

func (x *ListClusterHostsRequest) GetPageToken() string

func (*ListClusterHostsRequest) ProtoMessage

func (*ListClusterHostsRequest) ProtoMessage()

func (*ListClusterHostsRequest) ProtoReflect

func (x *ListClusterHostsRequest) ProtoReflect() protoreflect.Message

func (*ListClusterHostsRequest) Reset

func (x *ListClusterHostsRequest) Reset()

func (*ListClusterHostsRequest) SetClusterId

func (m *ListClusterHostsRequest) SetClusterId(v string)

func (*ListClusterHostsRequest) SetPageSize

func (m *ListClusterHostsRequest) SetPageSize(v int64)

func (*ListClusterHostsRequest) SetPageToken

func (m *ListClusterHostsRequest) SetPageToken(v string)

func (*ListClusterHostsRequest) String

func (x *ListClusterHostsRequest) String() string

type ListClusterHostsResponse

type ListClusterHostsResponse struct {

	// List of MySQL hosts.
	Hosts []*Host `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value
	// for the [ListClusterHostsRequest.page_token] query parameter in the next list request.
	// Each subsequent list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterHostsResponse) Descriptor deprecated

func (*ListClusterHostsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterHostsResponse.ProtoReflect.Descriptor instead.

func (*ListClusterHostsResponse) GetHosts

func (x *ListClusterHostsResponse) GetHosts() []*Host

func (*ListClusterHostsResponse) GetNextPageToken

func (x *ListClusterHostsResponse) GetNextPageToken() string

func (*ListClusterHostsResponse) ProtoMessage

func (*ListClusterHostsResponse) ProtoMessage()

func (*ListClusterHostsResponse) ProtoReflect

func (x *ListClusterHostsResponse) ProtoReflect() protoreflect.Message

func (*ListClusterHostsResponse) Reset

func (x *ListClusterHostsResponse) Reset()

func (*ListClusterHostsResponse) SetHosts

func (m *ListClusterHostsResponse) SetHosts(v []*Host)

func (*ListClusterHostsResponse) SetNextPageToken

func (m *ListClusterHostsResponse) SetNextPageToken(v string)

func (*ListClusterHostsResponse) String

func (x *ListClusterHostsResponse) String() string

type ListClusterLogsRequest

type ListClusterLogsRequest struct {

	// ID of the MySQL cluster to request logs for.
	// To get the MySQL cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Columns from the logs table to request.
	// If no columns are specified, entire log records are returned.
	ColumnFilter []string `protobuf:"bytes,2,rep,name=column_filter,json=columnFilter,proto3" json:"column_filter,omitempty"`
	// Type of the service to request logs about.
	ServiceType ListClusterLogsRequest_ServiceType `` /* 166-byte string literal not displayed */
	// Start timestamp for the logs request.
	FromTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"`
	// End timestamp for the logs request.
	ToTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set [page_token] to the
	// [ListClusterLogsResponse.next_page_token] returned by the previous list request.
	PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Always return `next_page_token`, even if current page is empty.
	AlwaysNextPageToken bool `protobuf:"varint,8,opt,name=always_next_page_token,json=alwaysNextPageToken,proto3" json:"always_next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterLogsRequest) Descriptor deprecated

func (*ListClusterLogsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterLogsRequest.ProtoReflect.Descriptor instead.

func (*ListClusterLogsRequest) GetAlwaysNextPageToken

func (x *ListClusterLogsRequest) GetAlwaysNextPageToken() bool

func (*ListClusterLogsRequest) GetClusterId

func (x *ListClusterLogsRequest) GetClusterId() string

func (*ListClusterLogsRequest) GetColumnFilter

func (x *ListClusterLogsRequest) GetColumnFilter() []string

func (*ListClusterLogsRequest) GetFromTime

func (x *ListClusterLogsRequest) GetFromTime() *timestamppb.Timestamp

func (*ListClusterLogsRequest) GetPageSize

func (x *ListClusterLogsRequest) GetPageSize() int64

func (*ListClusterLogsRequest) GetPageToken

func (x *ListClusterLogsRequest) GetPageToken() string

func (*ListClusterLogsRequest) GetServiceType

func (*ListClusterLogsRequest) GetToTime

func (*ListClusterLogsRequest) ProtoMessage

func (*ListClusterLogsRequest) ProtoMessage()

func (*ListClusterLogsRequest) ProtoReflect

func (x *ListClusterLogsRequest) ProtoReflect() protoreflect.Message

func (*ListClusterLogsRequest) Reset

func (x *ListClusterLogsRequest) Reset()

func (*ListClusterLogsRequest) SetAlwaysNextPageToken

func (m *ListClusterLogsRequest) SetAlwaysNextPageToken(v bool)

func (*ListClusterLogsRequest) SetClusterId

func (m *ListClusterLogsRequest) SetClusterId(v string)

func (*ListClusterLogsRequest) SetColumnFilter

func (m *ListClusterLogsRequest) SetColumnFilter(v []string)

func (*ListClusterLogsRequest) SetFromTime

func (m *ListClusterLogsRequest) SetFromTime(v *timestamppb.Timestamp)

func (*ListClusterLogsRequest) SetPageSize

func (m *ListClusterLogsRequest) SetPageSize(v int64)

func (*ListClusterLogsRequest) SetPageToken

func (m *ListClusterLogsRequest) SetPageToken(v string)

func (*ListClusterLogsRequest) SetServiceType

func (*ListClusterLogsRequest) SetToTime

func (m *ListClusterLogsRequest) SetToTime(v *timestamppb.Timestamp)

func (*ListClusterLogsRequest) String

func (x *ListClusterLogsRequest) String() string

type ListClusterLogsRequest_ServiceType

type ListClusterLogsRequest_ServiceType int32
const (
	ListClusterLogsRequest_SERVICE_TYPE_UNSPECIFIED ListClusterLogsRequest_ServiceType = 0
	// Logs of MySQL activity.
	ListClusterLogsRequest_MYSQL ListClusterLogsRequest_ServiceType = 1
)

func (ListClusterLogsRequest_ServiceType) Descriptor

func (ListClusterLogsRequest_ServiceType) Enum

func (ListClusterLogsRequest_ServiceType) EnumDescriptor deprecated

func (ListClusterLogsRequest_ServiceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListClusterLogsRequest_ServiceType.Descriptor instead.

func (ListClusterLogsRequest_ServiceType) Number

func (ListClusterLogsRequest_ServiceType) String

func (ListClusterLogsRequest_ServiceType) Type

type ListClusterLogsResponse

type ListClusterLogsResponse struct {

	// Requested log records.
	Logs []*LogRecord `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value
	// for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
	// Each subsequent list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterLogsResponse) Descriptor deprecated

func (*ListClusterLogsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterLogsResponse.ProtoReflect.Descriptor instead.

func (*ListClusterLogsResponse) GetLogs

func (x *ListClusterLogsResponse) GetLogs() []*LogRecord

func (*ListClusterLogsResponse) GetNextPageToken

func (x *ListClusterLogsResponse) GetNextPageToken() string

func (*ListClusterLogsResponse) ProtoMessage

func (*ListClusterLogsResponse) ProtoMessage()

func (*ListClusterLogsResponse) ProtoReflect

func (x *ListClusterLogsResponse) ProtoReflect() protoreflect.Message

func (*ListClusterLogsResponse) Reset

func (x *ListClusterLogsResponse) Reset()

func (*ListClusterLogsResponse) SetLogs

func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord)

func (*ListClusterLogsResponse) SetNextPageToken

func (m *ListClusterLogsResponse) SetNextPageToken(v string)

func (*ListClusterLogsResponse) String

func (x *ListClusterLogsResponse) String() string

type ListClusterOperationsRequest

type ListClusterOperationsRequest struct {

	// ID of the MySQL cluster to list operations for.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token.  To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterOperationsRequest) Descriptor deprecated

func (*ListClusterOperationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterOperationsRequest.ProtoReflect.Descriptor instead.

func (*ListClusterOperationsRequest) GetClusterId

func (x *ListClusterOperationsRequest) GetClusterId() string

func (*ListClusterOperationsRequest) GetPageSize

func (x *ListClusterOperationsRequest) GetPageSize() int64

func (*ListClusterOperationsRequest) GetPageToken

func (x *ListClusterOperationsRequest) GetPageToken() string

func (*ListClusterOperationsRequest) ProtoMessage

func (*ListClusterOperationsRequest) ProtoMessage()

func (*ListClusterOperationsRequest) ProtoReflect

func (*ListClusterOperationsRequest) Reset

func (x *ListClusterOperationsRequest) Reset()

func (*ListClusterOperationsRequest) SetClusterId

func (m *ListClusterOperationsRequest) SetClusterId(v string)

func (*ListClusterOperationsRequest) SetPageSize

func (m *ListClusterOperationsRequest) SetPageSize(v int64)

func (*ListClusterOperationsRequest) SetPageToken

func (m *ListClusterOperationsRequest) SetPageToken(v string)

func (*ListClusterOperationsRequest) String

type ListClusterOperationsResponse

type ListClusterOperationsResponse struct {

	// List of operations for the specified MySQL cluster.
	Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value
	// for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
	// Each subsequent list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClusterOperationsResponse) Descriptor deprecated

func (*ListClusterOperationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClusterOperationsResponse.ProtoReflect.Descriptor instead.

func (*ListClusterOperationsResponse) GetNextPageToken

func (x *ListClusterOperationsResponse) GetNextPageToken() string

func (*ListClusterOperationsResponse) GetOperations

func (x *ListClusterOperationsResponse) GetOperations() []*operation.Operation

func (*ListClusterOperationsResponse) ProtoMessage

func (*ListClusterOperationsResponse) ProtoMessage()

func (*ListClusterOperationsResponse) ProtoReflect

func (*ListClusterOperationsResponse) Reset

func (x *ListClusterOperationsResponse) Reset()

func (*ListClusterOperationsResponse) SetNextPageToken

func (m *ListClusterOperationsResponse) SetNextPageToken(v string)

func (*ListClusterOperationsResponse) SetOperations

func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation)

func (*ListClusterOperationsResponse) String

type ListClustersRequest

type ListClustersRequest struct {

	// ID of the folder to list MySQL clusters in.
	// To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A filter expression that filters resources listed in the response.
	// The expression must specify:
	// 1. The field name. Currently you can only use filtering with the [Cluster.name] field.
	// 2. An `=` operator.
	// 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClustersRequest) Descriptor deprecated

func (*ListClustersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClustersRequest.ProtoReflect.Descriptor instead.

func (*ListClustersRequest) GetFilter

func (x *ListClustersRequest) GetFilter() string

func (*ListClustersRequest) GetFolderId

func (x *ListClustersRequest) GetFolderId() string

func (*ListClustersRequest) GetPageSize

func (x *ListClustersRequest) GetPageSize() int64

func (*ListClustersRequest) GetPageToken

func (x *ListClustersRequest) GetPageToken() string

func (*ListClustersRequest) ProtoMessage

func (*ListClustersRequest) ProtoMessage()

func (*ListClustersRequest) ProtoReflect

func (x *ListClustersRequest) ProtoReflect() protoreflect.Message

func (*ListClustersRequest) Reset

func (x *ListClustersRequest) Reset()

func (*ListClustersRequest) SetFilter

func (m *ListClustersRequest) SetFilter(v string)

func (*ListClustersRequest) SetFolderId

func (m *ListClustersRequest) SetFolderId(v string)

func (*ListClustersRequest) SetPageSize

func (m *ListClustersRequest) SetPageSize(v int64)

func (*ListClustersRequest) SetPageToken

func (m *ListClustersRequest) SetPageToken(v string)

func (*ListClustersRequest) String

func (x *ListClustersRequest) String() string

type ListClustersResponse

type ListClustersResponse struct {

	// List of MySQL clusters.
	Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListClustersRequest.page_size], use the [next_page_token] as the value
	// for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent
	// list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClustersResponse) Descriptor deprecated

func (*ListClustersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClustersResponse.ProtoReflect.Descriptor instead.

func (*ListClustersResponse) GetClusters

func (x *ListClustersResponse) GetClusters() []*Cluster

func (*ListClustersResponse) GetNextPageToken

func (x *ListClustersResponse) GetNextPageToken() string

func (*ListClustersResponse) ProtoMessage

func (*ListClustersResponse) ProtoMessage()

func (*ListClustersResponse) ProtoReflect

func (x *ListClustersResponse) ProtoReflect() protoreflect.Message

func (*ListClustersResponse) Reset

func (x *ListClustersResponse) Reset()

func (*ListClustersResponse) SetClusters

func (m *ListClustersResponse) SetClusters(v []*Cluster)

func (*ListClustersResponse) SetNextPageToken

func (m *ListClustersResponse) SetNextPageToken(v string)

func (*ListClustersResponse) String

func (x *ListClustersResponse) String() string

type ListDatabasesRequest

type ListDatabasesRequest struct {

	// ID of the MySQL cluster to list databases in.
	// To get the cluster ID use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListDatabasesResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, Set [page_token] to the [ListDatabasesResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDatabasesRequest) Descriptor deprecated

func (*ListDatabasesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDatabasesRequest.ProtoReflect.Descriptor instead.

func (*ListDatabasesRequest) GetClusterId

func (x *ListDatabasesRequest) GetClusterId() string

func (*ListDatabasesRequest) GetPageSize

func (x *ListDatabasesRequest) GetPageSize() int64

func (*ListDatabasesRequest) GetPageToken

func (x *ListDatabasesRequest) GetPageToken() string

func (*ListDatabasesRequest) ProtoMessage

func (*ListDatabasesRequest) ProtoMessage()

func (*ListDatabasesRequest) ProtoReflect

func (x *ListDatabasesRequest) ProtoReflect() protoreflect.Message

func (*ListDatabasesRequest) Reset

func (x *ListDatabasesRequest) Reset()

func (*ListDatabasesRequest) SetClusterId

func (m *ListDatabasesRequest) SetClusterId(v string)

func (*ListDatabasesRequest) SetPageSize

func (m *ListDatabasesRequest) SetPageSize(v int64)

func (*ListDatabasesRequest) SetPageToken

func (m *ListDatabasesRequest) SetPageToken(v string)

func (*ListDatabasesRequest) String

func (x *ListDatabasesRequest) String() string

type ListDatabasesResponse

type ListDatabasesResponse struct {

	// List of MySQL databases.
	Databases []*Database `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListDatabasesRequest.page_size], use the [next_page_token] as the value
	// for the [ListDatabasesRequest.page_token] parameter in the next list request. Each subsequent
	// list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDatabasesResponse) Descriptor deprecated

func (*ListDatabasesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDatabasesResponse.ProtoReflect.Descriptor instead.

func (*ListDatabasesResponse) GetDatabases

func (x *ListDatabasesResponse) GetDatabases() []*Database

func (*ListDatabasesResponse) GetNextPageToken

func (x *ListDatabasesResponse) GetNextPageToken() string

func (*ListDatabasesResponse) ProtoMessage

func (*ListDatabasesResponse) ProtoMessage()

func (*ListDatabasesResponse) ProtoReflect

func (x *ListDatabasesResponse) ProtoReflect() protoreflect.Message

func (*ListDatabasesResponse) Reset

func (x *ListDatabasesResponse) Reset()

func (*ListDatabasesResponse) SetDatabases

func (m *ListDatabasesResponse) SetDatabases(v []*Database)

func (*ListDatabasesResponse) SetNextPageToken

func (m *ListDatabasesResponse) SetNextPageToken(v string)

func (*ListDatabasesResponse) String

func (x *ListDatabasesResponse) String() string

type ListResourcePresetsRequest

type ListResourcePresetsRequest struct {

	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListResourcePresetsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set [page_token] to the [ListResourcePresetsResponse.next_page_token]
	// returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourcePresetsRequest) Descriptor deprecated

func (*ListResourcePresetsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourcePresetsRequest.ProtoReflect.Descriptor instead.

func (*ListResourcePresetsRequest) GetPageSize

func (x *ListResourcePresetsRequest) GetPageSize() int64

func (*ListResourcePresetsRequest) GetPageToken

func (x *ListResourcePresetsRequest) GetPageToken() string

func (*ListResourcePresetsRequest) ProtoMessage

func (*ListResourcePresetsRequest) ProtoMessage()

func (*ListResourcePresetsRequest) ProtoReflect

func (*ListResourcePresetsRequest) Reset

func (x *ListResourcePresetsRequest) Reset()

func (*ListResourcePresetsRequest) SetPageSize

func (m *ListResourcePresetsRequest) SetPageSize(v int64)

func (*ListResourcePresetsRequest) SetPageToken

func (m *ListResourcePresetsRequest) SetPageToken(v string)

func (*ListResourcePresetsRequest) String

func (x *ListResourcePresetsRequest) String() string

type ListResourcePresetsResponse

type ListResourcePresetsResponse struct {

	// List of resource presets.
	ResourcePresets []*ResourcePreset `protobuf:"bytes,1,rep,name=resource_presets,json=resourcePresets,proto3" json:"resource_presets,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListResourcePresetsRequest.page_size], use the [next_page_token] as the value
	// for the [ListResourcePresetsRequest.page_token] parameter in the next list request. Each subsequent
	// list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourcePresetsResponse) Descriptor deprecated

func (*ListResourcePresetsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourcePresetsResponse.ProtoReflect.Descriptor instead.

func (*ListResourcePresetsResponse) GetNextPageToken

func (x *ListResourcePresetsResponse) GetNextPageToken() string

func (*ListResourcePresetsResponse) GetResourcePresets

func (x *ListResourcePresetsResponse) GetResourcePresets() []*ResourcePreset

func (*ListResourcePresetsResponse) ProtoMessage

func (*ListResourcePresetsResponse) ProtoMessage()

func (*ListResourcePresetsResponse) ProtoReflect

func (*ListResourcePresetsResponse) Reset

func (x *ListResourcePresetsResponse) Reset()

func (*ListResourcePresetsResponse) SetNextPageToken

func (m *ListResourcePresetsResponse) SetNextPageToken(v string)

func (*ListResourcePresetsResponse) SetResourcePresets

func (m *ListResourcePresetsResponse) SetResourcePresets(v []*ResourcePreset)

func (*ListResourcePresetsResponse) String

func (x *ListResourcePresetsResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {

	// ID of the cluster to list MySQL users in. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// The maximum number of results per page to return. If the number of available results is larger than [page_size], the service returns a [ListUsersResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set [page_token] to the [ListUsersResponse.next_page_token] returned by the previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

func (*ListUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetClusterId

func (x *ListUsersRequest) GetClusterId() string

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int64

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

func (x *ListUsersRequest) ProtoReflect() protoreflect.Message

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) SetClusterId

func (m *ListUsersRequest) SetClusterId(v string)

func (*ListUsersRequest) SetPageSize

func (m *ListUsersRequest) SetPageSize(v int64)

func (*ListUsersRequest) SetPageToken

func (m *ListUsersRequest) SetPageToken(v string)

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {

	// Requested list of MySQL users.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results is larger than [ListUsersRequest.page_size], use the [next_page_token] as the value for the [ListUsersRequest.page_token] parameter in the next list request. Each subsequent list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

func (*ListUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

func (x *ListUsersResponse) ProtoReflect() protoreflect.Message

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) SetNextPageToken

func (m *ListUsersResponse) SetNextPageToken(v string)

func (*ListUsersResponse) SetUsers

func (m *ListUsersResponse) SetUsers(v []*User)

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type LogRecord

type LogRecord struct {

	// Log record timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Contents of the log record.
	Message map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LogRecord) Descriptor deprecated

func (*LogRecord) Descriptor() ([]byte, []int)

Deprecated: Use LogRecord.ProtoReflect.Descriptor instead.

func (*LogRecord) GetMessage

func (x *LogRecord) GetMessage() map[string]string

func (*LogRecord) GetTimestamp

func (x *LogRecord) GetTimestamp() *timestamppb.Timestamp

func (*LogRecord) ProtoMessage

func (*LogRecord) ProtoMessage()

func (*LogRecord) ProtoReflect

func (x *LogRecord) ProtoReflect() protoreflect.Message

func (*LogRecord) Reset

func (x *LogRecord) Reset()

func (*LogRecord) SetMessage

func (m *LogRecord) SetMessage(v map[string]string)

func (*LogRecord) SetTimestamp

func (m *LogRecord) SetTimestamp(v *timestamppb.Timestamp)

func (*LogRecord) String

func (x *LogRecord) String() string

type Monitoring

type Monitoring struct {

	// Name of the monitoring system.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the monitoring system.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Link to the monitoring system charts for the MySQL cluster.
	Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

func (*Monitoring) Descriptor deprecated

func (*Monitoring) Descriptor() ([]byte, []int)

Deprecated: Use Monitoring.ProtoReflect.Descriptor instead.

func (*Monitoring) GetDescription

func (x *Monitoring) GetDescription() string
func (x *Monitoring) GetLink() string

func (*Monitoring) GetName

func (x *Monitoring) GetName() string

func (*Monitoring) ProtoMessage

func (*Monitoring) ProtoMessage()

func (*Monitoring) ProtoReflect

func (x *Monitoring) ProtoReflect() protoreflect.Message

func (*Monitoring) Reset

func (x *Monitoring) Reset()

func (*Monitoring) SetDescription

func (m *Monitoring) SetDescription(v string)
func (m *Monitoring) SetLink(v string)

func (*Monitoring) SetName

func (m *Monitoring) SetName(v string)

func (*Monitoring) String

func (x *Monitoring) String() string

type Permission

type Permission struct {

	// Name of the database that the permission grants access to.
	DatabaseName string `protobuf:"bytes,1,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// Roles granted to the user within the database.
	Roles []Permission_Privilege `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Permission) Descriptor deprecated

func (*Permission) Descriptor() ([]byte, []int)

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetDatabaseName

func (x *Permission) GetDatabaseName() string

func (*Permission) GetRoles

func (x *Permission) GetRoles() []Permission_Privilege

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) ProtoReflect

func (x *Permission) ProtoReflect() protoreflect.Message

func (*Permission) Reset

func (x *Permission) Reset()

func (*Permission) SetDatabaseName

func (m *Permission) SetDatabaseName(v string)

func (*Permission) SetRoles

func (m *Permission) SetRoles(v []Permission_Privilege)

func (*Permission) String

func (x *Permission) String() string

type Permission_Privilege

type Permission_Privilege int32
const (
	Permission_PRIVILEGE_UNSPECIFIED Permission_Privilege = 0
	// All privileges that can be made available to the user.
	Permission_ALL_PRIVILEGES Permission_Privilege = 1
	// Altering tables.
	Permission_ALTER Permission_Privilege = 2
	// Altering stored routines (stored procedures and functions).
	Permission_ALTER_ROUTINE Permission_Privilege = 3
	// Creating tables or indexes.
	Permission_CREATE Permission_Privilege = 4
	// Creating stored routines.
	Permission_CREATE_ROUTINE Permission_Privilege = 5
	// Creating temporary tables.
	Permission_CREATE_TEMPORARY_TABLES Permission_Privilege = 6
	// Creating views.
	Permission_CREATE_VIEW Permission_Privilege = 7
	// Deleting tables.
	Permission_DELETE Permission_Privilege = 8
	// Removing tables or views.
	Permission_DROP Permission_Privilege = 9
	// Creating, altering, dropping, or displaying events for the Event Scheduler.
	Permission_EVENT Permission_Privilege = 10
	// Executing stored routines.
	Permission_EXECUTE Permission_Privilege = 11
	// Creating and removing indexes.
	Permission_INDEX Permission_Privilege = 12
	// Inserting rows into the database.
	Permission_INSERT Permission_Privilege = 13
	// Using LOCK TABLES statement for tables available with SELECT privilege.
	Permission_LOCK_TABLES Permission_Privilege = 14
	// Selecting rows from tables.
	//
	// Some SELECT statements can be allowed without the SELECT privilege. All statements that read column values require the SELECT privilege. See details in [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_select).
	Permission_SELECT Permission_Privilege = 15
	// Using the SHOW CREATE VIEW statement. Also needed for views used with EXPLAIN.
	Permission_SHOW_VIEW Permission_Privilege = 16
	// Creating, removing, executing, or displaying triggers for a table.
	Permission_TRIGGER Permission_Privilege = 17
	// Updating rows in the database.
	Permission_UPDATE Permission_Privilege = 18
)

func (Permission_Privilege) Descriptor

func (Permission_Privilege) Enum

func (Permission_Privilege) EnumDescriptor deprecated

func (Permission_Privilege) EnumDescriptor() ([]byte, []int)

Deprecated: Use Permission_Privilege.Descriptor instead.

func (Permission_Privilege) Number

func (Permission_Privilege) String

func (x Permission_Privilege) String() string

func (Permission_Privilege) Type

type ResourcePreset

type ResourcePreset struct {

	// ID of the resource preset.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// IDs of availability zones where the resource preset is available.
	ZoneIds []string `protobuf:"bytes,2,rep,name=zone_ids,json=zoneIds,proto3" json:"zone_ids,omitempty"`
	// Number of CPU cores for a MySQL host created with the preset.
	Cores int64 `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"`
	// RAM volume for a MySQL host created with the preset, in bytes.
	Memory int64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

A preset of resources for hardware configuration of MySQL hosts.

func (*ResourcePreset) Descriptor deprecated

func (*ResourcePreset) Descriptor() ([]byte, []int)

Deprecated: Use ResourcePreset.ProtoReflect.Descriptor instead.

func (*ResourcePreset) GetCores

func (x *ResourcePreset) GetCores() int64

func (*ResourcePreset) GetId

func (x *ResourcePreset) GetId() string

func (*ResourcePreset) GetMemory

func (x *ResourcePreset) GetMemory() int64

func (*ResourcePreset) GetZoneIds

func (x *ResourcePreset) GetZoneIds() []string

func (*ResourcePreset) ProtoMessage

func (*ResourcePreset) ProtoMessage()

func (*ResourcePreset) ProtoReflect

func (x *ResourcePreset) ProtoReflect() protoreflect.Message

func (*ResourcePreset) Reset

func (x *ResourcePreset) Reset()

func (*ResourcePreset) SetCores

func (m *ResourcePreset) SetCores(v int64)

func (*ResourcePreset) SetId

func (m *ResourcePreset) SetId(v string)

func (*ResourcePreset) SetMemory

func (m *ResourcePreset) SetMemory(v int64)

func (*ResourcePreset) SetZoneIds

func (m *ResourcePreset) SetZoneIds(v []string)

func (*ResourcePreset) String

func (x *ResourcePreset) String() string

type ResourcePresetServiceClient

type ResourcePresetServiceClient interface {
	// Returns the specified resource preset.
	//
	// To get the list of available resource presets, make a [List] request.
	Get(ctx context.Context, in *GetResourcePresetRequest, opts ...grpc.CallOption) (*ResourcePreset, error)
	// Retrieves the list of available resource presets.
	List(ctx context.Context, in *ListResourcePresetsRequest, opts ...grpc.CallOption) (*ListResourcePresetsResponse, error)
}

ResourcePresetServiceClient is the client API for ResourcePresetService 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.

type ResourcePresetServiceServer

type ResourcePresetServiceServer interface {
	// Returns the specified resource preset.
	//
	// To get the list of available resource presets, make a [List] request.
	Get(context.Context, *GetResourcePresetRequest) (*ResourcePreset, error)
	// Retrieves the list of available resource presets.
	List(context.Context, *ListResourcePresetsRequest) (*ListResourcePresetsResponse, error)
}

ResourcePresetServiceServer is the server API for ResourcePresetService service. All implementations should embed UnimplementedResourcePresetServiceServer for forward compatibility

type Resources

type Resources struct {

	// ID of the preset for computational resources available to a host (CPU, memory etc.).
	// All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
	ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
	// Volume of the storage available to a host.
	DiskSize int64 `protobuf:"varint,2,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
	// Type of the storage environment for the host.
	// Possible values:
	// * network-ssd - network SSD drive,
	// * local-ssd - local SSD storage.
	DiskTypeId string `protobuf:"bytes,3,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Resources) Descriptor deprecated

func (*Resources) Descriptor() ([]byte, []int)

Deprecated: Use Resources.ProtoReflect.Descriptor instead.

func (*Resources) GetDiskSize

func (x *Resources) GetDiskSize() int64

func (*Resources) GetDiskTypeId

func (x *Resources) GetDiskTypeId() string

func (*Resources) GetResourcePresetId

func (x *Resources) GetResourcePresetId() string

func (*Resources) ProtoMessage

func (*Resources) ProtoMessage()

func (*Resources) ProtoReflect

func (x *Resources) ProtoReflect() protoreflect.Message

func (*Resources) Reset

func (x *Resources) Reset()

func (*Resources) SetDiskSize

func (m *Resources) SetDiskSize(v int64)

func (*Resources) SetDiskTypeId

func (m *Resources) SetDiskTypeId(v string)

func (*Resources) SetResourcePresetId

func (m *Resources) SetResourcePresetId(v string)

func (*Resources) String

func (x *Resources) String() string

type RestoreClusterMetadata

type RestoreClusterMetadata struct {

	// ID of the new MySQL cluster that is being created from a backup.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// ID of the backup that is being used for creating a cluster.
	BackupId string `protobuf:"bytes,2,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RestoreClusterMetadata) Descriptor deprecated

func (*RestoreClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RestoreClusterMetadata.ProtoReflect.Descriptor instead.

func (*RestoreClusterMetadata) GetBackupId

func (x *RestoreClusterMetadata) GetBackupId() string

func (*RestoreClusterMetadata) GetClusterId

func (x *RestoreClusterMetadata) GetClusterId() string

func (*RestoreClusterMetadata) ProtoMessage

func (*RestoreClusterMetadata) ProtoMessage()

func (*RestoreClusterMetadata) ProtoReflect

func (x *RestoreClusterMetadata) ProtoReflect() protoreflect.Message

func (*RestoreClusterMetadata) Reset

func (x *RestoreClusterMetadata) Reset()

func (*RestoreClusterMetadata) SetBackupId

func (m *RestoreClusterMetadata) SetBackupId(v string)

func (*RestoreClusterMetadata) SetClusterId

func (m *RestoreClusterMetadata) SetClusterId(v string)

func (*RestoreClusterMetadata) String

func (x *RestoreClusterMetadata) String() string

type RestoreClusterRequest

type RestoreClusterRequest struct {

	// ID of the backup to create a cluster from.
	// To get the backup ID, use a [ClusterService.ListBackups] request.
	BackupId string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	// Timestamp of the moment to which the MySQL cluster should be restored.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// Name of the new MySQL cluster. The name must be unique within the folder.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the new MySQL cluster.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the MySQL cluster as `key:value` pairs. Maximum 64 per resource.
	// For example, "project": "mvp" or "source": "dictionary".
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Deployment environment of the new MySQL cluster.
	Environment Cluster_Environment `` /* 132-byte string literal not displayed */
	// Configuration for the MySQL cluster to be created.
	ConfigSpec *ConfigSpec `protobuf:"bytes,8,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"`
	// Configurations for MySQL hosts that should be added
	// to the cluster that is being created from the backup.
	HostSpecs []*HostSpec `protobuf:"bytes,9,rep,name=host_specs,json=hostSpecs,proto3" json:"host_specs,omitempty"`
	// ID of the network to create the MySQL cluster in.
	NetworkId string `protobuf:"bytes,10,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RestoreClusterRequest) Descriptor deprecated

func (*RestoreClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RestoreClusterRequest.ProtoReflect.Descriptor instead.

func (*RestoreClusterRequest) GetBackupId

func (x *RestoreClusterRequest) GetBackupId() string

func (*RestoreClusterRequest) GetConfigSpec

func (x *RestoreClusterRequest) GetConfigSpec() *ConfigSpec

func (*RestoreClusterRequest) GetDescription

func (x *RestoreClusterRequest) GetDescription() string

func (*RestoreClusterRequest) GetEnvironment

func (x *RestoreClusterRequest) GetEnvironment() Cluster_Environment

func (*RestoreClusterRequest) GetHostSpecs

func (x *RestoreClusterRequest) GetHostSpecs() []*HostSpec

func (*RestoreClusterRequest) GetLabels

func (x *RestoreClusterRequest) GetLabels() map[string]string

func (*RestoreClusterRequest) GetName

func (x *RestoreClusterRequest) GetName() string

func (*RestoreClusterRequest) GetNetworkId

func (x *RestoreClusterRequest) GetNetworkId() string

func (*RestoreClusterRequest) GetTime

func (*RestoreClusterRequest) ProtoMessage

func (*RestoreClusterRequest) ProtoMessage()

func (*RestoreClusterRequest) ProtoReflect

func (x *RestoreClusterRequest) ProtoReflect() protoreflect.Message

func (*RestoreClusterRequest) Reset

func (x *RestoreClusterRequest) Reset()

func (*RestoreClusterRequest) SetBackupId

func (m *RestoreClusterRequest) SetBackupId(v string)

func (*RestoreClusterRequest) SetConfigSpec

func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec)

func (*RestoreClusterRequest) SetDescription

func (m *RestoreClusterRequest) SetDescription(v string)

func (*RestoreClusterRequest) SetEnvironment

func (m *RestoreClusterRequest) SetEnvironment(v Cluster_Environment)

func (*RestoreClusterRequest) SetHostSpecs

func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec)

func (*RestoreClusterRequest) SetLabels

func (m *RestoreClusterRequest) SetLabels(v map[string]string)

func (*RestoreClusterRequest) SetName

func (m *RestoreClusterRequest) SetName(v string)

func (*RestoreClusterRequest) SetNetworkId

func (m *RestoreClusterRequest) SetNetworkId(v string)

func (*RestoreClusterRequest) SetTime

func (*RestoreClusterRequest) String

func (x *RestoreClusterRequest) String() string

type RevokeUserPermissionMetadata

type RevokeUserPermissionMetadata struct {

	// ID of the MySQL cluster the user belongs to.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user whose permission is being revoked.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeUserPermissionMetadata) Descriptor deprecated

func (*RevokeUserPermissionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RevokeUserPermissionMetadata.ProtoReflect.Descriptor instead.

func (*RevokeUserPermissionMetadata) GetClusterId

func (x *RevokeUserPermissionMetadata) GetClusterId() string

func (*RevokeUserPermissionMetadata) GetUserName

func (x *RevokeUserPermissionMetadata) GetUserName() string

func (*RevokeUserPermissionMetadata) ProtoMessage

func (*RevokeUserPermissionMetadata) ProtoMessage()

func (*RevokeUserPermissionMetadata) ProtoReflect

func (*RevokeUserPermissionMetadata) Reset

func (x *RevokeUserPermissionMetadata) Reset()

func (*RevokeUserPermissionMetadata) SetClusterId

func (m *RevokeUserPermissionMetadata) SetClusterId(v string)

func (*RevokeUserPermissionMetadata) SetUserName

func (m *RevokeUserPermissionMetadata) SetUserName(v string)

func (*RevokeUserPermissionMetadata) String

type RevokeUserPermissionRequest

type RevokeUserPermissionRequest struct {

	// ID of the MySQL cluster the user belongs to. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user to revoke a permission from. To get the name of the user, use a [UserService.List] request.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// Name of the database that the user should lose access to.
	DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeUserPermissionRequest) Descriptor deprecated

func (*RevokeUserPermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use RevokeUserPermissionRequest.ProtoReflect.Descriptor instead.

func (*RevokeUserPermissionRequest) GetClusterId

func (x *RevokeUserPermissionRequest) GetClusterId() string

func (*RevokeUserPermissionRequest) GetDatabaseName

func (x *RevokeUserPermissionRequest) GetDatabaseName() string

func (*RevokeUserPermissionRequest) GetUserName

func (x *RevokeUserPermissionRequest) GetUserName() string

func (*RevokeUserPermissionRequest) ProtoMessage

func (*RevokeUserPermissionRequest) ProtoMessage()

func (*RevokeUserPermissionRequest) ProtoReflect

func (*RevokeUserPermissionRequest) Reset

func (x *RevokeUserPermissionRequest) Reset()

func (*RevokeUserPermissionRequest) SetClusterId

func (m *RevokeUserPermissionRequest) SetClusterId(v string)

func (*RevokeUserPermissionRequest) SetDatabaseName

func (m *RevokeUserPermissionRequest) SetDatabaseName(v string)

func (*RevokeUserPermissionRequest) SetUserName

func (m *RevokeUserPermissionRequest) SetUserName(v string)

func (*RevokeUserPermissionRequest) String

func (x *RevokeUserPermissionRequest) String() string

type Service

type Service struct {

	// Type of the service provided by the host.
	Type Service_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.mdb.mysql.v1alpha.Service_Type" json:"type,omitempty"`
	// Status code of server availability.
	Health Service_Health `protobuf:"varint,2,opt,name=health,proto3,enum=yandex.cloud.mdb.mysql.v1alpha.Service_Health" json:"health,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetHealth

func (x *Service) GetHealth() Service_Health

func (*Service) GetType

func (x *Service) GetType() Service_Type

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) SetHealth

func (m *Service) SetHealth(v Service_Health)

func (*Service) SetType

func (m *Service) SetType(v Service_Type)

func (*Service) String

func (x *Service) String() string

type Service_Health

type Service_Health int32
const (
	// Health of the server is unknown.
	Service_HEALTH_UNKNOWN Service_Health = 0
	// The server is working normally.
	Service_ALIVE Service_Health = 1
	// The server is dead or unresponsive.
	Service_DEAD Service_Health = 2
)

func (Service_Health) Descriptor

func (Service_Health) Enum

func (x Service_Health) Enum() *Service_Health

func (Service_Health) EnumDescriptor deprecated

func (Service_Health) EnumDescriptor() ([]byte, []int)

Deprecated: Use Service_Health.Descriptor instead.

func (Service_Health) Number

func (Service_Health) String

func (x Service_Health) String() string

func (Service_Health) Type

type Service_Type

type Service_Type int32
const (
	Service_TYPE_UNSPECIFIED Service_Type = 0
	// Host provides the MySQL error log.
	Service_MYSQL_ERROR Service_Type = 1
	// Host provides the MySQL general query log.
	Service_MYSQL_GENERAL Service_Type = 2
	// Host provides the MySQL slow query log.
	Service_MYSQL_SLOW_QUERY Service_Type = 3
)

func (Service_Type) Descriptor

func (Service_Type) Enum

func (x Service_Type) Enum() *Service_Type

func (Service_Type) EnumDescriptor deprecated

func (Service_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Service_Type.Descriptor instead.

func (Service_Type) Number

func (Service_Type) String

func (x Service_Type) String() string

func (Service_Type) Type

type StartClusterMetadata

type StartClusterMetadata struct {

	// ID of the MySQL cluster being started.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartClusterMetadata) Descriptor deprecated

func (*StartClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use StartClusterMetadata.ProtoReflect.Descriptor instead.

func (*StartClusterMetadata) GetClusterId

func (x *StartClusterMetadata) GetClusterId() string

func (*StartClusterMetadata) ProtoMessage

func (*StartClusterMetadata) ProtoMessage()

func (*StartClusterMetadata) ProtoReflect

func (x *StartClusterMetadata) ProtoReflect() protoreflect.Message

func (*StartClusterMetadata) Reset

func (x *StartClusterMetadata) Reset()

func (*StartClusterMetadata) SetClusterId

func (m *StartClusterMetadata) SetClusterId(v string)

func (*StartClusterMetadata) String

func (x *StartClusterMetadata) String() string

type StartClusterRequest

type StartClusterRequest struct {

	// ID of the MySQL cluster to start.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartClusterRequest) Descriptor deprecated

func (*StartClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartClusterRequest.ProtoReflect.Descriptor instead.

func (*StartClusterRequest) GetClusterId

func (x *StartClusterRequest) GetClusterId() string

func (*StartClusterRequest) ProtoMessage

func (*StartClusterRequest) ProtoMessage()

func (*StartClusterRequest) ProtoReflect

func (x *StartClusterRequest) ProtoReflect() protoreflect.Message

func (*StartClusterRequest) Reset

func (x *StartClusterRequest) Reset()

func (*StartClusterRequest) SetClusterId

func (m *StartClusterRequest) SetClusterId(v string)

func (*StartClusterRequest) String

func (x *StartClusterRequest) String() string

type StopClusterMetadata

type StopClusterMetadata struct {

	// ID of the MySQL cluster being stopped.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StopClusterMetadata) Descriptor deprecated

func (*StopClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use StopClusterMetadata.ProtoReflect.Descriptor instead.

func (*StopClusterMetadata) GetClusterId

func (x *StopClusterMetadata) GetClusterId() string

func (*StopClusterMetadata) ProtoMessage

func (*StopClusterMetadata) ProtoMessage()

func (*StopClusterMetadata) ProtoReflect

func (x *StopClusterMetadata) ProtoReflect() protoreflect.Message

func (*StopClusterMetadata) Reset

func (x *StopClusterMetadata) Reset()

func (*StopClusterMetadata) SetClusterId

func (m *StopClusterMetadata) SetClusterId(v string)

func (*StopClusterMetadata) String

func (x *StopClusterMetadata) String() string

type StopClusterRequest

type StopClusterRequest struct {

	// ID of the MySQL cluster to stop.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StopClusterRequest) Descriptor deprecated

func (*StopClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use StopClusterRequest.ProtoReflect.Descriptor instead.

func (*StopClusterRequest) GetClusterId

func (x *StopClusterRequest) GetClusterId() string

func (*StopClusterRequest) ProtoMessage

func (*StopClusterRequest) ProtoMessage()

func (*StopClusterRequest) ProtoReflect

func (x *StopClusterRequest) ProtoReflect() protoreflect.Message

func (*StopClusterRequest) Reset

func (x *StopClusterRequest) Reset()

func (*StopClusterRequest) SetClusterId

func (m *StopClusterRequest) SetClusterId(v string)

func (*StopClusterRequest) String

func (x *StopClusterRequest) String() string

type UnimplementedBackupServiceServer

type UnimplementedBackupServiceServer struct {
}

UnimplementedBackupServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedBackupServiceServer) Get

func (UnimplementedBackupServiceServer) List

type UnimplementedClusterServiceServer

type UnimplementedClusterServiceServer struct {
}

UnimplementedClusterServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedClusterServiceServer) AddHosts

func (UnimplementedClusterServiceServer) Backup

func (UnimplementedClusterServiceServer) Create

func (UnimplementedClusterServiceServer) Delete

func (UnimplementedClusterServiceServer) DeleteHosts

func (UnimplementedClusterServiceServer) Get

func (UnimplementedClusterServiceServer) List

func (UnimplementedClusterServiceServer) ListHosts

func (UnimplementedClusterServiceServer) ListLogs

func (UnimplementedClusterServiceServer) Restore

func (UnimplementedClusterServiceServer) Start

func (UnimplementedClusterServiceServer) Stop

func (UnimplementedClusterServiceServer) Update

type UnimplementedDatabaseServiceServer

type UnimplementedDatabaseServiceServer struct {
}

UnimplementedDatabaseServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedDatabaseServiceServer) Create

func (UnimplementedDatabaseServiceServer) Delete

func (UnimplementedDatabaseServiceServer) Get

func (UnimplementedDatabaseServiceServer) List

type UnimplementedResourcePresetServiceServer

type UnimplementedResourcePresetServiceServer struct {
}

UnimplementedResourcePresetServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedResourcePresetServiceServer) Get

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) Create

func (UnimplementedUserServiceServer) Delete

func (UnimplementedUserServiceServer) Get

func (UnimplementedUserServiceServer) GrantPermission

func (UnimplementedUserServiceServer) List

func (UnimplementedUserServiceServer) RevokePermission

func (UnimplementedUserServiceServer) Update

type UnsafeBackupServiceServer

type UnsafeBackupServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBackupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackupServiceServer will result in compilation errors.

type UnsafeClusterServiceServer

type UnsafeClusterServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeClusterServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClusterServiceServer will result in compilation errors.

type UnsafeDatabaseServiceServer

type UnsafeDatabaseServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDatabaseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DatabaseServiceServer will result in compilation errors.

type UnsafeResourcePresetServiceServer

type UnsafeResourcePresetServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeResourcePresetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourcePresetServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdateClusterHostsMetadata

type UpdateClusterHostsMetadata struct {

	// ID of the MySQL cluster to modify hosts in.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Names of hosts that are being modified.
	HostNames []string `protobuf:"bytes,2,rep,name=host_names,json=hostNames,proto3" json:"host_names,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateClusterHostsMetadata) Descriptor deprecated

func (*UpdateClusterHostsMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClusterHostsMetadata.ProtoReflect.Descriptor instead.

func (*UpdateClusterHostsMetadata) GetClusterId

func (x *UpdateClusterHostsMetadata) GetClusterId() string

func (*UpdateClusterHostsMetadata) GetHostNames

func (x *UpdateClusterHostsMetadata) GetHostNames() []string

func (*UpdateClusterHostsMetadata) ProtoMessage

func (*UpdateClusterHostsMetadata) ProtoMessage()

func (*UpdateClusterHostsMetadata) ProtoReflect

func (*UpdateClusterHostsMetadata) Reset

func (x *UpdateClusterHostsMetadata) Reset()

func (*UpdateClusterHostsMetadata) SetClusterId

func (m *UpdateClusterHostsMetadata) SetClusterId(v string)

func (*UpdateClusterHostsMetadata) SetHostNames

func (m *UpdateClusterHostsMetadata) SetHostNames(v []string)

func (*UpdateClusterHostsMetadata) String

func (x *UpdateClusterHostsMetadata) String() string

type UpdateClusterMetadata

type UpdateClusterMetadata struct {

	// ID of the MySQL cluster that is being modified.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateClusterMetadata) Descriptor deprecated

func (*UpdateClusterMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClusterMetadata.ProtoReflect.Descriptor instead.

func (*UpdateClusterMetadata) GetClusterId

func (x *UpdateClusterMetadata) GetClusterId() string

func (*UpdateClusterMetadata) ProtoMessage

func (*UpdateClusterMetadata) ProtoMessage()

func (*UpdateClusterMetadata) ProtoReflect

func (x *UpdateClusterMetadata) ProtoReflect() protoreflect.Message

func (*UpdateClusterMetadata) Reset

func (x *UpdateClusterMetadata) Reset()

func (*UpdateClusterMetadata) SetClusterId

func (m *UpdateClusterMetadata) SetClusterId(v string)

func (*UpdateClusterMetadata) String

func (x *UpdateClusterMetadata) String() string

type UpdateClusterRequest

type UpdateClusterRequest struct {

	// ID of the MySQL cluster to update.
	// To get the MySQL cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Field mask that specifies which settings of the MySQL cluster should be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// New description of the MySQL cluster.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the MySQL cluster as `key:value` pairs. Maximum 64 per resource.
	// For example, "project": "mvp" or "source": "dictionary".
	//
	// The new set of labels will completely replace the old ones. To add a label, request the current
	// set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// New configuration and resources for hosts in the cluster.
	ConfigSpec *ConfigSpec `protobuf:"bytes,5,opt,name=config_spec,json=configSpec,proto3" json:"config_spec,omitempty"`
	// New name for the cluster.
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateClusterRequest) Descriptor deprecated

func (*UpdateClusterRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClusterRequest.ProtoReflect.Descriptor instead.

func (*UpdateClusterRequest) GetClusterId

func (x *UpdateClusterRequest) GetClusterId() string

func (*UpdateClusterRequest) GetConfigSpec

func (x *UpdateClusterRequest) GetConfigSpec() *ConfigSpec

func (*UpdateClusterRequest) GetDescription

func (x *UpdateClusterRequest) GetDescription() string

func (*UpdateClusterRequest) GetLabels

func (x *UpdateClusterRequest) GetLabels() map[string]string

func (*UpdateClusterRequest) GetName

func (x *UpdateClusterRequest) GetName() string

func (*UpdateClusterRequest) GetUpdateMask

func (x *UpdateClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateClusterRequest) ProtoMessage

func (*UpdateClusterRequest) ProtoMessage()

func (*UpdateClusterRequest) ProtoReflect

func (x *UpdateClusterRequest) ProtoReflect() protoreflect.Message

func (*UpdateClusterRequest) Reset

func (x *UpdateClusterRequest) Reset()

func (*UpdateClusterRequest) SetClusterId

func (m *UpdateClusterRequest) SetClusterId(v string)

func (*UpdateClusterRequest) SetConfigSpec

func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec)

func (*UpdateClusterRequest) SetDescription

func (m *UpdateClusterRequest) SetDescription(v string)

func (*UpdateClusterRequest) SetLabels

func (m *UpdateClusterRequest) SetLabels(v map[string]string)

func (*UpdateClusterRequest) SetName

func (m *UpdateClusterRequest) SetName(v string)

func (*UpdateClusterRequest) SetUpdateMask

func (m *UpdateClusterRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)

func (*UpdateClusterRequest) String

func (x *UpdateClusterRequest) String() string

type UpdateUserMetadata

type UpdateUserMetadata struct {

	// ID of the MySQL cluster the user belongs to.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of a user that is being updated.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserMetadata) Descriptor deprecated

func (*UpdateUserMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserMetadata.ProtoReflect.Descriptor instead.

func (*UpdateUserMetadata) GetClusterId

func (x *UpdateUserMetadata) GetClusterId() string

func (*UpdateUserMetadata) GetUserName

func (x *UpdateUserMetadata) GetUserName() string

func (*UpdateUserMetadata) ProtoMessage

func (*UpdateUserMetadata) ProtoMessage()

func (*UpdateUserMetadata) ProtoReflect

func (x *UpdateUserMetadata) ProtoReflect() protoreflect.Message

func (*UpdateUserMetadata) Reset

func (x *UpdateUserMetadata) Reset()

func (*UpdateUserMetadata) SetClusterId

func (m *UpdateUserMetadata) SetClusterId(v string)

func (*UpdateUserMetadata) SetUserName

func (m *UpdateUserMetadata) SetUserName(v string)

func (*UpdateUserMetadata) String

func (x *UpdateUserMetadata) String() string

type UpdateUserRequest

type UpdateUserRequest struct {

	// ID of the MySQL cluster the user belongs to. To get the cluster ID, use a [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Name of the user to be updated. To get the name of the user, use a [UserService.List] request.
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// Field mask that specifies which settings of the MySQL user should be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// New password for the user.
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// New set of permissions for the user.
	Permissions []*Permission `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetClusterId

func (x *UpdateUserRequest) GetClusterId() string

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() string

func (*UpdateUserRequest) GetPermissions

func (x *UpdateUserRequest) GetPermissions() []*Permission

func (*UpdateUserRequest) GetUpdateMask

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) GetUserName

func (x *UpdateUserRequest) GetUserName() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) SetClusterId

func (m *UpdateUserRequest) SetClusterId(v string)

func (*UpdateUserRequest) SetPassword

func (m *UpdateUserRequest) SetPassword(v string)

func (*UpdateUserRequest) SetPermissions

func (m *UpdateUserRequest) SetPermissions(v []*Permission)

func (*UpdateUserRequest) SetUpdateMask

func (m *UpdateUserRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)

func (*UpdateUserRequest) SetUserName

func (m *UpdateUserRequest) SetUserName(v string)

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {

	// Name of the MySQL user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the MySQL cluster the user belongs to.
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Set of permissions granted to the user.
	Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

A MySQL user. For more information, see the [documentation](/docs/managed-mysql/concepts).

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetClusterId

func (x *User) GetClusterId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPermissions

func (x *User) GetPermissions() []*Permission

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) SetClusterId

func (m *User) SetClusterId(v string)

func (*User) SetName

func (m *User) SetName(v string)

func (*User) SetPermissions

func (m *User) SetPermissions(v []*Permission)

func (*User) String

func (x *User) String() string

type UserServiceClient

type UserServiceClient interface {
	// Returns the specified MySQL user.
	//
	// To get the list of available MySQL users, make a [List] request.
	Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// Retrieves a list of MySQL users in the specified cluster.
	List(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// Creates a MySQL user in the specified cluster.
	Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Modifies the specified MySQL user.
	Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified MySQL user.
	Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Grants a permission to the specified MySQL user.
	GrantPermission(ctx context.Context, in *GrantUserPermissionRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Revokes a permission from the specified MySQL user.
	RevokePermission(ctx context.Context, in *RevokeUserPermissionRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceServer

type UserServiceServer interface {
	// Returns the specified MySQL user.
	//
	// To get the list of available MySQL users, make a [List] request.
	Get(context.Context, *GetUserRequest) (*User, error)
	// Retrieves a list of MySQL users in the specified cluster.
	List(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// Creates a MySQL user in the specified cluster.
	Create(context.Context, *CreateUserRequest) (*operation.Operation, error)
	// Modifies the specified MySQL user.
	Update(context.Context, *UpdateUserRequest) (*operation.Operation, error)
	// Deletes the specified MySQL user.
	Delete(context.Context, *DeleteUserRequest) (*operation.Operation, error)
	// Grants a permission to the specified MySQL user.
	GrantPermission(context.Context, *GrantUserPermissionRequest) (*operation.Operation, error)
	// Revokes a permission from the specified MySQL user.
	RevokePermission(context.Context, *RevokeUserPermissionRequest) (*operation.Operation, error)
}

UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility

type UserSpec

type UserSpec struct {

	// Name of the MySQL user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Password of the MySQL user.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// Set of permissions to grant to the user.
	Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSpec) Descriptor deprecated

func (*UserSpec) Descriptor() ([]byte, []int)

Deprecated: Use UserSpec.ProtoReflect.Descriptor instead.

func (*UserSpec) GetName

func (x *UserSpec) GetName() string

func (*UserSpec) GetPassword

func (x *UserSpec) GetPassword() string

func (*UserSpec) GetPermissions

func (x *UserSpec) GetPermissions() []*Permission

func (*UserSpec) ProtoMessage

func (*UserSpec) ProtoMessage()

func (*UserSpec) ProtoReflect

func (x *UserSpec) ProtoReflect() protoreflect.Message

func (*UserSpec) Reset

func (x *UserSpec) Reset()

func (*UserSpec) SetName

func (m *UserSpec) SetName(v string)

func (*UserSpec) SetPassword

func (m *UserSpec) SetPassword(v string)

func (*UserSpec) SetPermissions

func (m *UserSpec) SetPermissions(v []*Permission)

func (*UserSpec) String

func (x *UserSpec) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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