Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sql/resource-manager] Add new APIs (two List APIs) and update examples #5728

Merged
merged 2 commits into from
Sep 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 73 additions & 3 deletions profiles/preview/preview/sql/mgmt/sql/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ const (
DefaultBaseURI = original.DefaultBaseURI
)

type CatalogCollationType = original.CatalogCollationType

const (
DATABASEDEFAULT CatalogCollationType = original.DATABASEDEFAULT
SQLLatin1GeneralCP1CIAS CatalogCollationType = original.SQLLatin1GeneralCP1CIAS
)

type IdentityType = original.IdentityType

const (
Expand All @@ -42,6 +49,27 @@ const (
LicenseIncluded InstancePoolLicenseType = original.LicenseIncluded
)

type ManagedDatabaseCreateMode = original.ManagedDatabaseCreateMode

const (
Default ManagedDatabaseCreateMode = original.Default
PointInTimeRestore ManagedDatabaseCreateMode = original.PointInTimeRestore
Recovery ManagedDatabaseCreateMode = original.Recovery
RestoreExternalBackup ManagedDatabaseCreateMode = original.RestoreExternalBackup
)

type ManagedDatabaseStatus = original.ManagedDatabaseStatus

const (
Creating ManagedDatabaseStatus = original.Creating
Inaccessible ManagedDatabaseStatus = original.Inaccessible
Offline ManagedDatabaseStatus = original.Offline
Online ManagedDatabaseStatus = original.Online
Restoring ManagedDatabaseStatus = original.Restoring
Shutdown ManagedDatabaseStatus = original.Shutdown
Updating ManagedDatabaseStatus = original.Updating
)

type ManagedInstanceLicenseType = original.ManagedInstanceLicenseType

const (
Expand All @@ -52,9 +80,9 @@ const (
type ManagedInstanceProxyOverride = original.ManagedInstanceProxyOverride

const (
Default ManagedInstanceProxyOverride = original.Default
Proxy ManagedInstanceProxyOverride = original.Proxy
Redirect ManagedInstanceProxyOverride = original.Redirect
ManagedInstanceProxyOverrideDefault ManagedInstanceProxyOverride = original.ManagedInstanceProxyOverrideDefault
ManagedInstanceProxyOverrideProxy ManagedInstanceProxyOverride = original.ManagedInstanceProxyOverrideProxy
ManagedInstanceProxyOverrideRedirect ManagedInstanceProxyOverride = original.ManagedInstanceProxyOverrideRedirect
)

type ManagedServerCreateMode = original.ManagedServerCreateMode
Expand All @@ -80,6 +108,7 @@ const (
)

type BaseClient = original.BaseClient
type CompleteDatabaseRestoreDefinition = original.CompleteDatabaseRestoreDefinition
type DatabaseSecurityAlertListResult = original.DatabaseSecurityAlertListResult
type DatabaseSecurityAlertListResultIterator = original.DatabaseSecurityAlertListResultIterator
type DatabaseSecurityAlertListResultPage = original.DatabaseSecurityAlertListResultPage
Expand All @@ -99,7 +128,21 @@ type InstancePoolsClient = original.InstancePoolsClient
type InstancePoolsCreateOrUpdateFuture = original.InstancePoolsCreateOrUpdateFuture
type InstancePoolsDeleteFuture = original.InstancePoolsDeleteFuture
type InstancePoolsUpdateFuture = original.InstancePoolsUpdateFuture
type ManagedDatabase = original.ManagedDatabase
type ManagedDatabaseListResult = original.ManagedDatabaseListResult
type ManagedDatabaseListResultIterator = original.ManagedDatabaseListResultIterator
type ManagedDatabaseListResultPage = original.ManagedDatabaseListResultPage
type ManagedDatabaseProperties = original.ManagedDatabaseProperties
type ManagedDatabaseRestoreDetailsClient = original.ManagedDatabaseRestoreDetailsClient
type ManagedDatabaseRestoreDetailsProperties = original.ManagedDatabaseRestoreDetailsProperties
type ManagedDatabaseRestoreDetailsResult = original.ManagedDatabaseRestoreDetailsResult
type ManagedDatabaseSensitivityLabelsClient = original.ManagedDatabaseSensitivityLabelsClient
type ManagedDatabaseUpdate = original.ManagedDatabaseUpdate
type ManagedDatabasesClient = original.ManagedDatabasesClient
type ManagedDatabasesCompleteRestoreFuture = original.ManagedDatabasesCompleteRestoreFuture
type ManagedDatabasesCreateOrUpdateFuture = original.ManagedDatabasesCreateOrUpdateFuture
type ManagedDatabasesDeleteFuture = original.ManagedDatabasesDeleteFuture
type ManagedDatabasesUpdateFuture = original.ManagedDatabasesUpdateFuture
type ManagedInstance = original.ManagedInstance
type ManagedInstanceListResult = original.ManagedInstanceListResult
type ManagedInstanceListResultIterator = original.ManagedInstanceListResultIterator
Expand Down Expand Up @@ -190,12 +233,30 @@ func NewInstancePoolsClient(subscriptionID string) InstancePoolsClient {
func NewInstancePoolsClientWithBaseURI(baseURI string, subscriptionID string) InstancePoolsClient {
return original.NewInstancePoolsClientWithBaseURI(baseURI, subscriptionID)
}
func NewManagedDatabaseListResultIterator(page ManagedDatabaseListResultPage) ManagedDatabaseListResultIterator {
return original.NewManagedDatabaseListResultIterator(page)
}
func NewManagedDatabaseListResultPage(getNextPage func(context.Context, ManagedDatabaseListResult) (ManagedDatabaseListResult, error)) ManagedDatabaseListResultPage {
return original.NewManagedDatabaseListResultPage(getNextPage)
}
func NewManagedDatabaseRestoreDetailsClient(subscriptionID string) ManagedDatabaseRestoreDetailsClient {
return original.NewManagedDatabaseRestoreDetailsClient(subscriptionID)
}
func NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseRestoreDetailsClient {
return original.NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI, subscriptionID)
}
func NewManagedDatabaseSensitivityLabelsClient(subscriptionID string) ManagedDatabaseSensitivityLabelsClient {
return original.NewManagedDatabaseSensitivityLabelsClient(subscriptionID)
}
func NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSensitivityLabelsClient {
return original.NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI, subscriptionID)
}
func NewManagedDatabasesClient(subscriptionID string) ManagedDatabasesClient {
return original.NewManagedDatabasesClient(subscriptionID)
}
func NewManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabasesClient {
return original.NewManagedDatabasesClientWithBaseURI(baseURI, subscriptionID)
}
func NewManagedInstanceListResultIterator(page ManagedInstanceListResultPage) ManagedInstanceListResultIterator {
return original.NewManagedInstanceListResultIterator(page)
}
Expand Down Expand Up @@ -265,12 +326,21 @@ func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesCli
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func PossibleCatalogCollationTypeValues() []CatalogCollationType {
return original.PossibleCatalogCollationTypeValues()
}
func PossibleIdentityTypeValues() []IdentityType {
return original.PossibleIdentityTypeValues()
}
func PossibleInstancePoolLicenseTypeValues() []InstancePoolLicenseType {
return original.PossibleInstancePoolLicenseTypeValues()
}
func PossibleManagedDatabaseCreateModeValues() []ManagedDatabaseCreateMode {
return original.PossibleManagedDatabaseCreateModeValues()
}
func PossibleManagedDatabaseStatusValues() []ManagedDatabaseStatus {
return original.PossibleManagedDatabaseStatusValues()
}
func PossibleManagedInstanceLicenseTypeValues() []ManagedInstanceLicenseType {
return original.PossibleManagedInstanceLicenseTypeValues()
}
Expand Down
2 changes: 2 additions & 0 deletions profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ type DatabaseSecurityAlertPoliciesClientAPI = original.DatabaseSecurityAlertPoli
type DatabasesClientAPI = original.DatabasesClientAPI
type ElasticPoolsClientAPI = original.ElasticPoolsClientAPI
type InstancePoolsClientAPI = original.InstancePoolsClientAPI
type ManagedDatabaseRestoreDetailsClientAPI = original.ManagedDatabaseRestoreDetailsClientAPI
type ManagedDatabaseSensitivityLabelsClientAPI = original.ManagedDatabaseSensitivityLabelsClientAPI
type ManagedDatabasesClientAPI = original.ManagedDatabasesClientAPI
type ManagedInstanceVulnerabilityAssessmentsClientAPI = original.ManagedInstanceVulnerabilityAssessmentsClientAPI
type ManagedInstancesClientAPI = original.ManagedInstancesClientAPI
type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading