From 5ce885394d3615ba5c9194d8d68d95733fb9def8 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 15 Aug 2019 19:05:46 +0000 Subject: [PATCH] Generated from 004d77657b470329193715edd882bc1934d0785a Fix bad discriminator value on ConnectionInfo which was breaking node/js SDK generation --- .../mgmt/datamigration/models.go | 2 +- .../mgmt/datamigration/models.go | 2 +- .../mgmt/datamigration/models.go | 2 +- .../mgmt/2018-04-19/datamigration/models.go | 18 +++++++-------- .../datamigration/models.go | 12 +++++----- .../datamigration/models.go | 12 +++++----- .../datamigration/models.go | 22 +++++++++---------- 7 files changed, 35 insertions(+), 35 deletions(-) diff --git a/profiles/latest/datamigration/mgmt/datamigration/models.go b/profiles/latest/datamigration/mgmt/datamigration/models.go index d36b80f854bb..3694b68fdbd8 100644 --- a/profiles/latest/datamigration/mgmt/datamigration/models.go +++ b/profiles/latest/datamigration/mgmt/datamigration/models.go @@ -495,11 +495,11 @@ const ( type Type = original.Type const ( + TypeConnectionInfo Type = original.TypeConnectionInfo TypeMiSQLConnectionInfo Type = original.TypeMiSQLConnectionInfo TypeMySQLConnectionInfo Type = original.TypeMySQLConnectionInfo TypePostgreSQLConnectionInfo Type = original.TypePostgreSQLConnectionInfo TypeSQLConnectionInfo Type = original.TypeSQLConnectionInfo - TypeUnknown Type = original.TypeUnknown ) type UpdateActionType = original.UpdateActionType diff --git a/profiles/preview/datamigration/mgmt/datamigration/models.go b/profiles/preview/datamigration/mgmt/datamigration/models.go index 5353ba766440..e4b335fd5d29 100644 --- a/profiles/preview/datamigration/mgmt/datamigration/models.go +++ b/profiles/preview/datamigration/mgmt/datamigration/models.go @@ -495,11 +495,11 @@ const ( type Type = original.Type const ( + TypeConnectionInfo Type = original.TypeConnectionInfo TypeMiSQLConnectionInfo Type = original.TypeMiSQLConnectionInfo TypeMySQLConnectionInfo Type = original.TypeMySQLConnectionInfo TypePostgreSQLConnectionInfo Type = original.TypePostgreSQLConnectionInfo TypeSQLConnectionInfo Type = original.TypeSQLConnectionInfo - TypeUnknown Type = original.TypeUnknown ) type UpdateActionType = original.UpdateActionType diff --git a/profiles/preview/preview/datamigration/mgmt/datamigration/models.go b/profiles/preview/preview/datamigration/mgmt/datamigration/models.go index 007f6c06102f..f42374e2070d 100644 --- a/profiles/preview/preview/datamigration/mgmt/datamigration/models.go +++ b/profiles/preview/preview/datamigration/mgmt/datamigration/models.go @@ -632,13 +632,13 @@ const ( type Type = original.Type const ( + TypeConnectionInfo Type = original.TypeConnectionInfo TypeMiSQLConnectionInfo Type = original.TypeMiSQLConnectionInfo TypeMongoDbConnectionInfo Type = original.TypeMongoDbConnectionInfo TypeMySQLConnectionInfo Type = original.TypeMySQLConnectionInfo TypeOracleConnectionInfo Type = original.TypeOracleConnectionInfo TypePostgreSQLConnectionInfo Type = original.TypePostgreSQLConnectionInfo TypeSQLConnectionInfo Type = original.TypeSQLConnectionInfo - TypeUnknown Type = original.TypeUnknown ) type UpdateActionType = original.UpdateActionType diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/models.go b/services/datamigration/mgmt/2018-04-19/datamigration/models.go index 8bbd8bfc24cd..10b7dbe8b297 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/models.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/models.go @@ -1010,6 +1010,8 @@ func PossibleTaskTypeValues() []TaskType { type Type string const ( + // TypeConnectionInfo ... + TypeConnectionInfo Type = "ConnectionInfo" // TypeMiSQLConnectionInfo ... TypeMiSQLConnectionInfo Type = "MiSqlConnectionInfo" // TypeMySQLConnectionInfo ... @@ -1018,13 +1020,11 @@ const ( TypePostgreSQLConnectionInfo Type = "PostgreSqlConnectionInfo" // TypeSQLConnectionInfo ... TypeSQLConnectionInfo Type = "SqlConnectionInfo" - // TypeUnknown ... - TypeUnknown Type = "Unknown" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { - return []Type{TypeMiSQLConnectionInfo, TypeMySQLConnectionInfo, TypePostgreSQLConnectionInfo, TypeSQLConnectionInfo, TypeUnknown} + return []Type{TypeConnectionInfo, TypeMiSQLConnectionInfo, TypeMySQLConnectionInfo, TypePostgreSQLConnectionInfo, TypeSQLConnectionInfo} } // UpdateActionType enumerates the values for update action type. @@ -1266,7 +1266,7 @@ type ConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -1321,7 +1321,7 @@ func unmarshalBasicConnectionInfoArray(body []byte) ([]BasicConnectionInfo, erro // MarshalJSON is the custom marshaler for ConnectionInfo. func (ci ConnectionInfo) MarshalJSON() ([]byte, error) { - ci.Type = TypeUnknown + ci.Type = TypeConnectionInfo objectMap := make(map[string]interface{}) if ci.UserName != nil { objectMap["userName"] = ci.UserName @@ -9500,7 +9500,7 @@ type MiSQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -9563,7 +9563,7 @@ type MySQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -9732,7 +9732,7 @@ type PostgreSQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -11837,7 +11837,7 @@ type SQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go index 4b86923d28d5..e75a2b82acb3 100644 --- a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/models.go @@ -520,15 +520,15 @@ func PossibleTaskTypeValues() []TaskType { type Type string const ( + // TypeConnectionInfo ... + TypeConnectionInfo Type = "ConnectionInfo" // TypeSQLConnectionInfo ... TypeSQLConnectionInfo Type = "SqlConnectionInfo" - // TypeUnknown ... - TypeUnknown Type = "Unknown" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { - return []Type{TypeSQLConnectionInfo, TypeUnknown} + return []Type{TypeConnectionInfo, TypeSQLConnectionInfo} } // UpdateActionType enumerates the values for update action type. @@ -627,7 +627,7 @@ type ConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -670,7 +670,7 @@ func unmarshalBasicConnectionInfoArray(body []byte) ([]BasicConnectionInfo, erro // MarshalJSON is the custom marshaler for ConnectionInfo. func (ci ConnectionInfo) MarshalJSON() ([]byte, error) { - ci.Type = TypeUnknown + ci.Type = TypeConnectionInfo objectMap := make(map[string]interface{}) if ci.UserName != nil { objectMap["userName"] = ci.UserName @@ -3840,7 +3840,7 @@ type SQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go index ecf162b5e890..32d72e9c6156 100644 --- a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/models.go @@ -610,15 +610,15 @@ func PossibleTaskTypeValues() []TaskType { type Type string const ( + // TypeConnectionInfo ... + TypeConnectionInfo Type = "ConnectionInfo" // TypeSQLConnectionInfo ... TypeSQLConnectionInfo Type = "SqlConnectionInfo" - // TypeUnknown ... - TypeUnknown Type = "Unknown" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { - return []Type{TypeSQLConnectionInfo, TypeUnknown} + return []Type{TypeConnectionInfo, TypeSQLConnectionInfo} } // UpdateActionType enumerates the values for update action type. @@ -723,7 +723,7 @@ type ConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -766,7 +766,7 @@ func unmarshalBasicConnectionInfoArray(body []byte) ([]BasicConnectionInfo, erro // MarshalJSON is the custom marshaler for ConnectionInfo. func (ci ConnectionInfo) MarshalJSON() ([]byte, error) { - ci.Type = TypeUnknown + ci.Type = TypeConnectionInfo objectMap := make(map[string]interface{}) if ci.UserName != nil { objectMap["userName"] = ci.UserName @@ -4941,7 +4941,7 @@ type SQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } 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 0caffc87e1a7..5df3f25b25ab 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 @@ -1300,6 +1300,8 @@ func PossibleTaskTypeValues() []TaskType { type Type string const ( + // TypeConnectionInfo ... + TypeConnectionInfo Type = "ConnectionInfo" // TypeMiSQLConnectionInfo ... TypeMiSQLConnectionInfo Type = "MiSqlConnectionInfo" // TypeMongoDbConnectionInfo ... @@ -1312,13 +1314,11 @@ const ( TypePostgreSQLConnectionInfo Type = "PostgreSqlConnectionInfo" // TypeSQLConnectionInfo ... TypeSQLConnectionInfo Type = "SqlConnectionInfo" - // TypeUnknown ... - TypeUnknown Type = "Unknown" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { - return []Type{TypeMiSQLConnectionInfo, TypeMongoDbConnectionInfo, TypeMySQLConnectionInfo, TypeOracleConnectionInfo, TypePostgreSQLConnectionInfo, TypeSQLConnectionInfo, TypeUnknown} + return []Type{TypeConnectionInfo, TypeMiSQLConnectionInfo, TypeMongoDbConnectionInfo, TypeMySQLConnectionInfo, TypeOracleConnectionInfo, TypePostgreSQLConnectionInfo, TypeSQLConnectionInfo} } // UpdateActionType enumerates the values for update action type. @@ -1930,7 +1930,7 @@ type ConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -1993,7 +1993,7 @@ func unmarshalBasicConnectionInfoArray(body []byte) ([]BasicConnectionInfo, erro // MarshalJSON is the custom marshaler for ConnectionInfo. func (ci ConnectionInfo) MarshalJSON() ([]byte, error) { - ci.Type = TypeUnknown + ci.Type = TypeConnectionInfo objectMap := make(map[string]interface{}) if ci.UserName != nil { objectMap["userName"] = ci.UserName @@ -16066,7 +16066,7 @@ type MiSQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -16332,7 +16332,7 @@ type MongoDbConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -16921,7 +16921,7 @@ type MySQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -17088,7 +17088,7 @@ type OracleConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -17187,7 +17187,7 @@ type PostgreSQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` } @@ -19499,7 +19499,7 @@ type SQLConnectionInfo struct { UserName *string `json:"userName,omitempty"` // Password - Password credential. Password *string `json:"password,omitempty"` - // Type - Possible values include: 'TypeUnknown', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' + // Type - Possible values include: 'TypeConnectionInfo', 'TypeMiSQLConnectionInfo', 'TypePostgreSQLConnectionInfo', 'TypeOracleConnectionInfo', 'TypeMySQLConnectionInfo', 'TypeMongoDbConnectionInfo', 'TypeSQLConnectionInfo' Type Type `json:"type,omitempty"` }