@@ -33,13 +33,6 @@ type MySQLDatabase struct {
3333 // Members has dynamic keys so it is a map
3434 Members map [string ]DatabaseMemberType `json:"members"`
3535
36- // Deprecated: ReplicationType is a deprecated property, as it is no longer supported in DBaaS V2.
37- ReplicationType string `json:"replication_type"`
38- // Deprecated: SSLConnection is a deprecated property, as it is no longer supported in DBaaS V2.
39- SSLConnection bool `json:"ssl_connection"`
40- // Deprecated: Encrypted is a deprecated property, as it is no longer supported in DBaaS V2.
41- Encrypted bool `json:"encrypted"`
42-
4336 AllowList []string `json:"allow_list"`
4437 InstanceURI string `json:"instance_uri"`
4538 Created * time.Time `json:"-"`
@@ -83,13 +76,6 @@ type MySQLCreateOptions struct {
8376 AllowList []string `json:"allow_list,omitempty"`
8477 ClusterSize * int `json:"cluster_size,omitempty"`
8578
86- // Deprecated: ReplicationType is a deprecated property, as it is no longer supported in DBaaS V2.
87- ReplicationType * string `json:"replication_type,omitempty"`
88- // Deprecated: Encrypted is a deprecated property, as it is no longer supported in DBaaS V2.
89- Encrypted * bool `json:"encrypted,omitempty"`
90- // Deprecated: SSLConnection is a deprecated property, as it is no longer supported in DBaaS V2.
91- SSLConnection * bool `json:"ssl_connection,omitempty"`
92-
9379 Fork * DatabaseFork `json:"fork,omitempty"`
9480}
9581
@@ -103,42 +89,6 @@ type MySQLUpdateOptions struct {
10389 Version * string `json:"version,omitempty"`
10490}
10591
106- // MySQLDatabaseBackup is information for interacting with a backup for the existing MySQL Database
107- // Deprecated: MySQLDatabaseBackup is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
108- // In DBaaS V2, databases can be backed up via database forking.
109- type MySQLDatabaseBackup struct {
110- ID int `json:"id"`
111- Label string `json:"label"`
112- Type string `json:"type"`
113- Created * time.Time `json:"-"`
114- }
115-
116- // MySQLBackupCreateOptions are options used for CreateMySQLDatabaseBackup(...)
117- // Deprecated: MySQLBackupCreateOptions is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
118- // In DBaaS V2, databases can be backed up via database forking.
119- type MySQLBackupCreateOptions struct {
120- Label string `json:"label"`
121- Target MySQLDatabaseTarget `json:"target"`
122- }
123-
124- func (d * MySQLDatabaseBackup ) UnmarshalJSON (b []byte ) error {
125- type Mask MySQLDatabaseBackup
126-
127- p := struct {
128- * Mask
129- Created * parseabletime.ParseableTime `json:"created"`
130- }{
131- Mask : (* Mask )(d ),
132- }
133-
134- if err := json .Unmarshal (b , & p ); err != nil {
135- return err
136- }
137-
138- d .Created = (* time .Time )(p .Created )
139- return nil
140- }
141-
14292// MySQLDatabaseCredential is the Root Credentials to access the Linode Managed Database
14393type MySQLDatabaseCredential struct {
14494 Username string `json:"username"`
@@ -155,13 +105,6 @@ func (c *Client) ListMySQLDatabases(ctx context.Context, opts *ListOptions) ([]M
155105 return getPaginatedResults [MySQLDatabase ](ctx , c , "databases/mysql/instances" , opts )
156106}
157107
158- // ListMySQLDatabaseBackups lists all MySQL Database Backups associated with the given MySQL Database
159- // Deprecated: ListMySQLDatabaseBackups is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
160- // In DBaaS V2, databases can be backed up via database forking.
161- func (c * Client ) ListMySQLDatabaseBackups (ctx context.Context , databaseID int , opts * ListOptions ) ([]MySQLDatabaseBackup , error ) {
162- return getPaginatedResults [MySQLDatabaseBackup ](ctx , c , formatAPIPath ("databases/mysql/instances/%d/backups" , databaseID ), opts )
163- }
164-
165108// GetMySQLDatabase returns a single MySQL Database matching the id
166109func (c * Client ) GetMySQLDatabase (ctx context.Context , databaseID int ) (* MySQLDatabase , error ) {
167110 e := formatAPIPath ("databases/mysql/instances/%d" , databaseID )
@@ -203,30 +146,6 @@ func (c *Client) ResetMySQLDatabaseCredentials(ctx context.Context, databaseID i
203146 return doPOSTRequestNoRequestResponseBody (ctx , c , e )
204147}
205148
206- // GetMySQLDatabaseBackup returns a specific MySQL Database Backup with the given ids
207- // Deprecated: GetMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
208- // In DBaaS V2, databases can be backed up via database forking.
209- func (c * Client ) GetMySQLDatabaseBackup (ctx context.Context , databaseID int , backupID int ) (* MySQLDatabaseBackup , error ) {
210- e := formatAPIPath ("databases/mysql/instances/%d/backups/%d" , databaseID , backupID )
211- return doGETRequest [MySQLDatabaseBackup ](ctx , c , e )
212- }
213-
214- // RestoreMySQLDatabaseBackup returns the given MySQL Database with the given Backup
215- // Deprecated: RestoreMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
216- // In DBaaS V2, databases can be backed up via database forking.
217- func (c * Client ) RestoreMySQLDatabaseBackup (ctx context.Context , databaseID int , backupID int ) error {
218- e := formatAPIPath ("databases/mysql/instances/%d/backups/%d/restore" , databaseID , backupID )
219- return doPOSTRequestNoRequestResponseBody (ctx , c , e )
220- }
221-
222- // CreateMySQLDatabaseBackup creates a snapshot for the given MySQL database
223- // Deprecated: CreateMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
224- // In DBaaS V2, databases can be backed up via database forking.
225- func (c * Client ) CreateMySQLDatabaseBackup (ctx context.Context , databaseID int , opts MySQLBackupCreateOptions ) error {
226- e := formatAPIPath ("databases/mysql/instances/%d/backups" , databaseID )
227- return doPOSTRequestNoResponseBody (ctx , c , e , opts )
228- }
229-
230149// PatchMySQLDatabase applies security patches and updates to the underlying operating system of the Managed MySQL Database
231150func (c * Client ) PatchMySQLDatabase (ctx context.Context , databaseID int ) error {
232151 e := formatAPIPath ("databases/mysql/instances/%d/patch" , databaseID )
0 commit comments