1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package database aliases all exported identifiers in package 18 // "cloud.google.com/go/spanner/admin/database/apiv1/databasepb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package database 24 25 import ( 26 src "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 31 const ( 32 Backup_CREATING = src.Backup_CREATING 33 Backup_READY = src.Backup_READY 34 Backup_STATE_UNSPECIFIED = src.Backup_STATE_UNSPECIFIED 35 CopyBackupEncryptionConfig_CUSTOMER_MANAGED_ENCRYPTION = src.CopyBackupEncryptionConfig_CUSTOMER_MANAGED_ENCRYPTION 36 CopyBackupEncryptionConfig_ENCRYPTION_TYPE_UNSPECIFIED = src.CopyBackupEncryptionConfig_ENCRYPTION_TYPE_UNSPECIFIED 37 CopyBackupEncryptionConfig_GOOGLE_DEFAULT_ENCRYPTION = src.CopyBackupEncryptionConfig_GOOGLE_DEFAULT_ENCRYPTION 38 CopyBackupEncryptionConfig_USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = src.CopyBackupEncryptionConfig_USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION 39 CreateBackupEncryptionConfig_CUSTOMER_MANAGED_ENCRYPTION = src.CreateBackupEncryptionConfig_CUSTOMER_MANAGED_ENCRYPTION 40 CreateBackupEncryptionConfig_ENCRYPTION_TYPE_UNSPECIFIED = src.CreateBackupEncryptionConfig_ENCRYPTION_TYPE_UNSPECIFIED 41 CreateBackupEncryptionConfig_GOOGLE_DEFAULT_ENCRYPTION = src.CreateBackupEncryptionConfig_GOOGLE_DEFAULT_ENCRYPTION 42 CreateBackupEncryptionConfig_USE_DATABASE_ENCRYPTION = src.CreateBackupEncryptionConfig_USE_DATABASE_ENCRYPTION 43 DatabaseDialect_DATABASE_DIALECT_UNSPECIFIED = src.DatabaseDialect_DATABASE_DIALECT_UNSPECIFIED 44 DatabaseDialect_GOOGLE_STANDARD_SQL = src.DatabaseDialect_GOOGLE_STANDARD_SQL 45 DatabaseDialect_POSTGRESQL = src.DatabaseDialect_POSTGRESQL 46 Database_CREATING = src.Database_CREATING 47 Database_READY = src.Database_READY 48 Database_READY_OPTIMIZING = src.Database_READY_OPTIMIZING 49 Database_STATE_UNSPECIFIED = src.Database_STATE_UNSPECIFIED 50 EncryptionInfo_CUSTOMER_MANAGED_ENCRYPTION = src.EncryptionInfo_CUSTOMER_MANAGED_ENCRYPTION 51 EncryptionInfo_GOOGLE_DEFAULT_ENCRYPTION = src.EncryptionInfo_GOOGLE_DEFAULT_ENCRYPTION 52 EncryptionInfo_TYPE_UNSPECIFIED = src.EncryptionInfo_TYPE_UNSPECIFIED 53 RestoreDatabaseEncryptionConfig_CUSTOMER_MANAGED_ENCRYPTION = src.RestoreDatabaseEncryptionConfig_CUSTOMER_MANAGED_ENCRYPTION 54 RestoreDatabaseEncryptionConfig_ENCRYPTION_TYPE_UNSPECIFIED = src.RestoreDatabaseEncryptionConfig_ENCRYPTION_TYPE_UNSPECIFIED 55 RestoreDatabaseEncryptionConfig_GOOGLE_DEFAULT_ENCRYPTION = src.RestoreDatabaseEncryptionConfig_GOOGLE_DEFAULT_ENCRYPTION 56 RestoreDatabaseEncryptionConfig_USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = src.RestoreDatabaseEncryptionConfig_USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION 57 RestoreSourceType_BACKUP = src.RestoreSourceType_BACKUP 58 RestoreSourceType_TYPE_UNSPECIFIED = src.RestoreSourceType_TYPE_UNSPECIFIED 59 ) 60 61 // Deprecated: Please use vars in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 62 var ( 63 Backup_State_name = src.Backup_State_name 64 Backup_State_value = src.Backup_State_value 65 CopyBackupEncryptionConfig_EncryptionType_name = src.CopyBackupEncryptionConfig_EncryptionType_name 66 CopyBackupEncryptionConfig_EncryptionType_value = src.CopyBackupEncryptionConfig_EncryptionType_value 67 CreateBackupEncryptionConfig_EncryptionType_name = src.CreateBackupEncryptionConfig_EncryptionType_name 68 CreateBackupEncryptionConfig_EncryptionType_value = src.CreateBackupEncryptionConfig_EncryptionType_value 69 DatabaseDialect_name = src.DatabaseDialect_name 70 DatabaseDialect_value = src.DatabaseDialect_value 71 Database_State_name = src.Database_State_name 72 Database_State_value = src.Database_State_value 73 EncryptionInfo_Type_name = src.EncryptionInfo_Type_name 74 EncryptionInfo_Type_value = src.EncryptionInfo_Type_value 75 File_google_spanner_admin_database_v1_backup_proto = src.File_google_spanner_admin_database_v1_backup_proto 76 File_google_spanner_admin_database_v1_common_proto = src.File_google_spanner_admin_database_v1_common_proto 77 File_google_spanner_admin_database_v1_spanner_database_admin_proto = src.File_google_spanner_admin_database_v1_spanner_database_admin_proto 78 RestoreDatabaseEncryptionConfig_EncryptionType_name = src.RestoreDatabaseEncryptionConfig_EncryptionType_name 79 RestoreDatabaseEncryptionConfig_EncryptionType_value = src.RestoreDatabaseEncryptionConfig_EncryptionType_value 80 RestoreSourceType_name = src.RestoreSourceType_name 81 RestoreSourceType_value = src.RestoreSourceType_value 82 ) 83 84 // A backup of a Cloud Spanner database. 85 // 86 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 87 type Backup = src.Backup 88 89 // Information about a backup. 90 // 91 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 92 type BackupInfo = src.BackupInfo 93 94 // Indicates the current state of the backup. 95 // 96 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 97 type Backup_State = src.Backup_State 98 99 // Encryption configuration for the copied backup. 100 // 101 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 102 type CopyBackupEncryptionConfig = src.CopyBackupEncryptionConfig 103 104 // Encryption types for the backup. 105 // 106 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 107 type CopyBackupEncryptionConfig_EncryptionType = src.CopyBackupEncryptionConfig_EncryptionType 108 109 // Metadata type for the google.longrunning.Operation returned by 110 // [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]. 111 // 112 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 113 type CopyBackupMetadata = src.CopyBackupMetadata 114 115 // The request for 116 // [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]. 117 // 118 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 119 type CopyBackupRequest = src.CopyBackupRequest 120 121 // Encryption configuration for the backup to create. 122 // 123 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 124 type CreateBackupEncryptionConfig = src.CreateBackupEncryptionConfig 125 126 // Encryption types for the backup. 127 // 128 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 129 type CreateBackupEncryptionConfig_EncryptionType = src.CreateBackupEncryptionConfig_EncryptionType 130 131 // Metadata type for the operation returned by 132 // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. 133 // 134 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 135 type CreateBackupMetadata = src.CreateBackupMetadata 136 137 // The request for 138 // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. 139 // 140 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 141 type CreateBackupRequest = src.CreateBackupRequest 142 143 // Metadata type for the operation returned by 144 // [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. 145 // 146 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 147 type CreateDatabaseMetadata = src.CreateDatabaseMetadata 148 149 // The request for 150 // [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. 151 // 152 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 153 type CreateDatabaseRequest = src.CreateDatabaseRequest 154 155 // A Cloud Spanner database. 156 // 157 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 158 type Database = src.Database 159 160 // DatabaseAdminClient is the client API for DatabaseAdmin service. For 161 // semantics around ctx use and closing/ending streaming RPCs, please refer to 162 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 163 // 164 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 165 type DatabaseAdminClient = src.DatabaseAdminClient 166 167 // DatabaseAdminServer is the server API for DatabaseAdmin service. 168 // 169 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 170 type DatabaseAdminServer = src.DatabaseAdminServer 171 172 // Indicates the dialect type of a database. 173 // 174 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 175 type DatabaseDialect = src.DatabaseDialect 176 177 // A Cloud Spanner database role. 178 // 179 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 180 type DatabaseRole = src.DatabaseRole 181 182 // Indicates the current state of the database. 183 // 184 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 185 type Database_State = src.Database_State 186 187 // The request for 188 // [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup]. 189 // 190 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 191 type DeleteBackupRequest = src.DeleteBackupRequest 192 193 // The request for 194 // [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. 195 // 196 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 197 type DropDatabaseRequest = src.DropDatabaseRequest 198 199 // Encryption configuration for a Cloud Spanner database. 200 // 201 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 202 type EncryptionConfig = src.EncryptionConfig 203 204 // Encryption information for a Cloud Spanner database or backup. 205 // 206 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 207 type EncryptionInfo = src.EncryptionInfo 208 209 // Possible encryption types. 210 // 211 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 212 type EncryptionInfo_Type = src.EncryptionInfo_Type 213 214 // The request for 215 // [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup]. 216 // 217 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 218 type GetBackupRequest = src.GetBackupRequest 219 220 // The request for 221 // [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. 222 // 223 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 224 type GetDatabaseDdlRequest = src.GetDatabaseDdlRequest 225 226 // The response for 227 // [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. 228 // 229 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 230 type GetDatabaseDdlResponse = src.GetDatabaseDdlResponse 231 232 // The request for 233 // [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. 234 // 235 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 236 type GetDatabaseRequest = src.GetDatabaseRequest 237 238 // The request for 239 // [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations]. 240 // 241 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 242 type ListBackupOperationsRequest = src.ListBackupOperationsRequest 243 244 // The response for 245 // [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations]. 246 // 247 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 248 type ListBackupOperationsResponse = src.ListBackupOperationsResponse 249 250 // The request for 251 // [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. 252 // 253 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 254 type ListBackupsRequest = src.ListBackupsRequest 255 256 // The response for 257 // [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. 258 // 259 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 260 type ListBackupsResponse = src.ListBackupsResponse 261 262 // The request for 263 // [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations]. 264 // 265 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 266 type ListDatabaseOperationsRequest = src.ListDatabaseOperationsRequest 267 268 // The response for 269 // [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations]. 270 // 271 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 272 type ListDatabaseOperationsResponse = src.ListDatabaseOperationsResponse 273 274 // The request for 275 // [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles]. 276 // 277 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 278 type ListDatabaseRolesRequest = src.ListDatabaseRolesRequest 279 280 // The response for 281 // [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles]. 282 // 283 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 284 type ListDatabaseRolesResponse = src.ListDatabaseRolesResponse 285 286 // The request for 287 // [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. 288 // 289 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 290 type ListDatabasesRequest = src.ListDatabasesRequest 291 292 // The response for 293 // [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. 294 // 295 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 296 type ListDatabasesResponse = src.ListDatabasesResponse 297 298 // Encapsulates progress related information for a Cloud Spanner long running 299 // operation. 300 // 301 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 302 type OperationProgress = src.OperationProgress 303 304 // Metadata type for the long-running operation used to track the progress of 305 // optimizations performed on a newly restored database. This long-running 306 // operation is automatically created by the system after the successful 307 // completion of a database restore, and cannot be cancelled. 308 // 309 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 310 type OptimizeRestoredDatabaseMetadata = src.OptimizeRestoredDatabaseMetadata 311 312 // Encryption configuration for the restored database. 313 // 314 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 315 type RestoreDatabaseEncryptionConfig = src.RestoreDatabaseEncryptionConfig 316 317 // Encryption types for the database to be restored. 318 // 319 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 320 type RestoreDatabaseEncryptionConfig_EncryptionType = src.RestoreDatabaseEncryptionConfig_EncryptionType 321 322 // Metadata type for the long-running operation returned by 323 // [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. 324 // 325 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 326 type RestoreDatabaseMetadata = src.RestoreDatabaseMetadata 327 type RestoreDatabaseMetadata_BackupInfo = src.RestoreDatabaseMetadata_BackupInfo 328 329 // The request for 330 // [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. 331 // 332 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 333 type RestoreDatabaseRequest = src.RestoreDatabaseRequest 334 type RestoreDatabaseRequest_Backup = src.RestoreDatabaseRequest_Backup 335 336 // Information about the database restore. 337 // 338 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 339 type RestoreInfo = src.RestoreInfo 340 type RestoreInfo_BackupInfo = src.RestoreInfo_BackupInfo 341 342 // Indicates the type of the restore source. 343 // 344 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 345 type RestoreSourceType = src.RestoreSourceType 346 347 // UnimplementedDatabaseAdminServer can be embedded to have forward compatible 348 // implementations. 349 // 350 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 351 type UnimplementedDatabaseAdminServer = src.UnimplementedDatabaseAdminServer 352 353 // The request for 354 // [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]. 355 // 356 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 357 type UpdateBackupRequest = src.UpdateBackupRequest 358 359 // Metadata type for the operation returned by 360 // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. 361 // 362 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 363 type UpdateDatabaseDdlMetadata = src.UpdateDatabaseDdlMetadata 364 365 // Enqueues the given DDL statements to be applied, in order but not 366 // necessarily all at once, to the database schema at some point (or points) in 367 // the future. The server checks that the statements are executable 368 // (syntactically valid, name tables that exist, etc.) before enqueueing them, 369 // but they may still fail upon later execution (e.g., if a statement from 370 // another batch of statements is applied first and it conflicts in some way, 371 // or if there is some data-related problem like a `NULL` value in a column to 372 // which `NOT NULL` would be added). If a statement fails, all subsequent 373 // statements in the batch are automatically cancelled. Each batch of 374 // statements is assigned a name which can be used with the 375 // [Operations][google.longrunning.Operations] API to monitor progress. See the 376 // [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id] 377 // field for more details. 378 // 379 // Deprecated: Please use types in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 380 type UpdateDatabaseDdlRequest = src.UpdateDatabaseDdlRequest 381 382 // Deprecated: Please use funcs in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 383 func NewDatabaseAdminClient(cc grpc.ClientConnInterface) DatabaseAdminClient { 384 return src.NewDatabaseAdminClient(cc) 385 } 386 387 // Deprecated: Please use funcs in: cloud.google.com/go/spanner/admin/database/apiv1/databasepb 388 func RegisterDatabaseAdminServer(s *grpc.Server, srv DatabaseAdminServer) { 389 src.RegisterDatabaseAdminServer(s, srv) 390 } 391