diff --git a/profiles/2017-03-09/network/mgmt/network/models.go b/profiles/2017-03-09/network/mgmt/network/models.go index 896f18980ee8..e0088ddbb392 100644 --- a/profiles/2017-03-09/network/mgmt/network/models.go +++ b/profiles/2017-03-09/network/mgmt/network/models.go @@ -32,7 +32,6 @@ type ExpressRouteCircuitAuthorizationsClient = original.ExpressRouteCircuitAutho type ExpressRouteCircuitPeeringsClient = original.ExpressRouteCircuitPeeringsClient type ExpressRouteCircuitsClient = original.ExpressRouteCircuitsClient type ExpressRouteServiceProvidersClient = original.ExpressRouteServiceProvidersClient -type InterfacesClient = original.InterfacesClient type LoadBalancersClient = original.LoadBalancersClient type LocalNetworkGatewaysClient = original.LocalNetworkGatewaysClient type ApplicationGatewayCookieBasedAffinity = original.ApplicationGatewayCookieBasedAffinity @@ -513,12 +512,6 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient { return original.NewExpressRouteServiceProvidersClientWithBaseURI(baseURI, subscriptionID) } -func NewInterfacesClient(subscriptionID string) InterfacesClient { - return original.NewInterfacesClient(subscriptionID) -} -func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient { - return original.NewInterfacesClientWithBaseURI(baseURI, subscriptionID) -} func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient { return original.NewLoadBalancersClient(subscriptionID) } diff --git a/profiles/latest/network/mgmt/network/models.go b/profiles/latest/network/mgmt/network/models.go index 482345fc8e18..6762f83b585e 100644 --- a/profiles/latest/network/mgmt/network/models.go +++ b/profiles/latest/network/mgmt/network/models.go @@ -40,7 +40,6 @@ type ExpressRouteServiceProvidersClient = original.ExpressRouteServiceProvidersC type InboundNatRulesClient = original.InboundNatRulesClient type InterfaceIPConfigurationsClient = original.InterfaceIPConfigurationsClient type InterfaceLoadBalancersClient = original.InterfaceLoadBalancersClient -type InterfacesClient = original.InterfacesClient type LoadBalancerBackendAddressPoolsClient = original.LoadBalancerBackendAddressPoolsClient type LoadBalancerFrontendIPConfigurationsClient = original.LoadBalancerFrontendIPConfigurationsClient type LoadBalancerLoadBalancingRulesClient = original.LoadBalancerLoadBalancingRulesClient @@ -1180,12 +1179,6 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient { return original.NewInterfaceLoadBalancersClientWithBaseURI(baseURI, subscriptionID) } -func NewInterfacesClient(subscriptionID string) InterfacesClient { - return original.NewInterfacesClient(subscriptionID) -} -func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient { - return original.NewInterfacesClientWithBaseURI(baseURI, subscriptionID) -} func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalancerBackendAddressPoolsClient { return original.NewLoadBalancerBackendAddressPoolsClient(subscriptionID) } diff --git a/profiles/preview/datamigration/mgmt/datamigration/models.go b/profiles/preview/datamigration/mgmt/datamigration/models.go index 6f212dbf2449..c44334ebb9b1 100644 --- a/profiles/preview/datamigration/mgmt/datamigration/models.go +++ b/profiles/preview/datamigration/mgmt/datamigration/models.go @@ -19,7 +19,11 @@ package datamigration -import original "github.com/Azure/azure-sdk-for-go/services/datamigration/mgmt/2018-04-19/datamigration" +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/datamigration/mgmt/2018-04-19/datamigration" +) const ( DefaultBaseURI = original.DefaultBaseURI @@ -524,6 +528,48 @@ func PossibleUpdateActionTypeValues() []UpdateActionType { func PossibleValidationStatusValues() []ValidationStatus { return original.PossibleValidationStatusValues() } +func NewProjectListIterator(page ProjectListPage) ProjectListIterator { + return original.NewProjectListIterator(page) +} +func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return original.NewProjectListPage(getNextPage) +} +func NewQuotaListIterator(page QuotaListPage) QuotaListIterator { + return original.NewQuotaListIterator(page) +} +func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return original.NewQuotaListPage(getNextPage) +} +func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { + return original.NewResourceSkusResultIterator(page) +} +func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return original.NewResourceSkusResultPage(getNextPage) +} +func NewServiceListIterator(page ServiceListPage) ServiceListIterator { + return original.NewServiceListIterator(page) +} +func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return original.NewServiceListPage(getNextPage) +} +func NewServiceOperationListIterator(page ServiceOperationListPage) ServiceOperationListIterator { + return original.NewServiceOperationListIterator(page) +} +func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return original.NewServiceOperationListPage(getNextPage) +} +func NewServiceSkuListIterator(page ServiceSkuListPage) ServiceSkuListIterator { + return original.NewServiceSkuListIterator(page) +} +func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return original.NewServiceSkuListPage(getNextPage) +} +func NewTaskListIterator(page TaskListPage) TaskListIterator { + return original.NewTaskListIterator(page) +} +func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return original.NewTaskListPage(getNextPage) +} func NewOperationsClient(subscriptionID string) OperationsClient { return original.NewOperationsClient(subscriptionID) } diff --git a/profiles/preview/network/mgmt/network/models.go b/profiles/preview/network/mgmt/network/models.go index f0a8c69de982..9e8622d8222e 100644 --- a/profiles/preview/network/mgmt/network/models.go +++ b/profiles/preview/network/mgmt/network/models.go @@ -55,7 +55,6 @@ type InboundNatRulesClient = original.InboundNatRulesClient type InterfaceEndpointsClient = original.InterfaceEndpointsClient type InterfaceIPConfigurationsClient = original.InterfaceIPConfigurationsClient type InterfaceLoadBalancersClient = original.InterfaceLoadBalancersClient -type InterfacesClient = original.InterfacesClient type InterfaceTapConfigurationsClient = original.InterfaceTapConfigurationsClient type LoadBalancerBackendAddressPoolsClient = original.LoadBalancerBackendAddressPoolsClient type LoadBalancerFrontendIPConfigurationsClient = original.LoadBalancerFrontendIPConfigurationsClient @@ -1765,12 +1764,6 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient { return original.NewInterfaceLoadBalancersClientWithBaseURI(baseURI, subscriptionID) } -func NewInterfacesClient(subscriptionID string) InterfacesClient { - return original.NewInterfacesClient(subscriptionID) -} -func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient { - return original.NewInterfacesClientWithBaseURI(baseURI, subscriptionID) -} func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConfigurationsClient { return original.NewInterfaceTapConfigurationsClient(subscriptionID) } diff --git a/profiles/preview/preview/datamigration/mgmt/datamigration/models.go b/profiles/preview/preview/datamigration/mgmt/datamigration/models.go index 00ee69ff781f..a0957b92e50c 100644 --- a/profiles/preview/preview/datamigration/mgmt/datamigration/models.go +++ b/profiles/preview/preview/datamigration/mgmt/datamigration/models.go @@ -19,7 +19,11 @@ package datamigration -import original "github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration" +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration" +) const ( DefaultBaseURI = original.DefaultBaseURI @@ -968,6 +972,54 @@ func PossibleUpdateActionTypeValues() []UpdateActionType { func PossibleValidationStatusValues() []ValidationStatus { return original.PossibleValidationStatusValues() } +func NewFileListIterator(page FileListPage) FileListIterator { + return original.NewFileListIterator(page) +} +func NewFileListPage(getNextPage func(context.Context, FileList) (FileList, error)) FileListPage { + return original.NewFileListPage(getNextPage) +} +func NewProjectListIterator(page ProjectListPage) ProjectListIterator { + return original.NewProjectListIterator(page) +} +func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return original.NewProjectListPage(getNextPage) +} +func NewQuotaListIterator(page QuotaListPage) QuotaListIterator { + return original.NewQuotaListIterator(page) +} +func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return original.NewQuotaListPage(getNextPage) +} +func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { + return original.NewResourceSkusResultIterator(page) +} +func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return original.NewResourceSkusResultPage(getNextPage) +} +func NewServiceListIterator(page ServiceListPage) ServiceListIterator { + return original.NewServiceListIterator(page) +} +func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return original.NewServiceListPage(getNextPage) +} +func NewServiceOperationListIterator(page ServiceOperationListPage) ServiceOperationListIterator { + return original.NewServiceOperationListIterator(page) +} +func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return original.NewServiceOperationListPage(getNextPage) +} +func NewServiceSkuListIterator(page ServiceSkuListPage) ServiceSkuListIterator { + return original.NewServiceSkuListIterator(page) +} +func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return original.NewServiceSkuListPage(getNextPage) +} +func NewTaskListIterator(page TaskListPage) TaskListIterator { + return original.NewTaskListIterator(page) +} +func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return original.NewTaskListPage(getNextPage) +} func NewOperationsClient(subscriptionID string) OperationsClient { return original.NewOperationsClient(subscriptionID) } diff --git a/profiles/preview/preview/network/mgmt/network/models.go b/profiles/preview/preview/network/mgmt/network/models.go index a3ecb2be065b..53406eeb1fc5 100644 --- a/profiles/preview/preview/network/mgmt/network/models.go +++ b/profiles/preview/preview/network/mgmt/network/models.go @@ -32,7 +32,6 @@ type ExpressRouteCircuitAuthorizationsClient = original.ExpressRouteCircuitAutho type ExpressRouteCircuitPeeringsClient = original.ExpressRouteCircuitPeeringsClient type ExpressRouteCircuitsClient = original.ExpressRouteCircuitsClient type ExpressRouteServiceProvidersClient = original.ExpressRouteServiceProvidersClient -type InterfacesClient = original.InterfacesClient type LoadBalancersClient = original.LoadBalancersClient type LocalNetworkGatewaysClient = original.LocalNetworkGatewaysClient type ApplicationGatewayCookieBasedAffinity = original.ApplicationGatewayCookieBasedAffinity @@ -471,12 +470,6 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient { return original.NewExpressRouteServiceProvidersClientWithBaseURI(baseURI, subscriptionID) } -func NewInterfacesClient(subscriptionID string) InterfacesClient { - return original.NewInterfacesClient(subscriptionID) -} -func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient { - return original.NewInterfacesClientWithBaseURI(baseURI, subscriptionID) -} func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient { return original.NewLoadBalancersClient(subscriptionID) } diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/datamigrationapi/interfaces.go b/services/datamigration/mgmt/2018-04-19/datamigration/datamigrationapi/interfaces.go new file mode 100644 index 000000000000..e6dba1faad94 --- /dev/null +++ b/services/datamigration/mgmt/2018-04-19/datamigration/datamigrationapi/interfaces.go @@ -0,0 +1,86 @@ +package datamigrationapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/datamigration/mgmt/2018-04-19/datamigration" + "github.com/Azure/go-autorest/autorest" +) + +// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type. +type ResourceSkusClientAPI interface { + ListSkus(ctx context.Context) (result datamigration.ResourceSkusResultPage, err error) +} + +var _ ResourceSkusClientAPI = (*datamigration.ResourceSkusClient)(nil) + +// ServicesClientAPI contains the set of methods on the ServicesClient type. +type ServicesClientAPI interface { + CheckNameAvailability(ctx context.Context, location string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckStatus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceStatusResponse, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, groupName string, serviceName string, deleteRunningTasks *bool) (result datamigration.ServicesDeleteFuture, err error) + Get(ctx context.Context, groupName string, serviceName string) (result datamigration.Service, err error) + List(ctx context.Context) (result datamigration.ServiceListPage, err error) + ListByResourceGroup(ctx context.Context, groupName string) (result datamigration.ServiceListPage, err error) + ListSkus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceSkuListPage, err error) + NestedCheckNameAvailability(ctx context.Context, groupName string, serviceName string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + Start(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStartFuture, err error) + Stop(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStopFuture, err error) + Update(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesUpdateFuture, err error) +} + +var _ ServicesClientAPI = (*datamigration.ServicesClient)(nil) + +// TasksClientAPI contains the set of methods on the TasksClient type. +type TasksClientAPI interface { + Cancel(ctx context.Context, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, expand string) (result datamigration.ProjectTask, err error) + List(ctx context.Context, groupName string, serviceName string, projectName string, taskType string) (result datamigration.TaskListPage, err error) + Update(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) +} + +var _ TasksClientAPI = (*datamigration.TasksClient)(nil) + +// ProjectsClientAPI contains the set of methods on the ProjectsClient type. +type ProjectsClientAPI interface { + CreateOrUpdate(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + ListByResourceGroup(ctx context.Context, groupName string, serviceName string) (result datamigration.ProjectListPage, err error) + Update(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) +} + +var _ ProjectsClientAPI = (*datamigration.ProjectsClient)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + List(ctx context.Context, location string) (result datamigration.QuotaListPage, err error) +} + +var _ UsagesClientAPI = (*datamigration.UsagesClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result datamigration.ServiceOperationListPage, err error) +} + +var _ OperationsClientAPI = (*datamigration.OperationsClient)(nil) diff --git a/services/datamigration/mgmt/2018-04-19/datamigration/models.go b/services/datamigration/mgmt/2018-04-19/datamigration/models.go index 5d8f1554901f..0cc61b6bdf87 100644 --- a/services/datamigration/mgmt/2018-04-19/datamigration/models.go +++ b/services/datamigration/mgmt/2018-04-19/datamigration/models.go @@ -2955,6 +2955,11 @@ func (iter ProjectListIterator) Value() Project { return iter.page.Values()[iter.i] } +// Creates a new instance of the ProjectListIterator type. +func NewProjectListIterator(page ProjectListPage) ProjectListIterator { + return ProjectListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (pl ProjectList) IsEmpty() bool { return pl.Value == nil || len(*pl.Value) == 0 @@ -3024,6 +3029,11 @@ func (page ProjectListPage) Values() []Project { return *page.pl.Value } +// Creates a new instance of the ProjectListPage type. +func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return ProjectListPage{fn: getNextPage} +} + // ProjectMetadata common metadata for migration projects type ProjectMetadata struct { // SourceServerName - Source server name @@ -3429,6 +3439,11 @@ func (iter QuotaListIterator) Value() Quota { return iter.page.Values()[iter.i] } +// Creates a new instance of the QuotaListIterator type. +func NewQuotaListIterator(page QuotaListPage) QuotaListIterator { + return QuotaListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ql QuotaList) IsEmpty() bool { return ql.Value == nil || len(*ql.Value) == 0 @@ -3498,6 +3513,11 @@ func (page QuotaListPage) Values() []Quota { return *page.ql.Value } +// Creates a new instance of the QuotaListPage type. +func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return QuotaListPage{fn: getNextPage} +} + // QuotaName the name of the quota type QuotaName struct { // LocalizedValue - The localized name of the quota @@ -3665,6 +3685,11 @@ func (iter ResourceSkusResultIterator) Value() ResourceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ResourceSkusResultIterator type. +func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { + return ResourceSkusResultIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (rsr ResourceSkusResult) IsEmpty() bool { return rsr.Value == nil || len(*rsr.Value) == 0 @@ -3734,6 +3759,11 @@ func (page ResourceSkusResultPage) Values() []ResourceSku { return *page.rsr.Value } +// Creates a new instance of the ResourceSkusResultPage type. +func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return ResourceSkusResultPage{fn: getNextPage} +} + // SchemaComparisonValidationResult results for schema comparison between the source and target type SchemaComparisonValidationResult struct { // SchemaDifferences - List of schema differences between the source and target databases @@ -3994,6 +4024,11 @@ func (iter ServiceListIterator) Value() Service { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceListIterator type. +func NewServiceListIterator(page ServiceListPage) ServiceListIterator { + return ServiceListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sl ServiceList) IsEmpty() bool { return sl.Value == nil || len(*sl.Value) == 0 @@ -4063,6 +4098,11 @@ func (page ServiceListPage) Values() []Service { return *page.sl.Value } +// Creates a new instance of the ServiceListPage type. +func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return ServiceListPage{fn: getNextPage} +} + // ServiceOperation description of an action supported by the Database Migration Service type ServiceOperation struct { // Name - The fully qualified action name, e.g. Microsoft.DataMigration/services/read @@ -4150,6 +4190,11 @@ func (iter ServiceOperationListIterator) Value() ServiceOperation { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceOperationListIterator type. +func NewServiceOperationListIterator(page ServiceOperationListPage) ServiceOperationListIterator { + return ServiceOperationListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sol ServiceOperationList) IsEmpty() bool { return sol.Value == nil || len(*sol.Value) == 0 @@ -4219,6 +4264,11 @@ func (page ServiceOperationListPage) Values() []ServiceOperation { return *page.sol.Value } +// Creates a new instance of the ServiceOperationListPage type. +func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return ServiceOperationListPage{fn: getNextPage} +} + // ServiceProperties properties of the Data Migration service instance type ServiceProperties struct { // ProvisioningState - The resource's provisioning state. Possible values include: 'ServiceProvisioningStateAccepted', 'ServiceProvisioningStateDeleting', 'ServiceProvisioningStateDeploying', 'ServiceProvisioningStateStopped', 'ServiceProvisioningStateStopping', 'ServiceProvisioningStateStarting', 'ServiceProvisioningStateFailedToStart', 'ServiceProvisioningStateFailedToStop', 'ServiceProvisioningStateSucceeded', 'ServiceProvisioningStateFailed' @@ -4362,6 +4412,11 @@ func (iter ServiceSkuListIterator) Value() AvailableServiceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceSkuListIterator type. +func NewServiceSkuListIterator(page ServiceSkuListPage) ServiceSkuListIterator { + return ServiceSkuListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ssl ServiceSkuList) IsEmpty() bool { return ssl.Value == nil || len(*ssl.Value) == 0 @@ -4431,6 +4486,11 @@ func (page ServiceSkuListPage) Values() []AvailableServiceSku { return *page.ssl.Value } +// Creates a new instance of the ServiceSkuListPage type. +func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return ServiceSkuListPage{fn: getNextPage} +} + // ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServicesStartFuture struct { @@ -4669,6 +4729,11 @@ func (iter TaskListIterator) Value() ProjectTask { return iter.page.Values()[iter.i] } +// Creates a new instance of the TaskListIterator type. +func NewTaskListIterator(page TaskListPage) TaskListIterator { + return TaskListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (tl TaskList) IsEmpty() bool { return tl.Value == nil || len(*tl.Value) == 0 @@ -4738,6 +4803,11 @@ func (page TaskListPage) Values() []ProjectTask { return *page.tl.Value } +// Creates a new instance of the TaskListPage type. +func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return TaskListPage{fn: getNextPage} +} + // TrackedResource ARM tracked top level resource. type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/datamigrationapi/interfaces.go b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/datamigrationapi/interfaces.go new file mode 100644 index 000000000000..fcde60ca2ccb --- /dev/null +++ b/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration/datamigrationapi/interfaces.go @@ -0,0 +1,86 @@ +package datamigrationapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2017-11-15-preview/datamigration" + "github.com/Azure/go-autorest/autorest" +) + +// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type. +type ResourceSkusClientAPI interface { + ListSkus(ctx context.Context) (result datamigration.ResourceSkusResultPage, err error) +} + +var _ ResourceSkusClientAPI = (*datamigration.ResourceSkusClient)(nil) + +// ServicesClientAPI contains the set of methods on the ServicesClient type. +type ServicesClientAPI interface { + CheckChildrenNameAvailability(ctx context.Context, groupName string, serviceName string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckNameAvailability(ctx context.Context, location string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckStatus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceStatusResponse, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, groupName string, serviceName string, deleteRunningTasks *bool) (result datamigration.ServicesDeleteFuture, err error) + Get(ctx context.Context, groupName string, serviceName string) (result datamigration.Service, err error) + List(ctx context.Context) (result datamigration.ServiceListPage, err error) + ListByResourceGroup(ctx context.Context, groupName string) (result datamigration.ServiceListPage, err error) + ListSkus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceSkuListPage, err error) + Start(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStartFuture, err error) + Stop(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStopFuture, err error) + Update(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesUpdateFuture, err error) +} + +var _ ServicesClientAPI = (*datamigration.ServicesClient)(nil) + +// TasksClientAPI contains the set of methods on the TasksClient type. +type TasksClientAPI interface { + Cancel(ctx context.Context, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, expand string) (result datamigration.ProjectTask, err error) + List(ctx context.Context, groupName string, serviceName string, projectName string, taskType string) (result datamigration.TaskListPage, err error) + Update(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) +} + +var _ TasksClientAPI = (*datamigration.TasksClient)(nil) + +// ProjectsClientAPI contains the set of methods on the ProjectsClient type. +type ProjectsClientAPI interface { + CreateOrUpdate(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + List(ctx context.Context, groupName string, serviceName string) (result datamigration.ProjectListPage, err error) + Update(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) +} + +var _ ProjectsClientAPI = (*datamigration.ProjectsClient)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + List(ctx context.Context, location string) (result datamigration.QuotaListPage, err error) +} + +var _ UsagesClientAPI = (*datamigration.UsagesClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result datamigration.ServiceOperationListPage, err error) +} + +var _ OperationsClientAPI = (*datamigration.OperationsClient)(nil) 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 6057c70caa25..89cb411da9ac 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 @@ -2453,6 +2453,11 @@ func (iter ProjectListIterator) Value() Project { return iter.page.Values()[iter.i] } +// Creates a new instance of the ProjectListIterator type. +func NewProjectListIterator(page ProjectListPage) ProjectListIterator { + return ProjectListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (pl ProjectList) IsEmpty() bool { return pl.Value == nil || len(*pl.Value) == 0 @@ -2522,6 +2527,11 @@ func (page ProjectListPage) Values() []Project { return *page.pl.Value } +// Creates a new instance of the ProjectListPage type. +func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return ProjectListPage{fn: getNextPage} +} + // ProjectMetadata common metadata for migration projects type ProjectMetadata struct { // SourceServerName - Source server name @@ -2927,6 +2937,11 @@ func (iter QuotaListIterator) Value() Quota { return iter.page.Values()[iter.i] } +// Creates a new instance of the QuotaListIterator type. +func NewQuotaListIterator(page QuotaListPage) QuotaListIterator { + return QuotaListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ql QuotaList) IsEmpty() bool { return ql.Value == nil || len(*ql.Value) == 0 @@ -2996,6 +3011,11 @@ func (page QuotaListPage) Values() []Quota { return *page.ql.Value } +// Creates a new instance of the QuotaListPage type. +func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return QuotaListPage{fn: getNextPage} +} + // QuotaName the name of the quota type QuotaName struct { // LocalizedValue - The localized name of the quota @@ -3163,6 +3183,11 @@ func (iter ResourceSkusResultIterator) Value() ResourceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ResourceSkusResultIterator type. +func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { + return ResourceSkusResultIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (rsr ResourceSkusResult) IsEmpty() bool { return rsr.Value == nil || len(*rsr.Value) == 0 @@ -3232,6 +3257,11 @@ func (page ResourceSkusResultPage) Values() []ResourceSku { return *page.rsr.Value } +// Creates a new instance of the ResourceSkusResultPage type. +func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return ResourceSkusResultPage{fn: getNextPage} +} + // SchemaComparisonValidationResult results for schema comparison between the source and target type SchemaComparisonValidationResult struct { // SchemaDifferences - List of schema differences between the source and target databases @@ -3492,6 +3522,11 @@ func (iter ServiceListIterator) Value() Service { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceListIterator type. +func NewServiceListIterator(page ServiceListPage) ServiceListIterator { + return ServiceListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sl ServiceList) IsEmpty() bool { return sl.Value == nil || len(*sl.Value) == 0 @@ -3561,6 +3596,11 @@ func (page ServiceListPage) Values() []Service { return *page.sl.Value } +// Creates a new instance of the ServiceListPage type. +func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return ServiceListPage{fn: getNextPage} +} + // ServiceOperation description of an action supported by the Data Migration Service type ServiceOperation struct { // Name - The fully qualified action name, e.g. Microsoft.DataMigration/services/read @@ -3648,6 +3688,11 @@ func (iter ServiceOperationListIterator) Value() ServiceOperation { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceOperationListIterator type. +func NewServiceOperationListIterator(page ServiceOperationListPage) ServiceOperationListIterator { + return ServiceOperationListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sol ServiceOperationList) IsEmpty() bool { return sol.Value == nil || len(*sol.Value) == 0 @@ -3717,6 +3762,11 @@ func (page ServiceOperationListPage) Values() []ServiceOperation { return *page.sol.Value } +// Creates a new instance of the ServiceOperationListPage type. +func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return ServiceOperationListPage{fn: getNextPage} +} + // ServiceProperties properties of the Data Migration service instance type ServiceProperties struct { // ProvisioningState - The resource's provisioning state. Possible values include: 'ServiceProvisioningStateAccepted', 'ServiceProvisioningStateDeleting', 'ServiceProvisioningStateDeploying', 'ServiceProvisioningStateStopped', 'ServiceProvisioningStateStopping', 'ServiceProvisioningStateStarting', 'ServiceProvisioningStateFailedToStart', 'ServiceProvisioningStateFailedToStop', 'ServiceProvisioningStateSucceeded', 'ServiceProvisioningStateFailed' @@ -3860,6 +3910,11 @@ func (iter ServiceSkuListIterator) Value() AvailableServiceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceSkuListIterator type. +func NewServiceSkuListIterator(page ServiceSkuListPage) ServiceSkuListIterator { + return ServiceSkuListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ssl ServiceSkuList) IsEmpty() bool { return ssl.Value == nil || len(*ssl.Value) == 0 @@ -3929,6 +3984,11 @@ func (page ServiceSkuListPage) Values() []AvailableServiceSku { return *page.ssl.Value } +// Creates a new instance of the ServiceSkuListPage type. +func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return ServiceSkuListPage{fn: getNextPage} +} + // ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServicesStartFuture struct { @@ -4157,6 +4217,11 @@ func (iter TaskListIterator) Value() ProjectTask { return iter.page.Values()[iter.i] } +// Creates a new instance of the TaskListIterator type. +func NewTaskListIterator(page TaskListPage) TaskListIterator { + return TaskListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (tl TaskList) IsEmpty() bool { return tl.Value == nil || len(*tl.Value) == 0 @@ -4226,6 +4291,11 @@ func (page TaskListPage) Values() []ProjectTask { return *page.tl.Value } +// Creates a new instance of the TaskListPage type. +func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return TaskListPage{fn: getNextPage} +} + // TrackedResource ARM tracked top level resource. type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/datamigrationapi/interfaces.go b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/datamigrationapi/interfaces.go new file mode 100644 index 000000000000..685dae961ea0 --- /dev/null +++ b/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration/datamigrationapi/interfaces.go @@ -0,0 +1,86 @@ +package datamigrationapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration" + "github.com/Azure/go-autorest/autorest" +) + +// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type. +type ResourceSkusClientAPI interface { + ListSkus(ctx context.Context) (result datamigration.ResourceSkusResultPage, err error) +} + +var _ ResourceSkusClientAPI = (*datamigration.ResourceSkusClient)(nil) + +// ServicesClientAPI contains the set of methods on the ServicesClient type. +type ServicesClientAPI interface { + CheckChildrenNameAvailability(ctx context.Context, groupName string, serviceName string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckNameAvailability(ctx context.Context, location string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckStatus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceStatusResponse, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, groupName string, serviceName string, deleteRunningTasks *bool) (result datamigration.ServicesDeleteFuture, err error) + Get(ctx context.Context, groupName string, serviceName string) (result datamigration.Service, err error) + List(ctx context.Context) (result datamigration.ServiceListPage, err error) + ListByResourceGroup(ctx context.Context, groupName string) (result datamigration.ServiceListPage, err error) + ListSkus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceSkuListPage, err error) + Start(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStartFuture, err error) + Stop(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStopFuture, err error) + Update(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesUpdateFuture, err error) +} + +var _ ServicesClientAPI = (*datamigration.ServicesClient)(nil) + +// TasksClientAPI contains the set of methods on the TasksClient type. +type TasksClientAPI interface { + Cancel(ctx context.Context, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, expand string) (result datamigration.ProjectTask, err error) + List(ctx context.Context, groupName string, serviceName string, projectName string, taskType string) (result datamigration.TaskListPage, err error) + Update(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) +} + +var _ TasksClientAPI = (*datamigration.TasksClient)(nil) + +// ProjectsClientAPI contains the set of methods on the ProjectsClient type. +type ProjectsClientAPI interface { + CreateOrUpdate(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + List(ctx context.Context, groupName string, serviceName string) (result datamigration.ProjectListPage, err error) + Update(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) +} + +var _ ProjectsClientAPI = (*datamigration.ProjectsClient)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + List(ctx context.Context, location string) (result datamigration.QuotaListPage, err error) +} + +var _ UsagesClientAPI = (*datamigration.UsagesClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result datamigration.ServiceOperationListPage, err error) +} + +var _ OperationsClientAPI = (*datamigration.OperationsClient)(nil) 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 7561feae37f0..1fd5d0d91e19 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 @@ -3719,6 +3719,11 @@ func (iter ProjectListIterator) Value() Project { return iter.page.Values()[iter.i] } +// Creates a new instance of the ProjectListIterator type. +func NewProjectListIterator(page ProjectListPage) ProjectListIterator { + return ProjectListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (pl ProjectList) IsEmpty() bool { return pl.Value == nil || len(*pl.Value) == 0 @@ -3788,6 +3793,11 @@ func (page ProjectListPage) Values() []Project { return *page.pl.Value } +// Creates a new instance of the ProjectListPage type. +func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return ProjectListPage{fn: getNextPage} +} + // ProjectMetadata common metadata for migration projects type ProjectMetadata struct { // SourceServerName - Source server name @@ -4223,6 +4233,11 @@ func (iter QuotaListIterator) Value() Quota { return iter.page.Values()[iter.i] } +// Creates a new instance of the QuotaListIterator type. +func NewQuotaListIterator(page QuotaListPage) QuotaListIterator { + return QuotaListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ql QuotaList) IsEmpty() bool { return ql.Value == nil || len(*ql.Value) == 0 @@ -4292,6 +4307,11 @@ func (page QuotaListPage) Values() []Quota { return *page.ql.Value } +// Creates a new instance of the QuotaListPage type. +func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return QuotaListPage{fn: getNextPage} +} + // QuotaName the name of the quota type QuotaName struct { // LocalizedValue - The localized name of the quota @@ -4459,6 +4479,11 @@ func (iter ResourceSkusResultIterator) Value() ResourceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ResourceSkusResultIterator type. +func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { + return ResourceSkusResultIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (rsr ResourceSkusResult) IsEmpty() bool { return rsr.Value == nil || len(*rsr.Value) == 0 @@ -4528,6 +4553,11 @@ func (page ResourceSkusResultPage) Values() []ResourceSku { return *page.rsr.Value } +// Creates a new instance of the ResourceSkusResultPage type. +func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return ResourceSkusResultPage{fn: getNextPage} +} + // SchemaComparisonValidationResult results for schema comparison between the source and target type SchemaComparisonValidationResult struct { // SchemaDifferences - List of schema differences between the source and target databases @@ -4788,6 +4818,11 @@ func (iter ServiceListIterator) Value() Service { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceListIterator type. +func NewServiceListIterator(page ServiceListPage) ServiceListIterator { + return ServiceListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sl ServiceList) IsEmpty() bool { return sl.Value == nil || len(*sl.Value) == 0 @@ -4857,6 +4892,11 @@ func (page ServiceListPage) Values() []Service { return *page.sl.Value } +// Creates a new instance of the ServiceListPage type. +func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return ServiceListPage{fn: getNextPage} +} + // ServiceOperation description of an action supported by the Data Migration Service type ServiceOperation struct { // Name - The fully qualified action name, e.g. Microsoft.DataMigration/services/read @@ -4944,6 +4984,11 @@ func (iter ServiceOperationListIterator) Value() ServiceOperation { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceOperationListIterator type. +func NewServiceOperationListIterator(page ServiceOperationListPage) ServiceOperationListIterator { + return ServiceOperationListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sol ServiceOperationList) IsEmpty() bool { return sol.Value == nil || len(*sol.Value) == 0 @@ -5013,6 +5058,11 @@ func (page ServiceOperationListPage) Values() []ServiceOperation { return *page.sol.Value } +// Creates a new instance of the ServiceOperationListPage type. +func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return ServiceOperationListPage{fn: getNextPage} +} + // ServiceProperties properties of the Data Migration service instance type ServiceProperties struct { // ProvisioningState - The resource's provisioning state. Possible values include: 'ServiceProvisioningStateAccepted', 'ServiceProvisioningStateDeleting', 'ServiceProvisioningStateDeploying', 'ServiceProvisioningStateStopped', 'ServiceProvisioningStateStopping', 'ServiceProvisioningStateStarting', 'ServiceProvisioningStateFailedToStart', 'ServiceProvisioningStateFailedToStop', 'ServiceProvisioningStateSucceeded', 'ServiceProvisioningStateFailed' @@ -5156,6 +5206,11 @@ func (iter ServiceSkuListIterator) Value() AvailableServiceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceSkuListIterator type. +func NewServiceSkuListIterator(page ServiceSkuListPage) ServiceSkuListIterator { + return ServiceSkuListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ssl ServiceSkuList) IsEmpty() bool { return ssl.Value == nil || len(*ssl.Value) == 0 @@ -5225,6 +5280,11 @@ func (page ServiceSkuListPage) Values() []AvailableServiceSku { return *page.ssl.Value } +// Creates a new instance of the ServiceSkuListPage type. +func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return ServiceSkuListPage{fn: getNextPage} +} + // ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServicesStartFuture struct { @@ -5463,6 +5523,11 @@ func (iter TaskListIterator) Value() ProjectTask { return iter.page.Values()[iter.i] } +// Creates a new instance of the TaskListIterator type. +func NewTaskListIterator(page TaskListPage) TaskListIterator { + return TaskListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (tl TaskList) IsEmpty() bool { return tl.Value == nil || len(*tl.Value) == 0 @@ -5532,6 +5597,11 @@ func (page TaskListPage) Values() []ProjectTask { return *page.tl.Value } +// Creates a new instance of the TaskListPage type. +func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return TaskListPage{fn: getNextPage} +} + // TrackedResource ARM tracked top level resource. type TrackedResource struct { // Tags - Resource tags. diff --git a/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/datamigrationapi/interfaces.go b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/datamigrationapi/interfaces.go new file mode 100644 index 000000000000..c0a42819bd4e --- /dev/null +++ b/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration/datamigrationapi/interfaces.go @@ -0,0 +1,100 @@ +package datamigrationapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-07-15-preview/datamigration" + "github.com/Azure/go-autorest/autorest" +) + +// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type. +type ResourceSkusClientAPI interface { + ListSkus(ctx context.Context) (result datamigration.ResourceSkusResultPage, err error) +} + +var _ ResourceSkusClientAPI = (*datamigration.ResourceSkusClient)(nil) + +// ServicesClientAPI contains the set of methods on the ServicesClient type. +type ServicesClientAPI interface { + CheckChildrenNameAvailability(ctx context.Context, groupName string, serviceName string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckNameAvailability(ctx context.Context, location string, parameters datamigration.NameAvailabilityRequest) (result datamigration.NameAvailabilityResponse, err error) + CheckStatus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceStatusResponse, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, groupName string, serviceName string, deleteRunningTasks *bool) (result datamigration.ServicesDeleteFuture, err error) + Get(ctx context.Context, groupName string, serviceName string) (result datamigration.Service, err error) + List(ctx context.Context) (result datamigration.ServiceListPage, err error) + ListByResourceGroup(ctx context.Context, groupName string) (result datamigration.ServiceListPage, err error) + ListSkus(ctx context.Context, groupName string, serviceName string) (result datamigration.ServiceSkuListPage, err error) + Start(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStartFuture, err error) + Stop(ctx context.Context, groupName string, serviceName string) (result datamigration.ServicesStopFuture, err error) + Update(ctx context.Context, parameters datamigration.Service, groupName string, serviceName string) (result datamigration.ServicesUpdateFuture, err error) +} + +var _ ServicesClientAPI = (*datamigration.ServicesClient)(nil) + +// TasksClientAPI contains the set of methods on the TasksClient type. +type TasksClientAPI interface { + Cancel(ctx context.Context, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + Command(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, parameters datamigration.BasicCommandProperties) (result datamigration.CommandPropertiesModel, err error) + CreateOrUpdate(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, expand string) (result datamigration.ProjectTask, err error) + List(ctx context.Context, groupName string, serviceName string, projectName string, taskType string) (result datamigration.TaskListPage, err error) + Update(ctx context.Context, parameters datamigration.ProjectTask, groupName string, serviceName string, projectName string, taskName string) (result datamigration.ProjectTask, err error) +} + +var _ TasksClientAPI = (*datamigration.TasksClient)(nil) + +// ProjectsClientAPI contains the set of methods on the ProjectsClient type. +type ProjectsClientAPI interface { + CreateOrUpdate(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, deleteRunningTasks *bool) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) + List(ctx context.Context, groupName string, serviceName string) (result datamigration.ProjectListPage, err error) + Update(ctx context.Context, parameters datamigration.Project, groupName string, serviceName string, projectName string) (result datamigration.Project, err error) +} + +var _ ProjectsClientAPI = (*datamigration.ProjectsClient)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + List(ctx context.Context, location string) (result datamigration.QuotaListPage, err error) +} + +var _ UsagesClientAPI = (*datamigration.UsagesClient)(nil) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result datamigration.ServiceOperationListPage, err error) +} + +var _ OperationsClientAPI = (*datamigration.OperationsClient)(nil) + +// FilesClientAPI contains the set of methods on the FilesClient type. +type FilesClientAPI interface { + CreateOrUpdate(ctx context.Context, parameters datamigration.ProjectFile, groupName string, serviceName string, projectName string, fileName string) (result datamigration.ProjectFile, err error) + Delete(ctx context.Context, groupName string, serviceName string, projectName string, fileName string) (result autorest.Response, err error) + Get(ctx context.Context, groupName string, serviceName string, projectName string, fileName string) (result datamigration.ProjectFile, err error) + List(ctx context.Context, groupName string, serviceName string, projectName string) (result datamigration.FileListPage, err error) + Read(ctx context.Context, groupName string, serviceName string, projectName string, fileName string) (result datamigration.FileStorageInfo, err error) + ReadWrite(ctx context.Context, groupName string, serviceName string, projectName string, fileName string) (result datamigration.FileStorageInfo, err error) + Update(ctx context.Context, parameters datamigration.ProjectFile, groupName string, serviceName string, projectName string, fileName string) (result datamigration.ProjectFile, err error) +} + +var _ FilesClientAPI = (*datamigration.FilesClient)(nil) 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 326d7c86758a..7163e4556d63 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 @@ -1469,6 +1469,8 @@ type ConnectToMongoDbTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -1492,6 +1494,9 @@ func (ctmdtp ConnectToMongoDbTaskProperties) MarshalJSON() ([]byte, error) { if ctmdtp.Commands != nil { objectMap["commands"] = ctmdtp.Commands } + if ctmdtp.ClientData != nil { + objectMap["clientData"] = ctmdtp.ClientData + } if ctmdtp.TaskType != "" { objectMap["taskType"] = ctmdtp.TaskType } @@ -1666,6 +1671,15 @@ func (ctmdtp *ConnectToMongoDbTaskProperties) UnmarshalJSON(body []byte) error { } ctmdtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + ctmdtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -1703,6 +1717,8 @@ type ConnectToSourceMySQLTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -1726,6 +1742,9 @@ func (ctsmstp ConnectToSourceMySQLTaskProperties) MarshalJSON() ([]byte, error) if ctsmstp.Commands != nil { objectMap["commands"] = ctsmstp.Commands } + if ctsmstp.ClientData != nil { + objectMap["clientData"] = ctsmstp.ClientData + } if ctsmstp.TaskType != "" { objectMap["taskType"] = ctsmstp.TaskType } @@ -1900,6 +1919,15 @@ func (ctsmstp *ConnectToSourceMySQLTaskProperties) UnmarshalJSON(body []byte) er } ctsmstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + ctsmstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -1942,6 +1970,8 @@ type ConnectToSourceSQLServerSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -1965,6 +1995,9 @@ func (ctsssstp ConnectToSourceSQLServerSyncTaskProperties) MarshalJSON() ([]byte if ctsssstp.Commands != nil { objectMap["commands"] = ctsssstp.Commands } + if ctsssstp.ClientData != nil { + objectMap["clientData"] = ctsssstp.ClientData + } if ctsssstp.TaskType != "" { objectMap["taskType"] = ctsssstp.TaskType } @@ -2138,6 +2171,15 @@ func (ctsssstp *ConnectToSourceSQLServerSyncTaskProperties) UnmarshalJSON(body [ } ctsssstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + ctsssstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -2620,6 +2662,8 @@ type ConnectToSourceSQLServerTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -2643,6 +2687,9 @@ func (ctssstp ConnectToSourceSQLServerTaskProperties) MarshalJSON() ([]byte, err if ctssstp.Commands != nil { objectMap["commands"] = ctssstp.Commands } + if ctssstp.ClientData != nil { + objectMap["clientData"] = ctssstp.ClientData + } if ctssstp.TaskType != "" { objectMap["taskType"] = ctssstp.TaskType } @@ -2816,6 +2863,15 @@ func (ctssstp *ConnectToSourceSQLServerTaskProperties) UnmarshalJSON(body []byte } ctssstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + ctssstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -2868,6 +2924,8 @@ type ConnectToTargetAzureDbForMySQLTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -2891,6 +2949,9 @@ func (cttadfmstp ConnectToTargetAzureDbForMySQLTaskProperties) MarshalJSON() ([] if cttadfmstp.Commands != nil { objectMap["commands"] = cttadfmstp.Commands } + if cttadfmstp.ClientData != nil { + objectMap["clientData"] = cttadfmstp.ClientData + } if cttadfmstp.TaskType != "" { objectMap["taskType"] = cttadfmstp.TaskType } @@ -3065,6 +3126,15 @@ func (cttadfmstp *ConnectToTargetAzureDbForMySQLTaskProperties) UnmarshalJSON(bo } cttadfmstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + cttadfmstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -3131,6 +3201,8 @@ type ConnectToTargetSQLDbTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -3154,6 +3226,9 @@ func (cttsdtp ConnectToTargetSQLDbTaskProperties) MarshalJSON() ([]byte, error) if cttsdtp.Commands != nil { objectMap["commands"] = cttsdtp.Commands } + if cttsdtp.ClientData != nil { + objectMap["clientData"] = cttsdtp.ClientData + } if cttsdtp.TaskType != "" { objectMap["taskType"] = cttsdtp.TaskType } @@ -3328,6 +3403,15 @@ func (cttsdtp *ConnectToTargetSQLDbTaskProperties) UnmarshalJSON(body []byte) er } cttsdtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + cttsdtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -3380,6 +3464,8 @@ type ConnectToTargetSQLMITaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -3403,6 +3489,9 @@ func (cttsmtp ConnectToTargetSQLMITaskProperties) MarshalJSON() ([]byte, error) if cttsmtp.Commands != nil { objectMap["commands"] = cttsmtp.Commands } + if cttsmtp.ClientData != nil { + objectMap["clientData"] = cttsmtp.ClientData + } if cttsmtp.TaskType != "" { objectMap["taskType"] = cttsmtp.TaskType } @@ -3577,6 +3666,15 @@ func (cttsmtp *ConnectToTargetSQLMITaskProperties) UnmarshalJSON(body []byte) er } cttsmtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + cttsmtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -3614,6 +3712,8 @@ type ConnectToTargetSQLSQLDbSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -3637,6 +3737,9 @@ func (cttssdstp ConnectToTargetSQLSQLDbSyncTaskProperties) MarshalJSON() ([]byte if cttssdstp.Commands != nil { objectMap["commands"] = cttssdstp.Commands } + if cttssdstp.ClientData != nil { + objectMap["clientData"] = cttssdstp.ClientData + } if cttssdstp.TaskType != "" { objectMap["taskType"] = cttssdstp.TaskType } @@ -3811,6 +3914,15 @@ func (cttssdstp *ConnectToTargetSQLSQLDbSyncTaskProperties) UnmarshalJSON(body [ } cttssdstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + cttssdstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -4123,6 +4235,11 @@ func (iter FileListIterator) Value() ProjectFile { return iter.page.Values()[iter.i] } +// Creates a new instance of the FileListIterator type. +func NewFileListIterator(page FileListPage) FileListIterator { + return FileListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (fl FileList) IsEmpty() bool { return fl.Value == nil || len(*fl.Value) == 0 @@ -4192,6 +4309,11 @@ func (page FileListPage) Values() []ProjectFile { return *page.fl.Value } +// Creates a new instance of the FileListPage type. +func NewFileListPage(getNextPage func(context.Context, FileList) (FileList, error)) FileListPage { + return FileListPage{fn: getNextPage} +} + // FileShare file share information with Path, Username, and Password. type FileShare struct { // UserName - User name credential to connect to the share location @@ -4273,6 +4395,8 @@ type GetTdeCertificatesSQLTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -4296,6 +4420,9 @@ func (gtcstp GetTdeCertificatesSQLTaskProperties) MarshalJSON() ([]byte, error) if gtcstp.Commands != nil { objectMap["commands"] = gtcstp.Commands } + if gtcstp.ClientData != nil { + objectMap["clientData"] = gtcstp.ClientData + } if gtcstp.TaskType != "" { objectMap["taskType"] = gtcstp.TaskType } @@ -4470,6 +4597,15 @@ func (gtcstp *GetTdeCertificatesSQLTaskProperties) UnmarshalJSON(body []byte) er } gtcstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + gtcstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -4542,6 +4678,8 @@ type GetUserTablesSQLSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -4565,6 +4703,9 @@ func (gutsstp GetUserTablesSQLSyncTaskProperties) MarshalJSON() ([]byte, error) if gutsstp.Commands != nil { objectMap["commands"] = gutsstp.Commands } + if gutsstp.ClientData != nil { + objectMap["clientData"] = gutsstp.ClientData + } if gutsstp.TaskType != "" { objectMap["taskType"] = gutsstp.TaskType } @@ -4739,6 +4880,15 @@ func (gutsstp *GetUserTablesSQLSyncTaskProperties) UnmarshalJSON(body []byte) er } gutsstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + gutsstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -4800,6 +4950,8 @@ type GetUserTablesSQLTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -4823,6 +4975,9 @@ func (gutstp GetUserTablesSQLTaskProperties) MarshalJSON() ([]byte, error) { if gutstp.Commands != nil { objectMap["commands"] = gutstp.Commands } + if gutstp.ClientData != nil { + objectMap["clientData"] = gutstp.ClientData + } if gutstp.TaskType != "" { objectMap["taskType"] = gutstp.TaskType } @@ -4997,6 +5152,15 @@ func (gutstp *GetUserTablesSQLTaskProperties) UnmarshalJSON(body []byte) error { } gutstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + gutstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -5022,6 +5186,8 @@ type MigrateMongoDbTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -5045,6 +5211,9 @@ func (mmdtp MigrateMongoDbTaskProperties) MarshalJSON() ([]byte, error) { if mmdtp.Commands != nil { objectMap["commands"] = mmdtp.Commands } + if mmdtp.ClientData != nil { + objectMap["clientData"] = mmdtp.ClientData + } if mmdtp.TaskType != "" { objectMap["taskType"] = mmdtp.TaskType } @@ -5219,6 +5388,15 @@ func (mmdtp *MigrateMongoDbTaskProperties) UnmarshalJSON(body []byte) error { } mmdtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + mmdtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -5853,6 +6031,8 @@ type MigrateMySQLAzureDbForMySQLSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -5876,6 +6056,9 @@ func (mmsadfmsstp MigrateMySQLAzureDbForMySQLSyncTaskProperties) MarshalJSON() ( if mmsadfmsstp.Commands != nil { objectMap["commands"] = mmsadfmsstp.Commands } + if mmsadfmsstp.ClientData != nil { + objectMap["clientData"] = mmsadfmsstp.ClientData + } if mmsadfmsstp.TaskType != "" { objectMap["taskType"] = mmsadfmsstp.TaskType } @@ -6049,6 +6232,15 @@ func (mmsadfmsstp *MigrateMySQLAzureDbForMySQLSyncTaskProperties) UnmarshalJSON( } mmsadfmsstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + mmsadfmsstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -6683,6 +6875,8 @@ type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -6706,6 +6900,9 @@ func (mpsadfpsstp MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties) Marsh if mpsadfpsstp.Commands != nil { objectMap["commands"] = mpsadfpsstp.Commands } + if mpsadfpsstp.ClientData != nil { + objectMap["clientData"] = mpsadfpsstp.ClientData + } if mpsadfpsstp.TaskType != "" { objectMap["taskType"] = mpsadfpsstp.TaskType } @@ -6879,6 +7076,15 @@ func (mpsadfpsstp *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties) Unma } mpsadfpsstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + mpsadfpsstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -7288,6 +7494,8 @@ type MigrateSchemaSQLServerSQLDbTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -7311,6 +7519,9 @@ func (mssssdtp MigrateSchemaSQLServerSQLDbTaskProperties) MarshalJSON() ([]byte, if mssssdtp.Commands != nil { objectMap["commands"] = mssssdtp.Commands } + if mssssdtp.ClientData != nil { + objectMap["clientData"] = mssssdtp.ClientData + } if mssssdtp.TaskType != "" { objectMap["taskType"] = mssssdtp.TaskType } @@ -7484,6 +7695,15 @@ func (mssssdtp *MigrateSchemaSQLServerSQLDbTaskProperties) UnmarshalJSON(body [] } mssssdtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + mssssdtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -8254,6 +8474,8 @@ type MigrateSQLServerSQLDbSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -8277,6 +8499,9 @@ func (msssdstp MigrateSQLServerSQLDbSyncTaskProperties) MarshalJSON() ([]byte, e if msssdstp.Commands != nil { objectMap["commands"] = msssdstp.Commands } + if msssdstp.ClientData != nil { + objectMap["clientData"] = msssdstp.ClientData + } if msssdstp.TaskType != "" { objectMap["taskType"] = msssdstp.TaskType } @@ -8450,6 +8675,15 @@ func (msssdstp *MigrateSQLServerSQLDbSyncTaskProperties) UnmarshalJSON(body []by } msssdstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + msssdstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -9003,6 +9237,8 @@ type MigrateSQLServerSQLDbTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -9026,6 +9262,9 @@ func (msssdtp MigrateSQLServerSQLDbTaskProperties) MarshalJSON() ([]byte, error) if msssdtp.Commands != nil { objectMap["commands"] = msssdtp.Commands } + if msssdtp.ClientData != nil { + objectMap["clientData"] = msssdtp.ClientData + } if msssdtp.TaskType != "" { objectMap["taskType"] = msssdtp.TaskType } @@ -9199,6 +9438,15 @@ func (msssdtp *MigrateSQLServerSQLDbTaskProperties) UnmarshalJSON(body []byte) e } msssdtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + msssdtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -9852,6 +10100,8 @@ type MigrateSQLServerSQLMITaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -9875,6 +10125,9 @@ func (msssmtp MigrateSQLServerSQLMITaskProperties) MarshalJSON() ([]byte, error) if msssmtp.Commands != nil { objectMap["commands"] = msssmtp.Commands } + if msssmtp.ClientData != nil { + objectMap["clientData"] = msssmtp.ClientData + } if msssmtp.TaskType != "" { objectMap["taskType"] = msssmtp.TaskType } @@ -10048,6 +10301,15 @@ func (msssmtp *MigrateSQLServerSQLMITaskProperties) UnmarshalJSON(body []byte) e } msssmtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + msssmtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -11499,6 +11761,11 @@ func (iter ProjectListIterator) Value() Project { return iter.page.Values()[iter.i] } +// Creates a new instance of the ProjectListIterator type. +func NewProjectListIterator(page ProjectListPage) ProjectListIterator { + return ProjectListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (pl ProjectList) IsEmpty() bool { return pl.Value == nil || len(*pl.Value) == 0 @@ -11568,6 +11835,11 @@ func (page ProjectListPage) Values() []Project { return *page.pl.Value } +// Creates a new instance of the ProjectListPage type. +func NewProjectListPage(getNextPage func(context.Context, ProjectList) (ProjectList, error)) ProjectListPage { + return ProjectListPage{fn: getNextPage} +} + // ProjectMetadata common metadata for migration projects type ProjectMetadata struct { // SourceServerName - Source server name @@ -11792,6 +12064,8 @@ type ProjectTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -11926,6 +12200,9 @@ func (ptp ProjectTaskProperties) MarshalJSON() ([]byte, error) { if ptp.Commands != nil { objectMap["commands"] = ptp.Commands } + if ptp.ClientData != nil { + objectMap["clientData"] = ptp.ClientData + } if ptp.TaskType != "" { objectMap["taskType"] = ptp.TaskType } @@ -12082,6 +12359,15 @@ func (ptp *ProjectTaskProperties) UnmarshalJSON(body []byte) error { } ptp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + ptp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -12198,6 +12484,11 @@ func (iter QuotaListIterator) Value() Quota { return iter.page.Values()[iter.i] } +// Creates a new instance of the QuotaListIterator type. +func NewQuotaListIterator(page QuotaListPage) QuotaListIterator { + return QuotaListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ql QuotaList) IsEmpty() bool { return ql.Value == nil || len(*ql.Value) == 0 @@ -12267,6 +12558,11 @@ func (page QuotaListPage) Values() []Quota { return *page.ql.Value } +// Creates a new instance of the QuotaListPage type. +func NewQuotaListPage(getNextPage func(context.Context, QuotaList) (QuotaList, error)) QuotaListPage { + return QuotaListPage{fn: getNextPage} +} + // QuotaName the name of the quota type QuotaName struct { // LocalizedValue - The localized name of the quota @@ -12436,6 +12732,11 @@ func (iter ResourceSkusResultIterator) Value() ResourceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ResourceSkusResultIterator type. +func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator { + return ResourceSkusResultIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (rsr ResourceSkusResult) IsEmpty() bool { return rsr.Value == nil || len(*rsr.Value) == 0 @@ -12505,6 +12806,11 @@ func (page ResourceSkusResultPage) Values() []ResourceSku { return *page.rsr.Value } +// Creates a new instance of the ResourceSkusResultPage type. +func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage { + return ResourceSkusResultPage{fn: getNextPage} +} + // SchemaComparisonValidationResult results for schema comparison between the source and target type SchemaComparisonValidationResult struct { // SchemaDifferences - List of schema differences between the source and target databases @@ -12797,6 +13103,11 @@ func (iter ServiceListIterator) Value() Service { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceListIterator type. +func NewServiceListIterator(page ServiceListPage) ServiceListIterator { + return ServiceListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sl ServiceList) IsEmpty() bool { return sl.Value == nil || len(*sl.Value) == 0 @@ -12866,6 +13177,11 @@ func (page ServiceListPage) Values() []Service { return *page.sl.Value } +// Creates a new instance of the ServiceListPage type. +func NewServiceListPage(getNextPage func(context.Context, ServiceList) (ServiceList, error)) ServiceListPage { + return ServiceListPage{fn: getNextPage} +} + // ServiceOperation description of an action supported by the Database Migration Service type ServiceOperation struct { // Name - The fully qualified action name, e.g. Microsoft.DataMigration/services/read @@ -12953,6 +13269,11 @@ func (iter ServiceOperationListIterator) Value() ServiceOperation { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceOperationListIterator type. +func NewServiceOperationListIterator(page ServiceOperationListPage) ServiceOperationListIterator { + return ServiceOperationListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (sol ServiceOperationList) IsEmpty() bool { return sol.Value == nil || len(*sol.Value) == 0 @@ -13022,6 +13343,11 @@ func (page ServiceOperationListPage) Values() []ServiceOperation { return *page.sol.Value } +// Creates a new instance of the ServiceOperationListPage type. +func NewServiceOperationListPage(getNextPage func(context.Context, ServiceOperationList) (ServiceOperationList, error)) ServiceOperationListPage { + return ServiceOperationListPage{fn: getNextPage} +} + // ServiceProperties properties of the Database Migration Service instance type ServiceProperties struct { // ProvisioningState - The resource's provisioning state. Possible values include: 'ServiceProvisioningStateAccepted', 'ServiceProvisioningStateDeleting', 'ServiceProvisioningStateDeploying', 'ServiceProvisioningStateStopped', 'ServiceProvisioningStateStopping', 'ServiceProvisioningStateStarting', 'ServiceProvisioningStateFailedToStart', 'ServiceProvisioningStateFailedToStop', 'ServiceProvisioningStateSucceeded', 'ServiceProvisioningStateFailed' @@ -13165,6 +13491,11 @@ func (iter ServiceSkuListIterator) Value() AvailableServiceSku { return iter.page.Values()[iter.i] } +// Creates a new instance of the ServiceSkuListIterator type. +func NewServiceSkuListIterator(page ServiceSkuListPage) ServiceSkuListIterator { + return ServiceSkuListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (ssl ServiceSkuList) IsEmpty() bool { return ssl.Value == nil || len(*ssl.Value) == 0 @@ -13234,6 +13565,11 @@ func (page ServiceSkuListPage) Values() []AvailableServiceSku { return *page.ssl.Value } +// Creates a new instance of the ServiceSkuListPage type. +func NewServiceSkuListPage(getNextPage func(context.Context, ServiceSkuList) (ServiceSkuList, error)) ServiceSkuListPage { + return ServiceSkuListPage{fn: getNextPage} +} + // ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServicesStartFuture struct { @@ -13502,6 +13838,11 @@ func (iter TaskListIterator) Value() ProjectTask { return iter.page.Values()[iter.i] } +// Creates a new instance of the TaskListIterator type. +func NewTaskListIterator(page TaskListPage) TaskListIterator { + return TaskListIterator{page: page} +} + // IsEmpty returns true if the ListResult contains no values. func (tl TaskList) IsEmpty() bool { return tl.Value == nil || len(*tl.Value) == 0 @@ -13571,6 +13912,11 @@ func (page TaskListPage) Values() []ProjectTask { return *page.tl.Value } +// Creates a new instance of the TaskListPage type. +func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, error)) TaskListPage { + return TaskListPage{fn: getNextPage} +} + // TrackedResource ARM tracked top level resource. type TrackedResource struct { // Tags - Resource tags. @@ -13619,6 +13965,8 @@ type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -13642,6 +13990,9 @@ func (vmisssdstp ValidateMigrationInputSQLServerSQLDbSyncTaskProperties) Marshal if vmisssdstp.Commands != nil { objectMap["commands"] = vmisssdstp.Commands } + if vmisssdstp.ClientData != nil { + objectMap["clientData"] = vmisssdstp.ClientData + } if vmisssdstp.TaskType != "" { objectMap["taskType"] = vmisssdstp.TaskType } @@ -13816,6 +14167,15 @@ func (vmisssdstp *ValidateMigrationInputSQLServerSQLDbSyncTaskProperties) Unmars } vmisssdstp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + vmisssdstp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -13884,6 +14244,8 @@ type ValidateMigrationInputSQLServerSQLMITaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -13907,6 +14269,9 @@ func (vmisssmtp ValidateMigrationInputSQLServerSQLMITaskProperties) MarshalJSON( if vmisssmtp.Commands != nil { objectMap["commands"] = vmisssmtp.Commands } + if vmisssmtp.ClientData != nil { + objectMap["clientData"] = vmisssmtp.ClientData + } if vmisssmtp.TaskType != "" { objectMap["taskType"] = vmisssmtp.TaskType } @@ -14081,6 +14446,15 @@ func (vmisssmtp *ValidateMigrationInputSQLServerSQLMITaskProperties) UnmarshalJS } vmisssmtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + vmisssmtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType @@ -14108,6 +14482,8 @@ type ValidateMongoDbTaskProperties struct { State TaskState `json:"state,omitempty"` // Commands - Array of command properties. Commands *[]BasicCommandProperties `json:"commands,omitempty"` + // ClientData - Key value pairs of client data to attach meta data information to task + ClientData map[string]*string `json:"clientData"` // TaskType - Possible values include: 'TaskTypeUnknown', 'TaskTypeGetTDECertificatesSQL', 'TaskTypeValidateMongoDb', 'TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI', 'TaskTypeValidateMigrationInputSQLServerSQLDbSync', 'TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSync', 'TaskTypeMigrateMySQLAzureDbForMySQLSync', 'TaskTypeMigrateSQLServerAzureSQLDbSync', 'TaskTypeMigrateSQLServerSQLDb', 'TaskTypeMigrateSQLServerAzureSQLDbMI', 'TaskTypeMigrateMongoDb', 'TaskTypeConnectToTargetAzureDbForMySQL', 'TaskTypeConnectToTargetAzureSQLDbMI', 'TaskTypeGetUserTablesAzureSQLDbSync', 'TaskTypeGetUserTablesSQL', 'TaskTypeConnectToTargetSQLDbSync', 'TaskTypeConnectToTargetSQLDb', 'TaskTypeConnectToSourceSQLServerSync', 'TaskTypeConnectToSourceSQLServer', 'TaskTypeConnectMongoDb', 'TaskTypeConnectToSourceMySQL', 'TaskTypeMigrateSchemaSQLServerSQLDb' TaskType TaskType `json:"taskType,omitempty"` } @@ -14131,6 +14507,9 @@ func (vmdtp ValidateMongoDbTaskProperties) MarshalJSON() ([]byte, error) { if vmdtp.Commands != nil { objectMap["commands"] = vmdtp.Commands } + if vmdtp.ClientData != nil { + objectMap["clientData"] = vmdtp.ClientData + } if vmdtp.TaskType != "" { objectMap["taskType"] = vmdtp.TaskType } @@ -14305,6 +14684,15 @@ func (vmdtp *ValidateMongoDbTaskProperties) UnmarshalJSON(body []byte) error { } vmdtp.Commands = &commands } + case "clientData": + if v != nil { + var clientData map[string]*string + err = json.Unmarshal(*v, &clientData) + if err != nil { + return err + } + vmdtp.ClientData = clientData + } case "taskType": if v != nil { var taskType TaskType