From 118d58f09b1bbbabc3a8a3a2a211e517adec825b Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 9 Nov 2020 03:00:53 +0000 Subject: [PATCH] Generated from fb066395f93026ab5f860bda502d97cc7a8ef101 remove require for nic --- .../datamigration/models.go | 306 ++++++++++-------- 1 file changed, 179 insertions(+), 127 deletions(-) diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go index 99aa696f8966..0eccab594048 100644 --- a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/models.go @@ -1360,7 +1360,8 @@ type ConnectToSourceOracleSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// ConnectToSourceOracleSyncTaskProperties properties for the task that validates Oracle database connection +// ConnectToSourceOracleSyncTaskProperties properties for the task that validates Oracle database +// connection type ConnectToSourceOracleSyncTaskProperties struct { // Input - Task input Input *ConnectToSourceOracleSyncTaskInput `json:"input,omitempty"` @@ -1661,8 +1662,8 @@ func (ctsostp *ConnectToSourceOracleSyncTaskProperties) UnmarshalJSON(body []byt return nil } -// ConnectToSourcePostgreSQLSyncTaskInput input for the task that validates connection to PostgreSQL and source -// server requirements +// ConnectToSourcePostgreSQLSyncTaskInput input for the task that validates connection to PostgreSQL and +// source server requirements type ConnectToSourcePostgreSQLSyncTaskInput struct { // SourceConnectionInfo - Connection information for source PostgreSQL server SourceConnectionInfo *PostgreSQLConnectionInfo `json:"sourceConnectionInfo,omitempty"` @@ -1683,8 +1684,8 @@ type ConnectToSourcePostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// ConnectToSourcePostgreSQLSyncTaskProperties properties for the task that validates connection to PostgreSQL -// server and source server requirements for online migration +// ConnectToSourcePostgreSQLSyncTaskProperties properties for the task that validates connection to +// PostgreSQL server and source server requirements for online migration type ConnectToSourcePostgreSQLSyncTaskProperties struct { // Input - Task input Input *ConnectToSourcePostgreSQLSyncTaskInput `json:"input,omitempty"` @@ -1985,8 +1986,8 @@ func (ctspsstp *ConnectToSourcePostgreSQLSyncTaskProperties) UnmarshalJSON(body return nil } -// ConnectToSourceSQLServerSyncTaskProperties properties for the task that validates connection to SQL Server -// and source server requirements for online migration +// ConnectToSourceSQLServerSyncTaskProperties properties for the task that validates connection to SQL +// Server and source server requirements for online migration type ConnectToSourceSQLServerSyncTaskProperties struct { // Input - Task input Input *ConnectToSourceSQLServerTaskInput `json:"input,omitempty"` @@ -2476,8 +2477,8 @@ func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsBasicConnect return &ctssstoajl, true } -// ConnectToSourceSQLServerTaskOutputDatabaseLevel database level output for the task that validates connection -// to SQL Server and also validates source server requirements +// ConnectToSourceSQLServerTaskOutputDatabaseLevel database level output for the task that validates +// connection to SQL Server and also validates source server requirements type ConnectToSourceSQLServerTaskOutputDatabaseLevel struct { // Name - READ-ONLY; Database name Name *string `json:"name,omitempty"` @@ -2535,8 +2536,8 @@ func (ctssstodl ConnectToSourceSQLServerTaskOutputDatabaseLevel) AsBasicConnectT return &ctssstodl, true } -// ConnectToSourceSQLServerTaskOutputLoginLevel login level output for the task that validates connection to -// SQL Server and also validates source server requirements +// ConnectToSourceSQLServerTaskOutputLoginLevel login level output for the task that validates connection +// to SQL Server and also validates source server requirements type ConnectToSourceSQLServerTaskOutputLoginLevel struct { // Name - READ-ONLY; Login name. Name *string `json:"name,omitempty"` @@ -2594,8 +2595,8 @@ func (ctssstoll ConnectToSourceSQLServerTaskOutputLoginLevel) AsBasicConnectToSo return &ctssstoll, true } -// ConnectToSourceSQLServerTaskOutputTaskLevel task level output for the task that validates connection to SQL -// Server and also validates source server requirements +// ConnectToSourceSQLServerTaskOutputTaskLevel task level output for the task that validates connection to +// SQL Server and also validates source server requirements type ConnectToSourceSQLServerTaskOutputTaskLevel struct { // Databases - READ-ONLY; Source databases as a map from database name to database id Databases map[string]*string `json:"databases"` @@ -2657,8 +2658,8 @@ func (ctssstotl ConnectToSourceSQLServerTaskOutputTaskLevel) AsBasicConnectToSou return &ctssstotl, true } -// ConnectToSourceSQLServerTaskProperties properties for the task that validates connection to SQL Server and -// also validates source server requirements +// ConnectToSourceSQLServerTaskProperties properties for the task that validates connection to SQL Server +// and also validates source server requirements type ConnectToSourceSQLServerTaskProperties struct { // Input - Task input Input *ConnectToSourceSQLServerTaskInput `json:"input,omitempty"` @@ -2958,8 +2959,8 @@ func (ctssstp *ConnectToSourceSQLServerTaskProperties) UnmarshalJSON(body []byte return nil } -// ConnectToTargetAzureDbForMySQLTaskInput input for the task that validates connection to Azure Database for -// MySQL and target server requirements +// ConnectToTargetAzureDbForMySQLTaskInput input for the task that validates connection to Azure Database +// for MySQL and target server requirements type ConnectToTargetAzureDbForMySQLTaskInput struct { // SourceConnectionInfo - Connection information for source MySQL server SourceConnectionInfo *MySQLConnectionInfo `json:"sourceConnectionInfo,omitempty"` @@ -2967,8 +2968,8 @@ type ConnectToTargetAzureDbForMySQLTaskInput struct { TargetConnectionInfo *MySQLConnectionInfo `json:"targetConnectionInfo,omitempty"` } -// ConnectToTargetAzureDbForMySQLTaskOutput output for the task that validates connection to Azure Database for -// MySQL and target server requirements +// ConnectToTargetAzureDbForMySQLTaskOutput output for the task that validates connection to Azure Database +// for MySQL and target server requirements type ConnectToTargetAzureDbForMySQLTaskOutput struct { // ID - READ-ONLY; Result identifier ID *string `json:"id,omitempty"` @@ -3308,8 +3309,8 @@ type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates connection to -// Azure Database For PostgreSQL server and target server requirements for online migration +// ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates connection +// to Azure Database For PostgreSQL server and target server requirements for online migration type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties struct { // Input - Task input Input *ConnectToTargetAzureDbForPostgreSQLSyncTaskInput `json:"input,omitempty"` @@ -3610,8 +3611,8 @@ func (cttadfpsstp *ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties) Unmars return nil } -// ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput input for the task that validates connection to Azure -// Database for PostgreSQL and target server requirements for Oracle source. +// ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput input for the task that validates connection to +// Azure Database for PostgreSQL and target server requirements for Oracle source. type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput struct { // TargetConnectionInfo - Connection information for target Azure Database for PostgreSQL server TargetConnectionInfo *PostgreSQLConnectionInfo `json:"targetConnectionInfo,omitempty"` @@ -3648,8 +3649,8 @@ type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapIte } // ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates -// connection to Azure Database For PostgreSQL server and target server requirements for online migration for -// Oracle source. +// connection to Azure Database For PostgreSQL server and target server requirements for online migration +// for Oracle source. type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties struct { // Input - Task input Input *ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput `json:"input,omitempty"` @@ -3976,8 +3977,8 @@ func (cttsdto ConnectToTargetSQLDbTaskOutput) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ConnectToTargetSQLDbTaskProperties properties for the task that validates connection to SQL DB and target -// server requirements +// ConnectToTargetSQLDbTaskProperties properties for the task that validates connection to SQL DB and +// target server requirements type ConnectToTargetSQLDbTaskProperties struct { // Input - Task input Input *ConnectToTargetSQLDbTaskInput `json:"input,omitempty"` @@ -4278,8 +4279,8 @@ func (cttsdtp *ConnectToTargetSQLDbTaskProperties) UnmarshalJSON(body []byte) er return nil } -// ConnectToTargetSQLMISyncTaskInput input for the task that validates connection to Azure SQL Database Managed -// Instance online scenario. +// ConnectToTargetSQLMISyncTaskInput input for the task that validates connection to Azure SQL Database +// Managed Instance online scenario. type ConnectToTargetSQLMISyncTaskInput struct { // TargetConnectionInfo - Connection information for Azure SQL Database Managed Instance TargetConnectionInfo *MiSQLConnectionInfo `json:"targetConnectionInfo,omitempty"` @@ -4613,8 +4614,8 @@ type ConnectToTargetSQLMITaskInput struct { ValidateSsisCatalogOnly *bool `json:"validateSsisCatalogOnly,omitempty"` } -// ConnectToTargetSQLMITaskOutput output for the task that validates connection to Azure SQL Database Managed -// Instance. +// ConnectToTargetSQLMITaskOutput output for the task that validates connection to Azure SQL Database +// Managed Instance. type ConnectToTargetSQLMITaskOutput struct { // ID - READ-ONLY; Result identifier ID *string `json:"id,omitempty"` @@ -4630,8 +4631,8 @@ type ConnectToTargetSQLMITaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// ConnectToTargetSQLMITaskProperties properties for the task that validates connection to Azure SQL Database -// Managed Instance +// ConnectToTargetSQLMITaskProperties properties for the task that validates connection to Azure SQL +// Database Managed Instance type ConnectToTargetSQLMITaskProperties struct { // Input - Task input Input *ConnectToTargetSQLMITaskInput `json:"input,omitempty"` @@ -4932,8 +4933,8 @@ func (cttsmtp *ConnectToTargetSQLMITaskProperties) UnmarshalJSON(body []byte) er return nil } -// ConnectToTargetSQLSQLDbSyncTaskInput input for the task that validates connection to Azure SQL DB and target -// server requirements +// ConnectToTargetSQLSQLDbSyncTaskInput input for the task that validates connection to Azure SQL DB and +// target server requirements type ConnectToTargetSQLSQLDbSyncTaskInput struct { // SourceConnectionInfo - Connection information for source SQL Server SourceConnectionInfo *SQLConnectionInfo `json:"sourceConnectionInfo,omitempty"` @@ -4941,8 +4942,8 @@ type ConnectToTargetSQLSQLDbSyncTaskInput struct { TargetConnectionInfo *SQLConnectionInfo `json:"targetConnectionInfo,omitempty"` } -// ConnectToTargetSQLSQLDbSyncTaskProperties properties for the task that validates connection to SQL DB and -// target server requirements for online migration +// ConnectToTargetSQLSQLDbSyncTaskProperties properties for the task that validates connection to SQL DB +// and target server requirements for online migration type ConnectToTargetSQLSQLDbSyncTaskProperties struct { // Input - Task input Input *ConnectToTargetSQLSQLDbSyncTaskInput `json:"input,omitempty"` @@ -5643,8 +5644,11 @@ func (page FileListPage) Values() []ProjectFile { } // Creates a new instance of the FileListPage type. -func NewFileListPage(getNextPage func(context.Context, FileList) (FileList, error)) FileListPage { - return FileListPage{fn: getNextPage} +func NewFileListPage(cur FileList, getNextPage func(context.Context, FileList) (FileList, error)) FileListPage { + return FileListPage{ + fn: getNextPage, + fl: cur, + } } // FileShare file share information with Path, Username, and Password. @@ -6020,8 +6024,8 @@ type GetUserTablesOracleTaskInput struct { SelectedSchemas *[]string `json:"selectedSchemas,omitempty"` } -// GetUserTablesOracleTaskOutput output for the task that gets the list of tables contained within a provided -// list of Oracle schemas. +// GetUserTablesOracleTaskOutput output for the task that gets the list of tables contained within a +// provided list of Oracle schemas. type GetUserTablesOracleTaskOutput struct { // SchemaName - READ-ONLY; The schema this result is for SchemaName *string `json:"schemaName,omitempty"` @@ -6031,8 +6035,8 @@ type GetUserTablesOracleTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// GetUserTablesOracleTaskProperties properties for the task that collects user tables for the given list of -// Oracle schemas +// GetUserTablesOracleTaskProperties properties for the task that collects user tables for the given list +// of Oracle schemas type GetUserTablesOracleTaskProperties struct { // Input - Task input Input *GetUserTablesOracleTaskInput `json:"input,omitempty"` @@ -6342,8 +6346,8 @@ type GetUserTablesPostgreSQLTaskInput struct { SelectedDatabases *[]string `json:"selectedDatabases,omitempty"` } -// GetUserTablesPostgreSQLTaskOutput output for the task that gets the list of tables for a provided list of -// PostgreSQL databases. +// GetUserTablesPostgreSQLTaskOutput output for the task that gets the list of tables for a provided list +// of PostgreSQL databases. type GetUserTablesPostgreSQLTaskOutput struct { // DatabaseName - READ-ONLY; The database this result is for DatabaseName *string `json:"databaseName,omitempty"` @@ -6353,8 +6357,8 @@ type GetUserTablesPostgreSQLTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// GetUserTablesPostgreSQLTaskProperties properties for the task that collects user tables for the given list -// of databases +// GetUserTablesPostgreSQLTaskProperties properties for the task that collects user tables for the given +// list of databases type GetUserTablesPostgreSQLTaskProperties struct { // Input - Task input Input *GetUserTablesPostgreSQLTaskInput `json:"input,omitempty"` @@ -6655,7 +6659,8 @@ func (gutpstp *GetUserTablesPostgreSQLTaskProperties) UnmarshalJSON(body []byte) return nil } -// GetUserTablesSQLSyncTaskInput input for the task that collects user tables for the given list of databases +// GetUserTablesSQLSyncTaskInput input for the task that collects user tables for the given list of +// databases type GetUserTablesSQLSyncTaskInput struct { // SourceConnectionInfo - Connection information for SQL Server SourceConnectionInfo *SQLConnectionInfo `json:"sourceConnectionInfo,omitempty"` @@ -6667,7 +6672,8 @@ type GetUserTablesSQLSyncTaskInput struct { SelectedTargetDatabases *[]string `json:"selectedTargetDatabases,omitempty"` } -// GetUserTablesSQLSyncTaskOutput output of the task that collects user tables for the given list of databases +// GetUserTablesSQLSyncTaskOutput output of the task that collects user tables for the given list of +// databases type GetUserTablesSQLSyncTaskOutput struct { // DatabasesToSourceTables - READ-ONLY; Mapping from database name to list of source tables DatabasesToSourceTables map[string][]DatabaseTable `json:"databasesToSourceTables"` @@ -6685,8 +6691,8 @@ func (gutssto GetUserTablesSQLSyncTaskOutput) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GetUserTablesSQLSyncTaskProperties properties for the task that collects user tables for the given list of -// databases +// GetUserTablesSQLSyncTaskProperties properties for the task that collects user tables for the given list +// of databases type GetUserTablesSQLSyncTaskProperties struct { // Input - Task input Input *GetUserTablesSQLSyncTaskInput `json:"input,omitempty"` @@ -8001,8 +8007,8 @@ func (mmdtp *MigrateMongoDbTaskProperties) UnmarshalJSON(body []byte) error { return nil } -// MigrateMySQLAzureDbForMySQLSyncDatabaseInput database specific information for MySQL to Azure Database for -// MySQL migration task inputs +// MigrateMySQLAzureDbForMySQLSyncDatabaseInput database specific information for MySQL to Azure Database +// for MySQL migration task inputs type MigrateMySQLAzureDbForMySQLSyncDatabaseInput struct { // Name - Name of the database Name *string `json:"name,omitempty"` @@ -8014,6 +8020,8 @@ type MigrateMySQLAzureDbForMySQLSyncDatabaseInput struct { SourceSetting map[string]*string `json:"sourceSetting"` // TargetSetting - Target settings to tune target endpoint migration behavior TargetSetting map[string]*string `json:"targetSetting"` + // TableMap - Mapping of source to target tables + TableMap map[string]*string `json:"tableMap"` } // MarshalJSON is the custom marshaler for MigrateMySQLAzureDbForMySQLSyncDatabaseInput. @@ -8034,11 +8042,14 @@ func (mmsadfmssdi MigrateMySQLAzureDbForMySQLSyncDatabaseInput) MarshalJSON() ([ if mmsadfmssdi.TargetSetting != nil { objectMap["targetSetting"] = mmsadfmssdi.TargetSetting } + if mmsadfmssdi.TableMap != nil { + objectMap["tableMap"] = mmsadfmssdi.TableMap + } return json.Marshal(objectMap) } -// MigrateMySQLAzureDbForMySQLSyncTaskInput input for the task that migrates MySQL databases to Azure Database -// for MySQL for online migrations +// MigrateMySQLAzureDbForMySQLSyncTaskInput input for the task that migrates MySQL databases to Azure +// Database for MySQL for online migrations type MigrateMySQLAzureDbForMySQLSyncTaskInput struct { // SourceConnectionInfo - Connection information for source MySQL SourceConnectionInfo *MySQLConnectionInfo `json:"sourceConnectionInfo,omitempty"` @@ -8511,8 +8522,8 @@ func (mmsadfmsstotl MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel) AsBasic return &mmsadfmsstotl, true } -// MigrateMySQLAzureDbForMySQLSyncTaskProperties properties for the task that migrates MySQL databases to Azure -// Database for MySQL for online migrations +// MigrateMySQLAzureDbForMySQLSyncTaskProperties properties for the task that migrates MySQL databases to +// Azure Database for MySQL for online migrations type MigrateMySQLAzureDbForMySQLSyncTaskProperties struct { // Input - Task input Input *MigrateMySQLAzureDbForMySQLSyncTaskInput `json:"input,omitempty"` @@ -8812,8 +8823,8 @@ func (mmsadfmsstp *MigrateMySQLAzureDbForMySQLSyncTaskProperties) UnmarshalJSON( return nil } -// MigrateOracleAzureDbForPostgreSQLSyncTaskProperties properties for the task that migrates Oracle to Azure -// Database for PostgreSQL for online migrations +// MigrateOracleAzureDbForPostgreSQLSyncTaskProperties properties for the task that migrates Oracle to +// Azure Database for PostgreSQL for online migrations type MigrateOracleAzureDbForPostgreSQLSyncTaskProperties struct { // Input - Task input Input *MigrateOracleAzureDbPostgreSQLSyncTaskInput `json:"input,omitempty"` @@ -9113,8 +9124,8 @@ func (moadfpsstp *MigrateOracleAzureDbForPostgreSQLSyncTaskProperties) Unmarshal return nil } -// MigrateOracleAzureDbPostgreSQLSyncDatabaseInput database specific information for Oracle to Azure Database -// for PostgreSQL migration task inputs +// MigrateOracleAzureDbPostgreSQLSyncDatabaseInput database specific information for Oracle to Azure +// Database for PostgreSQL migration task inputs type MigrateOracleAzureDbPostgreSQLSyncDatabaseInput struct { // CaseManipulation - How to handle object name casing: either Preserve or ToLower CaseManipulation *string `json:"caseManipulation,omitempty"` @@ -9638,8 +9649,8 @@ func (moadpsstotl MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel) AsBasi return &moadpsstotl, true } -// MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput database specific information for PostgreSQL to Azure -// Database for PostgreSQL migration task inputs +// MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput database specific information for PostgreSQL to +// Azure Database for PostgreSQL migration task inputs type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput struct { // Name - Name of the database Name *string `json:"name,omitempty"` @@ -9651,6 +9662,8 @@ type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput struct { SourceSetting map[string]*string `json:"sourceSetting"` // TargetSetting - Target settings to tune target endpoint migration behavior TargetSetting map[string]*string `json:"targetSetting"` + // SelectedTables - Tables selected for migration + SelectedTables *[]MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput `json:"selectedTables,omitempty"` } // MarshalJSON is the custom marshaler for MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput. @@ -9671,11 +9684,20 @@ func (mpsadfpssdi MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput) Marsha if mpsadfpssdi.TargetSetting != nil { objectMap["targetSetting"] = mpsadfpssdi.TargetSetting } + if mpsadfpssdi.SelectedTables != nil { + objectMap["selectedTables"] = mpsadfpssdi.SelectedTables + } return json.Marshal(objectMap) } -// MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput input for the task that migrates PostgreSQL databases to -// Azure Database for PostgreSQL for online migrations +// MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput selected tables for the migration +type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput struct { + // Name - Name of the table to migrate + Name *string `json:"name,omitempty"` +} + +// MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput input for the task that migrates PostgreSQL databases +// to Azure Database for PostgreSQL for online migrations type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput `json:"selectedDatabases,omitempty"` @@ -10455,8 +10477,8 @@ func (mpsadfpsstp *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties) Unma return nil } -// MigrateSchemaSQLServerSQLDbDatabaseInput database input for migrate schema Sql Server to Azure SQL Server -// scenario +// MigrateSchemaSQLServerSQLDbDatabaseInput database input for migrate schema Sql Server to Azure SQL +// Server scenario type MigrateSchemaSQLServerSQLDbDatabaseInput struct { // Name - Name of source database Name *string `json:"name,omitempty"` @@ -10466,8 +10488,8 @@ type MigrateSchemaSQLServerSQLDbDatabaseInput struct { SchemaSetting *SchemaMigrationSetting `json:"schemaSetting,omitempty"` } -// MigrateSchemaSQLServerSQLDbTaskInput input for task that migrates Schema for SQL Server databases to Azure -// SQL databases +// MigrateSchemaSQLServerSQLDbTaskInput input for task that migrates Schema for SQL Server databases to +// Azure SQL databases type MigrateSchemaSQLServerSQLDbTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigrateSchemaSQLServerSQLDbDatabaseInput `json:"selectedDatabases,omitempty"` @@ -10767,8 +10789,8 @@ func (mssssdtoml MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel) AsBasicMig return &mssssdtoml, true } -// MigrateSchemaSQLServerSQLDbTaskProperties properties for task that migrates Schema for SQL Server databases -// to Azure SQL databases +// MigrateSchemaSQLServerSQLDbTaskProperties properties for task that migrates Schema for SQL Server +// databases to Azure SQL databases type MigrateSchemaSQLServerSQLDbTaskProperties struct { // Input - Task input Input *MigrateSchemaSQLServerSQLDbTaskInput `json:"input,omitempty"` @@ -11149,8 +11171,8 @@ func (msssddi MigrateSQLServerSQLDbDatabaseInput) MarshalJSON() ([]byte, error) return json.Marshal(objectMap) } -// MigrateSQLServerSQLDbSyncDatabaseInput database specific information for SQL to Azure SQL DB sync migration -// task inputs +// MigrateSQLServerSQLDbSyncDatabaseInput database specific information for SQL to Azure SQL DB sync +// migration task inputs type MigrateSQLServerSQLDbSyncDatabaseInput struct { // ID - Unique identifier for database ID *string `json:"id,omitempty"` @@ -11200,8 +11222,8 @@ func (msssdsdi MigrateSQLServerSQLDbSyncDatabaseInput) MarshalJSON() ([]byte, er return json.Marshal(objectMap) } -// MigrateSQLServerSQLDbSyncTaskInput input for the task that migrates on-prem SQL Server databases to Azure -// SQL Database for online migrations +// MigrateSQLServerSQLDbSyncTaskInput input for the task that migrates on-prem SQL Server databases to +// Azure SQL Database for online migrations type MigrateSQLServerSQLDbSyncTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigrateSQLServerSQLDbSyncDatabaseInput `json:"selectedDatabases,omitempty"` @@ -11678,8 +11700,8 @@ func (msssdstotl MigrateSQLServerSQLDbSyncTaskOutputTableLevel) AsBasicMigrateSQ return &msssdstotl, true } -// MigrateSQLServerSQLDbSyncTaskProperties properties for the task that migrates on-prem SQL Server databases -// to Azure SQL Database for online migrations +// MigrateSQLServerSQLDbSyncTaskProperties properties for the task that migrates on-prem SQL Server +// databases to Azure SQL Database for online migrations type MigrateSQLServerSQLDbSyncTaskProperties struct { // Input - Task input Input *MigrateSQLServerSQLDbSyncTaskInput `json:"input,omitempty"` @@ -11979,8 +12001,8 @@ func (msssdstp *MigrateSQLServerSQLDbSyncTaskProperties) UnmarshalJSON(body []by return nil } -// MigrateSQLServerSQLDbTaskInput input for the task that migrates on-prem SQL Server databases to Azure SQL -// Database +// MigrateSQLServerSQLDbTaskInput input for the task that migrates on-prem SQL Server databases to Azure +// SQL Database type MigrateSQLServerSQLDbTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigrateSQLServerSQLDbDatabaseInput `json:"selectedDatabases,omitempty"` @@ -12378,8 +12400,8 @@ func (msssdtotl MigrateSQLServerSQLDbTaskOutputTableLevel) AsBasicMigrateSQLServ return &msssdtotl, true } -// MigrateSQLServerSQLDbTaskProperties properties for the task that migrates on-prem SQL Server databases to -// Azure SQL Database +// MigrateSQLServerSQLDbTaskProperties properties for the task that migrates on-prem SQL Server databases +// to Azure SQL Database type MigrateSQLServerSQLDbTaskProperties struct { // Input - Task input Input *MigrateSQLServerSQLDbTaskInput `json:"input,omitempty"` @@ -12679,8 +12701,8 @@ func (msssdtp *MigrateSQLServerSQLDbTaskProperties) UnmarshalJSON(body []byte) e return nil } -// MigrateSQLServerSQLMIDatabaseInput database specific information for SQL to Azure SQL DB Managed Instance -// migration task inputs +// MigrateSQLServerSQLMIDatabaseInput database specific information for SQL to Azure SQL DB Managed +// Instance migration task inputs type MigrateSQLServerSQLMIDatabaseInput struct { // Name - Name of the database Name *string `json:"name,omitempty"` @@ -12692,8 +12714,8 @@ type MigrateSQLServerSQLMIDatabaseInput struct { BackupFilePaths *[]string `json:"backupFilePaths,omitempty"` } -// MigrateSQLServerSQLMISyncTaskInput input for task that migrates SQL Server databases to Azure SQL Database -// Managed Instance online scenario. +// MigrateSQLServerSQLMISyncTaskInput input for task that migrates SQL Server databases to Azure SQL +// Database Managed Instance online scenario. type MigrateSQLServerSQLMISyncTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigrateSQLServerSQLMIDatabaseInput `json:"selectedDatabases,omitempty"` @@ -12982,8 +13004,8 @@ func (msssmstoml MigrateSQLServerSQLMISyncTaskOutputMigrationLevel) AsBasicMigra return &msssmstoml, true } -// MigrateSQLServerSQLMISyncTaskProperties properties for task that migrates SQL Server databases to Azure SQL -// Database Managed Instance sync scenario +// MigrateSQLServerSQLMISyncTaskProperties properties for task that migrates SQL Server databases to Azure +// SQL Database Managed Instance sync scenario type MigrateSQLServerSQLMISyncTaskProperties struct { // Input - Task input Input *MigrateSQLServerSQLMISyncTaskInput `json:"input,omitempty"` @@ -14066,7 +14088,8 @@ func (msssmtp *MigrateSQLServerSQLMITaskProperties) UnmarshalJSON(body []byte) e return nil } -// MigrateSQLServerSQLServerDatabaseInput database specific information for SQL to SQL migration task inputs +// MigrateSQLServerSQLServerDatabaseInput database specific information for SQL to SQL migration task +// inputs type MigrateSQLServerSQLServerDatabaseInput struct { // Name - Name of the database Name *string `json:"name,omitempty"` @@ -14289,8 +14312,8 @@ func (mstopl MigrateSsisTaskOutputProjectLevel) AsBasicMigrateSsisTaskOutput() ( return &mstopl, true } -// MigrateSsisTaskProperties properties for task that migrates SSIS packages from SQL Server databases to Azure -// SQL Database Managed Instance. +// MigrateSsisTaskProperties properties for task that migrates SSIS packages from SQL Server databases to +// Azure SQL Database Managed Instance. type MigrateSsisTaskProperties struct { // Input - Task input Input *MigrateSsisTaskInput `json:"input,omitempty"` @@ -16441,8 +16464,11 @@ func (page ProjectListPage) Values() []Project { } // Creates a new instance of the ProjectListPage type. -func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { - return ProjectListPage{fn: getNextPage} +func NewProjectListPage(cur ProjectList, getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return ProjectListPage{ + fn: getNextPage, + pl: cur, + } } // ProjectMetadata common metadata for migration projects @@ -17342,8 +17368,11 @@ func (page QuotaListPage) Values() []Quota { } // Creates a new instance of the QuotaListPage type. -func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { - return QuotaListPage{fn: getNextPage} +func NewQuotaListPage(cur QuotaList, getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return QuotaListPage{ + fn: getNextPage, + ql: cur, + } } // QuotaName the name of the quota @@ -17600,8 +17629,11 @@ func (page ResourceSkusResultPage) Values() []ResourceSku { } // Creates a new instance of the ResourceSkusResultPage type. -func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { - return ResourceSkusResultPage{fn: getNextPage} +func NewResourceSkusResultPage(cur ResourceSkusResult, getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return ResourceSkusResultPage{ + fn: getNextPage, + rsr: cur, + } } // SchemaComparisonValidationResult results for schema comparison between the source and target @@ -17972,8 +18004,11 @@ func (page ServiceListPage) Values() []Service { } // Creates a new instance of the ServiceListPage type. -func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { - return ServiceListPage{fn: getNextPage} +func NewServiceListPage(cur ServiceList, getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return ServiceListPage{ + fn: getNextPage, + sl: cur, + } } // ServiceOperation description of an action supported by the Database Migration Service @@ -18148,8 +18183,11 @@ func (page ServiceOperationListPage) Values() []ServiceOperation { } // Creates a new instance of the ServiceOperationListPage type. -func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { - return ServiceOperationListPage{fn: getNextPage} +func NewServiceOperationListPage(cur ServiceOperationList, getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return ServiceOperationListPage{ + fn: getNextPage, + sol: cur, + } } // ServiceProperties properties of the Database Migration Service instance @@ -18160,6 +18198,8 @@ type ServiceProperties struct { PublicKey *string `json:"publicKey,omitempty"` // VirtualSubnetID - The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined VirtualSubnetID *string `json:"virtualSubnetId,omitempty"` + // VirtualNicID - The ID of the Microsoft.Network/networkInterfaces resource which the service have + VirtualNicID *string `json:"virtualNicId,omitempty"` } // MarshalJSON is the custom marshaler for ServiceProperties. @@ -18171,6 +18211,9 @@ func (sp ServiceProperties) MarshalJSON() ([]byte, error) { if sp.VirtualSubnetID != nil { objectMap["virtualSubnetId"] = sp.VirtualSubnetID } + if sp.VirtualNicID != nil { + objectMap["virtualNicId"] = sp.VirtualNicID + } return json.Marshal(objectMap) } @@ -18203,7 +18246,8 @@ func (future *ServicesCreateOrUpdateFuture) Result(client ServicesClient) (s Ser return } -// ServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ServicesDeleteFuture struct { azure.Future } @@ -18391,11 +18435,15 @@ func (page ServiceSkuListPage) Values() []AvailableServiceSku { } // Creates a new instance of the ServiceSkuListPage type. -func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { - return ServiceSkuListPage{fn: getNextPage} +func NewServiceSkuListPage(cur ServiceSkuList, getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return ServiceSkuListPage{ + fn: getNextPage, + ssl: cur, + } } -// ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ServicesStartFuture struct { azure.Future } @@ -18452,7 +18500,8 @@ type ServiceStatusResponse struct { SupportedTaskTypes *[]string `json:"supportedTaskTypes,omitempty"` } -// ServicesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ServicesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ServicesUpdateFuture struct { azure.Future } @@ -18584,8 +18633,8 @@ type SQLMigrationTaskInput struct { TargetConnectionInfo *SQLConnectionInfo `json:"targetConnectionInfo,omitempty"` } -// SQLServerSQLMISyncTaskInput input for task that migrates SQL Server databases to Azure SQL Database Managed -// Instance online scenario. +// SQLServerSQLMISyncTaskInput input for task that migrates SQL Server databases to Azure SQL Database +// Managed Instance online scenario. type SQLServerSQLMISyncTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigrateSQLServerSQLMIDatabaseInput `json:"selectedDatabases,omitempty"` @@ -18783,8 +18832,11 @@ func (page TaskListPage) Values() []ProjectTask { } // Creates a new instance of the TaskListPage type. -func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { - return TaskListPage{fn: getNextPage} +func NewTaskListPage(cur TaskList, getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return TaskListPage{ + fn: getNextPage, + tl: cur, + } } // TrackedResource ARM tracked top level resource. @@ -19127,8 +19179,8 @@ func (uodtp *UploadOCIDriverTaskProperties) UnmarshalJSON(body []byte) error { return nil } -// ValidateMigrationInputSQLServerSQLDbSyncTaskProperties properties for task that validates migration input -// for SQL to Azure SQL DB sync migrations +// ValidateMigrationInputSQLServerSQLDbSyncTaskProperties properties for task that validates migration +// input for SQL to Azure SQL DB sync migrations type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties struct { // Input - Task input Input *ValidateSyncMigrationInputSQLServerTaskInput `json:"input,omitempty"` @@ -19429,8 +19481,8 @@ func (vmisssdstp *ValidateMigrationInputSQLServerSQLDbSyncTaskProperties) Unmars return nil } -// ValidateMigrationInputSQLServerSQLMISyncTaskInput input for task that migrates SQL Server databases to Azure -// SQL Database Managed Instance online scenario. +// ValidateMigrationInputSQLServerSQLMISyncTaskInput input for task that migrates SQL Server databases to +// Azure SQL Database Managed Instance online scenario. type ValidateMigrationInputSQLServerSQLMISyncTaskInput struct { // SelectedDatabases - Databases to migrate SelectedDatabases *[]MigrateSQLServerSQLMIDatabaseInput `json:"selectedDatabases,omitempty"` @@ -19446,8 +19498,8 @@ type ValidateMigrationInputSQLServerSQLMISyncTaskInput struct { AzureApp *AzureActiveDirectoryApp `json:"azureApp,omitempty"` } -// ValidateMigrationInputSQLServerSQLMISyncTaskOutput output for task that validates migration input for Azure -// SQL Database Managed Instance online migration +// ValidateMigrationInputSQLServerSQLMISyncTaskOutput output for task that validates migration input for +// Azure SQL Database Managed Instance online migration type ValidateMigrationInputSQLServerSQLMISyncTaskOutput struct { // ID - READ-ONLY; Database identifier ID *string `json:"id,omitempty"` @@ -19457,8 +19509,8 @@ type ValidateMigrationInputSQLServerSQLMISyncTaskOutput struct { ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` } -// ValidateMigrationInputSQLServerSQLMISyncTaskProperties properties for task that validates migration input -// for SQL to Azure SQL Database Managed Instance sync scenario +// ValidateMigrationInputSQLServerSQLMISyncTaskProperties properties for task that validates migration +// input for SQL to Azure SQL Database Managed Instance sync scenario type ValidateMigrationInputSQLServerSQLMISyncTaskProperties struct { // Input - Task input Input *ValidateMigrationInputSQLServerSQLMISyncTaskInput `json:"input,omitempty"` @@ -19759,8 +19811,8 @@ func (vmisssmstp *ValidateMigrationInputSQLServerSQLMISyncTaskProperties) Unmars return nil } -// ValidateMigrationInputSQLServerSQLMITaskInput input for task that validates migration input for SQL to Azure -// SQL Managed Instance +// ValidateMigrationInputSQLServerSQLMITaskInput input for task that validates migration input for SQL to +// Azure SQL Managed Instance type ValidateMigrationInputSQLServerSQLMITaskInput struct { // SourceConnectionInfo - Information for connecting to source SourceConnectionInfo *SQLConnectionInfo `json:"sourceConnectionInfo,omitempty"` @@ -19808,8 +19860,8 @@ func (vmisssmto ValidateMigrationInputSQLServerSQLMITaskOutput) MarshalJSON() ([ return json.Marshal(objectMap) } -// ValidateMigrationInputSQLServerSQLMITaskProperties properties for task that validates migration input for -// SQL to Azure SQL Database Managed Instance +// ValidateMigrationInputSQLServerSQLMITaskProperties properties for task that validates migration input +// for SQL to Azure SQL Database Managed Instance type ValidateMigrationInputSQLServerSQLMITaskProperties struct { // Input - Task input Input *ValidateMigrationInputSQLServerSQLMITaskInput `json:"input,omitempty"` @@ -20411,8 +20463,8 @@ func (vmdtp *ValidateMongoDbTaskProperties) UnmarshalJSON(body []byte) error { return nil } -// ValidateOracleAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates a migration for -// Oracle to Azure Database for PostgreSQL for online migrations +// ValidateOracleAzureDbForPostgreSQLSyncTaskProperties properties for the task that validates a migration +// for Oracle to Azure Database for PostgreSQL for online migrations type ValidateOracleAzureDbForPostgreSQLSyncTaskProperties struct { Input *MigrateOracleAzureDbPostgreSQLSyncTaskInput `json:"input,omitempty"` // Output - READ-ONLY; An array containing a single validation error response object @@ -20712,8 +20764,8 @@ func (voadfpsstp *ValidateOracleAzureDbForPostgreSQLSyncTaskProperties) Unmarsha return nil } -// ValidateOracleAzureDbPostgreSQLSyncTaskOutput output for task that validates migration input for Oracle to -// Azure Database for PostgreSQL for online migrations +// ValidateOracleAzureDbPostgreSQLSyncTaskOutput output for task that validates migration input for Oracle +// to Azure Database for PostgreSQL for online migrations type ValidateOracleAzureDbPostgreSQLSyncTaskOutput struct { // ValidationErrors - READ-ONLY; Errors associated with a selected database object ValidationErrors *[]ReportableException `json:"validationErrors,omitempty"` @@ -20730,8 +20782,8 @@ type ValidateSyncMigrationInputSQLServerTaskInput struct { SelectedDatabases *[]MigrateSQLServerSQLDbSyncDatabaseInput `json:"selectedDatabases,omitempty"` } -// ValidateSyncMigrationInputSQLServerTaskOutput output for task that validates migration input for SQL sync -// migrations +// ValidateSyncMigrationInputSQLServerTaskOutput output for task that validates migration input for SQL +// sync migrations type ValidateSyncMigrationInputSQLServerTaskOutput struct { // ID - READ-ONLY; Database identifier ID *string `json:"id,omitempty"`