From ada6d56430d6508ff94cb84e1df4693130ef9668 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 18 Oct 2022 22:45:19 -0400 Subject: [PATCH] [Release] sdk/resourcemanager/datafactory/armdatafactory/2.0.0 (#19314) * [Release] sdk/resourcemanager/datafactory/armdatafactory/2.0.0 generation from spec commit: 35388d90dfe0dfb8ef0f43cecaf9dc960fbc917e * add -removeUnreferencedTypes flag and update changelog Co-authored-by: ReleaseHelper Co-authored-by: Alancere <804873052@qq.com> --- .../datafactory/armdatafactory/CHANGELOG.md | 14 + .../activityruns_client_example_test.go | 2 +- .../datafactory/armdatafactory/autorest.md | 6 +- .../datafactory/armdatafactory/build.go | 2 +- .../datafactory/armdatafactory/constants.go | 399 +-------- .../dataflowdebugsession_client.go | 1 - ...ataflowdebugsession_client_example_test.go | 2 +- .../armdatafactory/dataflows_client.go | 1 - .../dataflows_client_example_test.go | 50 +- .../armdatafactory/datasets_client.go | 1 - .../datasets_client_example_test.go | 2 +- .../exposurecontrol_client_example_test.go | 2 +- .../armdatafactory/factories_client.go | 2 - .../factories_client_example_test.go | 2 +- .../armdatafactory/globalparameters_client.go | 1 - .../globalparameters_client_example_test.go | 2 +- .../datafactory/armdatafactory/go.mod | 2 +- ...grationruntimenodes_client_example_test.go | 2 +- ...ntimeobjectmetadata_client_example_test.go | 2 +- .../integrationruntimes_client.go | 1 - ...integrationruntimes_client_example_test.go | 2 +- .../armdatafactory/linkedservices_client.go | 1 - .../linkedservices_client_example_test.go | 2 +- .../managedprivateendpoints_client.go | 1 - ...gedprivateendpoints_client_example_test.go | 2 +- .../managedvirtualnetworks_client.go | 1 - ...agedvirtualnetworks_client_example_test.go | 2 +- .../datafactory/armdatafactory/models.go | 347 +------- .../armdatafactory/models_serde.go | 831 +----------------- .../armdatafactory/operations_client.go | 1 - .../operations_client_example_test.go | 2 +- .../pipelineruns_client_example_test.go | 2 +- .../armdatafactory/pipelines_client.go | 1 - .../pipelines_client_example_test.go | 2 +- .../armdatafactory/polymorphic_helpers.go | 20 - ...eendpointconnection_client_example_test.go | 2 +- .../privateendpointconnections_client.go | 1 - ...endpointconnections_client_example_test.go | 2 +- ...rivatelinkresources_client_example_test.go | 2 +- .../triggerruns_client_example_test.go | 2 +- .../armdatafactory/triggers_client.go | 1 - .../triggers_client_example_test.go | 2 +- 42 files changed, 105 insertions(+), 1620 deletions(-) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md index c5c7249ae8be..fabda5079cce 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md @@ -1,5 +1,19 @@ # Release History +## 2.0.0 (2022-10-10) +### Breaking Changes + +- Type of `SQLMISource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLMISink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `AzureSQLSink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLServerSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLServerSink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `AzureSQLSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLSink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `AmazonRdsForSQLServerSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` + + ## 1.3.0 (2022-09-07) ### Features Added diff --git a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go index 36805d8df12a..63aa4a6a7e9b 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md index b3b98ff7c923..6dc8cb1269bf 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/9e8ee53d513a1f7e698bba19dcaf1d376da00b95/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/9e8ee53d513a1f7e698bba19dcaf1d376da00b95/specification/datafactory/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/73c209464425d36f85e8ee305e29de5288e54c2f/specification/datafactory/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/73c209464425d36f85e8ee305e29de5288e54c2f/specification/datafactory/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.3.0 +module-version: 2.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/datafactory/armdatafactory/build.go b/sdk/resourcemanager/datafactory/armdatafactory/build.go index 30633f2435d2..5b58cdff3f82 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/build.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/build.go @@ -2,6 +2,6 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // This file enables 'go generate' to regenerate this specific SDK -//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/datafactory/armdatafactory +//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -removeUnreferencedTypes resourcemanager/datafactory/armdatafactory package armdatafactory diff --git a/sdk/resourcemanager/datafactory/armdatafactory/constants.go b/sdk/resourcemanager/datafactory/armdatafactory/constants.go index 7d21b79780bb..8a747e66f029 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/constants.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/constants.go @@ -11,47 +11,9 @@ package armdatafactory const ( moduleName = "armdatafactory" - moduleVersion = "v1.3.0" + moduleVersion = "v2.0.0" ) -type AmazonRdsForOraclePartitionOption string - -const ( - AmazonRdsForOraclePartitionOptionDynamicRange AmazonRdsForOraclePartitionOption = "DynamicRange" - AmazonRdsForOraclePartitionOptionNone AmazonRdsForOraclePartitionOption = "None" - AmazonRdsForOraclePartitionOptionPhysicalPartitionsOfTable AmazonRdsForOraclePartitionOption = "PhysicalPartitionsOfTable" -) - -// PossibleAmazonRdsForOraclePartitionOptionValues returns the possible values for the AmazonRdsForOraclePartitionOption const type. -func PossibleAmazonRdsForOraclePartitionOptionValues() []AmazonRdsForOraclePartitionOption { - return []AmazonRdsForOraclePartitionOption{ - AmazonRdsForOraclePartitionOptionDynamicRange, - AmazonRdsForOraclePartitionOptionNone, - AmazonRdsForOraclePartitionOptionPhysicalPartitionsOfTable, - } -} - -type AvroCompressionCodec string - -const ( - AvroCompressionCodecBzip2 AvroCompressionCodec = "bzip2" - AvroCompressionCodecDeflate AvroCompressionCodec = "deflate" - AvroCompressionCodecNone AvroCompressionCodec = "none" - AvroCompressionCodecSnappy AvroCompressionCodec = "snappy" - AvroCompressionCodecXz AvroCompressionCodec = "xz" -) - -// PossibleAvroCompressionCodecValues returns the possible values for the AvroCompressionCodec const type. -func PossibleAvroCompressionCodecValues() []AvroCompressionCodec { - return []AvroCompressionCodec{ - AvroCompressionCodecBzip2, - AvroCompressionCodecDeflate, - AvroCompressionCodecNone, - AvroCompressionCodecSnappy, - AvroCompressionCodecXz, - } -} - // AzureFunctionActivityMethod - The list of HTTP methods supported by a AzureFunctionActivity. type AzureFunctionActivityMethod string @@ -158,56 +120,6 @@ func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadC } } -// CompressionCodec - All available compressionCodec values. -type CompressionCodec string - -const ( - CompressionCodecBzip2 CompressionCodec = "bzip2" - CompressionCodecDeflate CompressionCodec = "deflate" - CompressionCodecGzip CompressionCodec = "gzip" - CompressionCodecLz4 CompressionCodec = "lz4" - CompressionCodecLzo CompressionCodec = "lzo" - CompressionCodecNone CompressionCodec = "none" - CompressionCodecSnappy CompressionCodec = "snappy" - CompressionCodecTar CompressionCodec = "tar" - CompressionCodecTarGZip CompressionCodec = "tarGZip" - CompressionCodecZipDeflate CompressionCodec = "zipDeflate" -) - -// PossibleCompressionCodecValues returns the possible values for the CompressionCodec const type. -func PossibleCompressionCodecValues() []CompressionCodec { - return []CompressionCodec{ - CompressionCodecBzip2, - CompressionCodecDeflate, - CompressionCodecGzip, - CompressionCodecLz4, - CompressionCodecLzo, - CompressionCodecNone, - CompressionCodecSnappy, - CompressionCodecTar, - CompressionCodecTarGZip, - CompressionCodecZipDeflate, - } -} - -// CopyBehaviorType - All available types of copy behavior. -type CopyBehaviorType string - -const ( - CopyBehaviorTypeFlattenHierarchy CopyBehaviorType = "FlattenHierarchy" - CopyBehaviorTypeMergeFiles CopyBehaviorType = "MergeFiles" - CopyBehaviorTypePreserveHierarchy CopyBehaviorType = "PreserveHierarchy" -) - -// PossibleCopyBehaviorTypeValues returns the possible values for the CopyBehaviorType const type. -func PossibleCopyBehaviorTypeValues() []CopyBehaviorType { - return []CopyBehaviorType{ - CopyBehaviorTypeFlattenHierarchy, - CopyBehaviorTypeMergeFiles, - CopyBehaviorTypePreserveHierarchy, - } -} - // CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string (or Expression with resultType // string). type CosmosDbConnectionMode string @@ -307,22 +219,6 @@ func PossibleDataFlowReferenceTypeValues() []DataFlowReferenceType { } } -// DatasetCompressionLevel - All available compression levels. -type DatasetCompressionLevel string - -const ( - DatasetCompressionLevelFastest DatasetCompressionLevel = "Fastest" - DatasetCompressionLevelOptimal DatasetCompressionLevel = "Optimal" -) - -// PossibleDatasetCompressionLevelValues returns the possible values for the DatasetCompressionLevel const type. -func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel { - return []DatasetCompressionLevel{ - DatasetCompressionLevelFastest, - DatasetCompressionLevelOptimal, - } -} - // DatasetReferenceType - Dataset reference type. type DatasetReferenceType string @@ -421,40 +317,6 @@ func PossibleDependencyConditionValues() []DependencyCondition { } } -// DynamicsAuthenticationType - All available dynamicsAuthenticationType values. -type DynamicsAuthenticationType string - -const ( - DynamicsAuthenticationTypeAADServicePrincipal DynamicsAuthenticationType = "AADServicePrincipal" - DynamicsAuthenticationTypeIfd DynamicsAuthenticationType = "Ifd" - DynamicsAuthenticationTypeOffice365 DynamicsAuthenticationType = "Office365" -) - -// PossibleDynamicsAuthenticationTypeValues returns the possible values for the DynamicsAuthenticationType const type. -func PossibleDynamicsAuthenticationTypeValues() []DynamicsAuthenticationType { - return []DynamicsAuthenticationType{ - DynamicsAuthenticationTypeAADServicePrincipal, - DynamicsAuthenticationTypeIfd, - DynamicsAuthenticationTypeOffice365, - } -} - -// DynamicsDeploymentType - All available dynamicsDeploymentType values. -type DynamicsDeploymentType string - -const ( - DynamicsDeploymentTypeOnPremisesWithIfd DynamicsDeploymentType = "OnPremisesWithIfd" - DynamicsDeploymentTypeOnline DynamicsDeploymentType = "Online" -) - -// PossibleDynamicsDeploymentTypeValues returns the possible values for the DynamicsDeploymentType const type. -func PossibleDynamicsDeploymentTypeValues() []DynamicsDeploymentType { - return []DynamicsDeploymentType{ - DynamicsDeploymentTypeOnPremisesWithIfd, - DynamicsDeploymentTypeOnline, - } -} - // DynamicsSinkWriteBehavior - Defines values for DynamicsSinkWriteBehavior. type DynamicsSinkWriteBehavior string @@ -653,24 +515,6 @@ func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { } } -// HdiNodeTypes - All available HdiNodeTypes values. -type HdiNodeTypes string - -const ( - HdiNodeTypesHeadnode HdiNodeTypes = "Headnode" - HdiNodeTypesWorkernode HdiNodeTypes = "Workernode" - HdiNodeTypesZookeeper HdiNodeTypes = "Zookeeper" -) - -// PossibleHdiNodeTypesValues returns the possible values for the HdiNodeTypes const type. -func PossibleHdiNodeTypesValues() []HdiNodeTypes { - return []HdiNodeTypes{ - HdiNodeTypesHeadnode, - HdiNodeTypesWorkernode, - HdiNodeTypesZookeeper, - } -} - // HiveAuthenticationType - The authentication method used to access the Hive server. type HiveAuthenticationType string @@ -945,38 +789,6 @@ func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateRe } } -// JSONFormatFilePattern - JSON format file pattern. A property of JsonFormat. -type JSONFormatFilePattern string - -const ( - JSONFormatFilePatternArrayOfObjects JSONFormatFilePattern = "arrayOfObjects" - JSONFormatFilePatternSetOfObjects JSONFormatFilePattern = "setOfObjects" -) - -// PossibleJSONFormatFilePatternValues returns the possible values for the JSONFormatFilePattern const type. -func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern { - return []JSONFormatFilePattern{ - JSONFormatFilePatternArrayOfObjects, - JSONFormatFilePatternSetOfObjects, - } -} - -// JSONWriteFilePattern - All available filePatterns. -type JSONWriteFilePattern string - -const ( - JSONWriteFilePatternArrayOfObjects JSONWriteFilePattern = "arrayOfObjects" - JSONWriteFilePatternSetOfObjects JSONWriteFilePattern = "setOfObjects" -) - -// PossibleJSONWriteFilePatternValues returns the possible values for the JSONWriteFilePattern const type. -func PossibleJSONWriteFilePatternValues() []JSONWriteFilePattern { - return []JSONWriteFilePattern{ - JSONWriteFilePatternArrayOfObjects, - JSONWriteFilePatternSetOfObjects, - } -} - // LinkedServiceReferenceType - Linked service reference type. type LinkedServiceReferenceType string @@ -1041,24 +853,6 @@ func PossibleMongoDbAuthenticationTypeValues() []MongoDbAuthenticationType { } } -// NetezzaPartitionOption - The partition mechanism that will be used for Netezza read in parallel. -type NetezzaPartitionOption string - -const ( - NetezzaPartitionOptionDataSlice NetezzaPartitionOption = "DataSlice" - NetezzaPartitionOptionDynamicRange NetezzaPartitionOption = "DynamicRange" - NetezzaPartitionOptionNone NetezzaPartitionOption = "None" -) - -// PossibleNetezzaPartitionOptionValues returns the possible values for the NetezzaPartitionOption const type. -func PossibleNetezzaPartitionOptionValues() []NetezzaPartitionOption { - return []NetezzaPartitionOption{ - NetezzaPartitionOptionDataSlice, - NetezzaPartitionOptionDynamicRange, - NetezzaPartitionOptionNone, - } -} - // NotebookParameterType - Notebook parameter type. type NotebookParameterType string @@ -1131,43 +925,6 @@ func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType { } } -// OraclePartitionOption - The partition mechanism that will be used for Oracle read in parallel. -type OraclePartitionOption string - -const ( - OraclePartitionOptionDynamicRange OraclePartitionOption = "DynamicRange" - OraclePartitionOptionNone OraclePartitionOption = "None" - OraclePartitionOptionPhysicalPartitionsOfTable OraclePartitionOption = "PhysicalPartitionsOfTable" -) - -// PossibleOraclePartitionOptionValues returns the possible values for the OraclePartitionOption const type. -func PossibleOraclePartitionOptionValues() []OraclePartitionOption { - return []OraclePartitionOption{ - OraclePartitionOptionDynamicRange, - OraclePartitionOptionNone, - OraclePartitionOptionPhysicalPartitionsOfTable, - } -} - -type OrcCompressionCodec string - -const ( - OrcCompressionCodecLzo OrcCompressionCodec = "lzo" - OrcCompressionCodecNone OrcCompressionCodec = "none" - OrcCompressionCodecSnappy OrcCompressionCodec = "snappy" - OrcCompressionCodecZlib OrcCompressionCodec = "zlib" -) - -// PossibleOrcCompressionCodecValues returns the possible values for the OrcCompressionCodec const type. -func PossibleOrcCompressionCodecValues() []OrcCompressionCodec { - return []OrcCompressionCodec{ - OrcCompressionCodecLzo, - OrcCompressionCodecNone, - OrcCompressionCodecSnappy, - OrcCompressionCodecZlib, - } -} - // ParameterType - Parameter type. type ParameterType string @@ -1447,58 +1204,6 @@ func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthTy } } -// SQLDWWriteBehaviorEnum - Specify the write behavior when copying data into sql dw. -type SQLDWWriteBehaviorEnum string - -const ( - SQLDWWriteBehaviorEnumInsert SQLDWWriteBehaviorEnum = "Insert" - SQLDWWriteBehaviorEnumUpsert SQLDWWriteBehaviorEnum = "Upsert" -) - -// PossibleSQLDWWriteBehaviorEnumValues returns the possible values for the SQLDWWriteBehaviorEnum const type. -func PossibleSQLDWWriteBehaviorEnumValues() []SQLDWWriteBehaviorEnum { - return []SQLDWWriteBehaviorEnum{ - SQLDWWriteBehaviorEnumInsert, - SQLDWWriteBehaviorEnumUpsert, - } -} - -// SQLPartitionOption - The partition mechanism that will be used for Sql read in parallel. -type SQLPartitionOption string - -const ( - SQLPartitionOptionDynamicRange SQLPartitionOption = "DynamicRange" - SQLPartitionOptionNone SQLPartitionOption = "None" - SQLPartitionOptionPhysicalPartitionsOfTable SQLPartitionOption = "PhysicalPartitionsOfTable" -) - -// PossibleSQLPartitionOptionValues returns the possible values for the SQLPartitionOption const type. -func PossibleSQLPartitionOptionValues() []SQLPartitionOption { - return []SQLPartitionOption{ - SQLPartitionOptionDynamicRange, - SQLPartitionOptionNone, - SQLPartitionOptionPhysicalPartitionsOfTable, - } -} - -// SQLWriteBehaviorEnum - Specify the write behavior when copying data into sql. -type SQLWriteBehaviorEnum string - -const ( - SQLWriteBehaviorEnumInsert SQLWriteBehaviorEnum = "Insert" - SQLWriteBehaviorEnumStoredProcedure SQLWriteBehaviorEnum = "StoredProcedure" - SQLWriteBehaviorEnumUpsert SQLWriteBehaviorEnum = "Upsert" -) - -// PossibleSQLWriteBehaviorEnumValues returns the possible values for the SQLWriteBehaviorEnum const type. -func PossibleSQLWriteBehaviorEnumValues() []SQLWriteBehaviorEnum { - return []SQLWriteBehaviorEnum{ - SQLWriteBehaviorEnumInsert, - SQLWriteBehaviorEnumStoredProcedure, - SQLWriteBehaviorEnumUpsert, - } -} - // SalesforceSinkWriteBehavior - The write behavior for the operation. Default is Insert. type SalesforceSinkWriteBehavior string @@ -1563,48 +1268,6 @@ func PossibleSapHanaAuthenticationTypeValues() []SapHanaAuthenticationType { } } -// SapHanaPartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. -type SapHanaPartitionOption string - -const ( - SapHanaPartitionOptionNone SapHanaPartitionOption = "None" - SapHanaPartitionOptionPhysicalPartitionsOfTable SapHanaPartitionOption = "PhysicalPartitionsOfTable" - SapHanaPartitionOptionSapHanaDynamicRange SapHanaPartitionOption = "SapHanaDynamicRange" -) - -// PossibleSapHanaPartitionOptionValues returns the possible values for the SapHanaPartitionOption const type. -func PossibleSapHanaPartitionOptionValues() []SapHanaPartitionOption { - return []SapHanaPartitionOption{ - SapHanaPartitionOptionNone, - SapHanaPartitionOptionPhysicalPartitionsOfTable, - SapHanaPartitionOptionSapHanaDynamicRange, - } -} - -// SapTablePartitionOption - The partition mechanism that will be used for SAP table read in parallel. -type SapTablePartitionOption string - -const ( - SapTablePartitionOptionNone SapTablePartitionOption = "None" - SapTablePartitionOptionPartitionOnCalendarDate SapTablePartitionOption = "PartitionOnCalendarDate" - SapTablePartitionOptionPartitionOnCalendarMonth SapTablePartitionOption = "PartitionOnCalendarMonth" - SapTablePartitionOptionPartitionOnCalendarYear SapTablePartitionOption = "PartitionOnCalendarYear" - SapTablePartitionOptionPartitionOnInt SapTablePartitionOption = "PartitionOnInt" - SapTablePartitionOptionPartitionOnTime SapTablePartitionOption = "PartitionOnTime" -) - -// PossibleSapTablePartitionOptionValues returns the possible values for the SapTablePartitionOption const type. -func PossibleSapTablePartitionOptionValues() []SapTablePartitionOption { - return []SapTablePartitionOption{ - SapTablePartitionOptionNone, - SapTablePartitionOptionPartitionOnCalendarDate, - SapTablePartitionOptionPartitionOnCalendarMonth, - SapTablePartitionOptionPartitionOnCalendarYear, - SapTablePartitionOptionPartitionOnInt, - SapTablePartitionOptionPartitionOnTime, - } -} - // ScriptActivityLogDestination - The destination of logs. Type: string. type ScriptActivityLogDestination string @@ -1733,22 +1396,6 @@ func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType } } -// ServicePrincipalCredentialType - All available servicePrincipalCredentialType values. -type ServicePrincipalCredentialType string - -const ( - ServicePrincipalCredentialTypeServicePrincipalCert ServicePrincipalCredentialType = "ServicePrincipalCert" - ServicePrincipalCredentialTypeServicePrincipalKey ServicePrincipalCredentialType = "ServicePrincipalKey" -) - -// PossibleServicePrincipalCredentialTypeValues returns the possible values for the ServicePrincipalCredentialType const type. -func PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType { - return []ServicePrincipalCredentialType{ - ServicePrincipalCredentialTypeServicePrincipalCert, - ServicePrincipalCredentialTypeServicePrincipalKey, - } -} - // SftpAuthenticationType - The authentication type to be used to connect to the FTP server. type SftpAuthenticationType string @@ -1891,32 +1538,6 @@ func PossibleSsisPackageLocationTypeValues() []SsisPackageLocationType { } } -// StoredProcedureParameterType - Stored procedure parameter type. -type StoredProcedureParameterType string - -const ( - StoredProcedureParameterTypeBoolean StoredProcedureParameterType = "Boolean" - StoredProcedureParameterTypeDate StoredProcedureParameterType = "Date" - StoredProcedureParameterTypeDecimal StoredProcedureParameterType = "Decimal" - StoredProcedureParameterTypeGUID StoredProcedureParameterType = "Guid" - StoredProcedureParameterTypeInt StoredProcedureParameterType = "Int" - StoredProcedureParameterTypeInt64 StoredProcedureParameterType = "Int64" - StoredProcedureParameterTypeString StoredProcedureParameterType = "String" -) - -// PossibleStoredProcedureParameterTypeValues returns the possible values for the StoredProcedureParameterType const type. -func PossibleStoredProcedureParameterTypeValues() []StoredProcedureParameterType { - return []StoredProcedureParameterType{ - StoredProcedureParameterTypeBoolean, - StoredProcedureParameterTypeDate, - StoredProcedureParameterTypeDecimal, - StoredProcedureParameterTypeGUID, - StoredProcedureParameterTypeInt, - StoredProcedureParameterTypeInt64, - StoredProcedureParameterTypeString, - } -} - // SybaseAuthenticationType - AuthenticationType to be used for connection. type SybaseAuthenticationType string @@ -1965,24 +1586,6 @@ func PossibleTeradataAuthenticationTypeValues() []TeradataAuthenticationType { } } -// TeradataPartitionOption - The partition mechanism that will be used for teradata read in parallel. -type TeradataPartitionOption string - -const ( - TeradataPartitionOptionDynamicRange TeradataPartitionOption = "DynamicRange" - TeradataPartitionOptionHash TeradataPartitionOption = "Hash" - TeradataPartitionOptionNone TeradataPartitionOption = "None" -) - -// PossibleTeradataPartitionOptionValues returns the possible values for the TeradataPartitionOption const type. -func PossibleTeradataPartitionOptionValues() []TeradataPartitionOption { - return []TeradataPartitionOption{ - TeradataPartitionOptionDynamicRange, - TeradataPartitionOptionHash, - TeradataPartitionOptionNone, - } -} - // TriggerReferenceType - Trigger reference type. type TriggerReferenceType string diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go index 26dca937676e..3c5a097eb588 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go @@ -291,7 +291,6 @@ func (client *DataFlowDebugSessionClient) executeCommandCreateRequest(ctx contex } // NewQueryByFactoryPager - Query all active data flow debug sessions. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go index 72df6769c4f9..bb7058c09e92 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go index 4e9d69ee0df2..c6f6f82bf990 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go @@ -238,7 +238,6 @@ func (client *DataFlowsClient) getHandleResponse(resp *http.Response) (DataFlows } // NewListByFactoryPager - Lists data flows. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go index 00e06704dc07..684aeb379fa8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json @@ -33,7 +33,29 @@ func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsCreate() { Type: to.Ptr("MappingDataFlow"), Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), + ScriptLines: []*string{ + to.Ptr("source(output("), + to.Ptr("PreviousConversionRate as double,"), + to.Ptr("Country as string,"), + to.Ptr("DateTime1 as string,"), + to.Ptr("CurrentConversionRate as double"), + to.Ptr("),"), + to.Ptr("allowSchemaDrift: false,"), + to.Ptr("validateSchema: false) ~> USDCurrency"), + to.Ptr("source(output("), + to.Ptr("PreviousConversionRate as double,"), + to.Ptr("Country as string,"), + to.Ptr("DateTime1 as string,"), + to.Ptr("CurrentConversionRate as double"), + to.Ptr("),"), + to.Ptr("allowSchemaDrift: true,"), + to.Ptr("validateSchema: false) ~> CADSource"), + to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), + to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), + to.Ptr("NewCurrencyColumn split(Country == 'USD',"), + to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), + to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), + to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, Sinks: []*armdatafactory.DataFlowSink{ { Name: to.Ptr("USDSink"), @@ -90,7 +112,29 @@ func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsUpdate() { Type: to.Ptr("MappingDataFlow"), Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), + ScriptLines: []*string{ + to.Ptr("source(output("), + to.Ptr("PreviousConversionRate as double,"), + to.Ptr("Country as string,"), + to.Ptr("DateTime1 as string,"), + to.Ptr("CurrentConversionRate as double"), + to.Ptr("),"), + to.Ptr("allowSchemaDrift: false,"), + to.Ptr("validateSchema: false) ~> USDCurrency"), + to.Ptr("source(output("), + to.Ptr("PreviousConversionRate as double,"), + to.Ptr("Country as string,"), + to.Ptr("DateTime1 as string,"), + to.Ptr("CurrentConversionRate as double"), + to.Ptr("),"), + to.Ptr("allowSchemaDrift: true,"), + to.Ptr("validateSchema: false) ~> CADSource"), + to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), + to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), + to.Ptr("NewCurrencyColumn split(Country == 'USD',"), + to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), + to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), + to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, Sinks: []*armdatafactory.DataFlowSink{ { Name: to.Ptr("USDSink"), diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go index 48540d6347d0..eef3739fc1af 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go @@ -237,7 +237,6 @@ func (client *DatasetsClient) getHandleResponse(resp *http.Response) (DatasetsCl } // NewListByFactoryPager - Lists datasets. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go index f67b88bebec0..2aac661e13ba 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go index 4489ca56ab8f..157d3f38ff43 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go index f31442b0c39e..77e6651119f4 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go @@ -392,7 +392,6 @@ func (client *FactoriesClient) getGitHubAccessTokenHandleResponse(resp *http.Res } // NewListPager - Lists factories under the specified subscription. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. func (client *FactoriesClient) NewListPager(options *FactoriesClientListOptions) *runtime.Pager[FactoriesClientListResponse] { @@ -451,7 +450,6 @@ func (client *FactoriesClient) listHandleResponse(resp *http.Response) (Factorie } // NewListByResourceGroupPager - Lists factories. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // options - FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup diff --git a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go index 7acf23e59e18..d3fdd4175e75 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go index 33286baad5b6..74dc9d800d77 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go @@ -232,7 +232,6 @@ func (client *GlobalParametersClient) getHandleResponse(resp *http.Response) (Gl } // NewListByFactoryPager - Lists Global parameters -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go index b63d90a72344..a4484c9ea399 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.mod b/sdk/resourcemanager/datafactory/armdatafactory/go.mod index ec11752241e9..d3d4f885840b 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -1,4 +1,4 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2 go 1.18 diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go index be484ae627ee..59e1ddcfc02e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go index 97852576987d..365f717913e4 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go index 1974c879f5cd..e090c28c73af 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go @@ -552,7 +552,6 @@ func (client *IntegrationRuntimesClient) listAuthKeysHandleResponse(resp *http.R } // NewListByFactoryPager - Lists integration runtimes. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go index 29f856722c7c..09fdca3f51ab 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go index b50a07008e3a..b21601112959 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go @@ -238,7 +238,6 @@ func (client *LinkedServicesClient) getHandleResponse(resp *http.Response) (Link } // NewListByFactoryPager - Lists linked services. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go index 55302f1c4e25..d731c7404c11 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go index a716fde9eb4d..bc7be33c3a33 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go @@ -255,7 +255,6 @@ func (client *ManagedPrivateEndpointsClient) getHandleResponse(resp *http.Respon } // NewListByFactoryPager - Lists managed private endpoints. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go index 45bac9436a35..ac2b28c654b9 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go index fcd3edf413a6..51ea09b7b913 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go @@ -187,7 +187,6 @@ func (client *ManagedVirtualNetworksClient) getHandleResponse(resp *http.Respons } // NewListByFactoryPager - Lists managed Virtual Networks. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go index 001af089eaf2..6a5c1978b38a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go @@ -13,7 +13,7 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models.go b/sdk/resourcemanager/datafactory/armdatafactory/models.go index 9cf024799953..aa1efbaf2f40 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models.go @@ -163,15 +163,6 @@ type AddDataFlowToDebugSessionResponse struct { JobVersion *string `json:"jobVersion,omitempty"` } -// AdditionalColumns - Specify the column name and value of additional columns. -type AdditionalColumns struct { - // Additional column name. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - - // Additional column value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - // AmazonMWSLinkedService - Amazon Marketplace Web Service linked service. type AmazonMWSLinkedService struct { // REQUIRED; Type of linked service. @@ -625,7 +616,7 @@ type AmazonRdsForSQLServerSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AmazonRdsForSQLServerSource. @@ -5134,7 +5125,7 @@ type AzureSQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` @@ -5215,7 +5206,7 @@ type AzureSQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureSQLSource. @@ -6390,27 +6381,6 @@ type ChainingTriggerTypeProperties struct { RunDimension *string `json:"runDimension,omitempty"` } -// CloudError - The object that defines the structure of an Azure Data Factory error response. -type CloudError struct { - // REQUIRED; Error data - Error *CloudErrorBody `json:"error,omitempty"` -} - -// CloudErrorBody - The object that defines the structure of an Azure Data Factory error. -type CloudErrorBody struct { - // REQUIRED; Error code. - Code *string `json:"code,omitempty"` - - // REQUIRED; Error message. - Message *string `json:"message,omitempty"` - - // Array with additional error details. - Details []*CloudError `json:"details,omitempty"` - - // Property name/path in request associated with error. - Target *string `json:"target,omitempty"` -} - // CmdkeySetup - The custom setup of running cmdkey commands. type CmdkeySetup struct { // REQUIRED; The type of custom setup. @@ -7158,27 +7128,6 @@ type CopySource struct { // GetCopySource implements the CopySourceClassification interface for type CopySource. func (c *CopySource) GetCopySource() *CopySource { return c } -// CopyTranslatorClassification provides polymorphic access to related types. -// Call the interface's GetCopyTranslator() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *CopyTranslator, *TabularTranslator -type CopyTranslatorClassification interface { - // GetCopyTranslator returns the CopyTranslator content of the underlying type. - GetCopyTranslator() *CopyTranslator -} - -// CopyTranslator - A copy activity translator. -type CopyTranslator struct { - // REQUIRED; Copy translator type. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} -} - -// GetCopyTranslator implements the CopyTranslatorClassification interface for type CopyTranslator. -func (c *CopyTranslator) GetCopyTranslator() *CopyTranslator { return c } - // CosmosDbLinkedService - Microsoft Azure Cosmos Database (CosmosDB) linked service. type CosmosDbLinkedService struct { // REQUIRED; Type of linked service. @@ -7816,34 +7765,6 @@ type CreateRunResponse struct { RunID *string `json:"runId,omitempty"` } -// CredentialClassification provides polymorphic access to related types. -// Call the interface's GetCredential() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *Credential, *ManagedIdentityCredential, *ServicePrincipalCredential -type CredentialClassification interface { - // GetCredential returns the Credential content of the underlying type. - GetCredential() *Credential -} - -// Credential - The Azure Data Factory nested object which contains the information and credential which can be used to connect -// with related store or compute resource. -type Credential struct { - // REQUIRED; Type of credential. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // List of tags that can be used for describing the Credential. - Annotations []interface{} `json:"annotations,omitempty"` - - // Credential description. - Description *string `json:"description,omitempty"` -} - -// GetCredential implements the CredentialClassification interface for type Credential. -func (c *Credential) GetCredential() *Credential { return c } - // CredentialReference - Credential reference type. type CredentialReference struct { // REQUIRED; Reference credential name. @@ -7856,24 +7777,6 @@ type CredentialReference struct { AdditionalProperties map[string]interface{} } -// CredentialResource - Credential resource type. -type CredentialResource struct { - // REQUIRED; Properties of credentials. - Properties CredentialClassification `json:"properties,omitempty"` - - // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` - - // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` -} - // CustomActivity - Custom activity type. type CustomActivity struct { // REQUIRED; Activity name. @@ -8835,15 +8738,6 @@ type DatasetCompression struct { Level interface{} `json:"level,omitempty"` } -// DatasetDataElement - Columns that define the structure of the dataset. -type DatasetDataElement struct { - // Name of the column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - - // Type of the column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - // DatasetDebugResource - Dataset debug resource. type DatasetDebugResource struct { // REQUIRED; Dataset properties. @@ -8927,18 +8821,6 @@ type DatasetResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// DatasetSchemaDataElement - Columns that define the physical type schema of the dataset. -type DatasetSchemaDataElement struct { - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // Name of the schema column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - - // Type of the schema column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - // DatasetStorageFormatClassification provides polymorphic access to related types. // Call the interface's GetDatasetStorageFormat() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: @@ -12382,15 +12264,6 @@ type GenericDatasetTypeProperties struct { TableName interface{} `json:"tableName,omitempty"` } -// GetDataFactoryOperationStatusResponse - Response body structure for get data factory operation status. -type GetDataFactoryOperationStatusResponse struct { - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // Status of the operation. - Status *string `json:"status,omitempty"` -} - // GetMetadataActivity - Activity to get metadata of dataset type GetMetadataActivity struct { // REQUIRED; Activity name. @@ -15814,15 +15687,6 @@ type IntegrationRuntimeStatus struct { // GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type IntegrationRuntimeStatus. func (i *IntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus { return i } -// IntegrationRuntimeStatusListResponse - A list of integration runtime status. -type IntegrationRuntimeStatusListResponse struct { - // REQUIRED; List of integration runtime status. - Value []*IntegrationRuntimeStatusResponse `json:"value,omitempty"` - - // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - // IntegrationRuntimeStatusResponse - Integration runtime status response. type IntegrationRuntimeStatusResponse struct { // REQUIRED; Integration runtime properties. @@ -16860,40 +16724,6 @@ func (m *MagentoSource) GetTabularSource() *TabularSource { } } -// ManagedIdentityCredential - Managed identity credential. -type ManagedIdentityCredential struct { - // REQUIRED; Type of credential. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // List of tags that can be used for describing the Credential. - Annotations []interface{} `json:"annotations,omitempty"` - - // Credential description. - Description *string `json:"description,omitempty"` - - // Managed identity credential properties. - TypeProperties *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` -} - -// GetCredential implements the CredentialClassification interface for type ManagedIdentityCredential. -func (m *ManagedIdentityCredential) GetCredential() *Credential { - return &Credential{ - Type: m.Type, - Description: m.Description, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, - } -} - -// ManagedIdentityTypeProperties - Managed identity type properties. -type ManagedIdentityTypeProperties struct { - // The resource id of user assigned managed identity - ResourceID *string `json:"resourceId,omitempty"` -} - // ManagedIntegrationRuntime - Managed integration runtime, including managed elastic and managed dedicated integration runtimes. type ManagedIntegrationRuntime struct { // REQUIRED; Type of integration runtime. @@ -22040,27 +21870,6 @@ type RerunTumblingWindowTriggerTypeProperties struct { RerunConcurrency *int32 `json:"rerunConcurrency,omitempty"` } -// Resource - Azure Data Factory top-level resource. -type Resource struct { - // The resource location. - Location *string `json:"location,omitempty"` - - // The resource tags. - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; Etag identifies change in the resource. - ETag *string `json:"eTag,omitempty" azure:"ro"` - - // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` -} - // ResponsysLinkedService - Responsys linked service. type ResponsysLinkedService struct { // REQUIRED; Type of linked service. @@ -22767,7 +22576,7 @@ type SQLMISink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` @@ -22848,7 +22657,7 @@ type SQLMISource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLMISource. @@ -22983,7 +22792,7 @@ type SQLServerSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` @@ -23064,7 +22873,7 @@ type SQLServerSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLServerSource. @@ -23252,7 +23061,7 @@ type SQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` @@ -23335,7 +23144,7 @@ type SQLSource struct { SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLSource. @@ -26151,46 +25960,6 @@ func (s *ServiceNowSource) GetTabularSource() *TabularSource { } } -// ServicePrincipalCredential - Service principal credential. -type ServicePrincipalCredential struct { - // REQUIRED; Type of credential. - Type *string `json:"type,omitempty"` - - // REQUIRED; Service Principal credential properties. - TypeProperties *ServicePrincipalCredentialTypeProperties `json:"typeProperties,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // List of tags that can be used for describing the Credential. - Annotations []interface{} `json:"annotations,omitempty"` - - // Credential description. - Description *string `json:"description,omitempty"` -} - -// GetCredential implements the CredentialClassification interface for type ServicePrincipalCredential. -func (s *ServicePrincipalCredential) GetCredential() *Credential { - return &Credential{ - Type: s.Type, - Description: s.Description, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, - } -} - -// ServicePrincipalCredentialTypeProperties - Service Principal credential type properties. -type ServicePrincipalCredentialTypeProperties struct { - // The app ID of the service principal used to authenticate - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - - // The key of the service principal used to authenticate. - ServicePrincipalKey *AzureKeyVaultSecretReference `json:"servicePrincipalKey,omitempty"` - - // The ID of the tenant to which the service principal belongs - Tenant interface{} `json:"tenant,omitempty"` -} - // SetVariableActivity - Set value for a Variable. type SetVariableActivity struct { // REQUIRED; Activity name. @@ -27785,36 +27554,6 @@ type StoreWriteSettings struct { // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type StoreWriteSettings. func (s *StoreWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return s } -// StoredProcedureParameter - SQL stored procedure parameter. -type StoredProcedureParameter struct { - // Stored procedure parameter type. - Type *StoredProcedureParameterType `json:"type,omitempty"` - - // Stored procedure parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - -// SubResource - Azure Data Factory nested resource, which belongs to a factory. -type SubResource struct { - // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` - - // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// SubResourceDebugResource - Azure Data Factory nested debug resource. -type SubResourceDebugResource struct { - // The resource name. - Name *string `json:"name,omitempty"` -} - // SwitchActivity - This activity evaluates an expression and executes activities under the cases property that correspond // to the expression evaluation expected in the equals property. type SwitchActivity struct { @@ -28322,53 +28061,6 @@ func (t *TabularSource) GetCopySource() *CopySource { // GetTabularSource implements the TabularSourceClassification interface for type TabularSource. func (t *TabularSource) GetTabularSource() *TabularSource { return t } -// TabularTranslator - A copy activity tabular translator. -type TabularTranslator struct { - // REQUIRED; Copy translator type. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression with resultType object). - CollectionReference interface{} `json:"collectionReference,omitempty"` - - // Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: string (or Expression with resultType - // string). This property will be retired. Please use mappings property. - ColumnMappings interface{} `json:"columnMappings,omitempty"` - - // Whether to map complex (array and object) values to simple strings in json format. Type: boolean (or Expression with resultType - // boolean). - MapComplexValuesToString interface{} `json:"mapComplexValuesToString,omitempty"` - - // Column mappings with logical types. Tabular->tabular example: - // [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - // Hierarchical->tabular example: - // [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - // Type: object (or Expression with resultType object). - Mappings interface{} `json:"mappings,omitempty"` - - // The schema mapping to map between tabular data and hierarchical data. Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", - // "Column3": "$.Column2.Property2"}. Type: object (or Expression - // with resultType object). This property will be retired. Please use mappings property. - SchemaMapping interface{} `json:"schemaMapping,omitempty"` - - // Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType - // boolean). - TypeConversion interface{} `json:"typeConversion,omitempty"` - - // Type conversion settings - TypeConversionSettings *TypeConversionSettings `json:"typeConversionSettings,omitempty"` -} - -// GetCopyTranslator implements the CopyTranslatorClassification interface for type TabularTranslator. -func (t *TabularTranslator) GetCopyTranslator() *CopyTranslator { - return &CopyTranslator{ - Type: t.Type, - AdditionalProperties: t.AdditionalProperties, - } -} - // TarGZipReadSettings - The TarGZip compression read settings. type TarGZipReadSettings struct { // REQUIRED; The Compression setting type. @@ -29135,27 +28827,6 @@ type TwilioLinkedServiceTypeProperties struct { UserName interface{} `json:"userName,omitempty"` } -// TypeConversionSettings - Type conversion settings -type TypeConversionSettings struct { - // Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean). - AllowDataTruncation interface{} `json:"allowDataTruncation,omitempty"` - - // The culture used to convert data from/to string. Type: string (or Expression with resultType string). - Culture interface{} `json:"culture,omitempty"` - - // The format for DateTime values. Type: string (or Expression with resultType string). - DateTimeFormat interface{} `json:"dateTimeFormat,omitempty"` - - // The format for DateTimeOffset values. Type: string (or Expression with resultType string). - DateTimeOffsetFormat interface{} `json:"dateTimeOffsetFormat,omitempty"` - - // The format for TimeSpan values. Type: string (or Expression with resultType string). - TimeSpanFormat interface{} `json:"timeSpanFormat,omitempty"` - - // Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean). - TreatBooleanAsNumber interface{} `json:"treatBooleanAsNumber,omitempty"` -} - // UntilActivity - This activity executes inner activities until the specified boolean expression results to true or timeout // is reached, whichever is earlier. type UntilActivity struct { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go index c0b63e746bbe..b1c6cf33e117 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go @@ -361,37 +361,6 @@ func (a *AddDataFlowToDebugSessionResponse) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AdditionalColumns. -func (a AdditionalColumns) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", &a.Name) - populate(objectMap, "value", &a.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalColumns. -func (a *AdditionalColumns) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &a.Name) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &a.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type AmazonMWSLinkedService. func (a AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1099,7 +1068,7 @@ func (a AmazonRdsForSQLServerSource) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlReaderStoredProcedureName", &a.SQLReaderStoredProcedureName) populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &a.StoredProcedureParameters) objectMap["type"] = "AmazonRdsForSqlServerSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -8708,7 +8677,7 @@ func (a AzureSQLSink) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlWriterUseTableLock", &a.SQLWriterUseTableLock) populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &a.StoredProcedureParameters) populate(objectMap, "storedProcedureTableTypeParameterName", &a.StoredProcedureTableTypeParameterName) populate(objectMap, "tableOption", &a.TableOption) objectMap["type"] = "AzureSqlSink" @@ -8813,7 +8782,7 @@ func (a AzureSQLSource) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlReaderStoredProcedureName", &a.SQLReaderStoredProcedureName) populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &a.StoredProcedureParameters) objectMap["type"] = "AzureSqlSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -10867,72 +10836,6 @@ func (c *ChainingTriggerTypeProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CloudError. -func (c CloudError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "error", c.Error) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CloudError. -func (c *CloudError) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "error": - err = unpopulate(val, "Error", &c.Error) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type CloudErrorBody. -func (c CloudErrorBody) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", c.Code) - populate(objectMap, "details", c.Details) - populate(objectMap, "message", c.Message) - populate(objectMap, "target", c.Target) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CloudErrorBody. -func (c *CloudErrorBody) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "code": - err = unpopulate(val, "Code", &c.Code) - delete(rawMsg, key) - case "details": - err = unpopulate(val, "Details", &c.Details) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &c.Message) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &c.Target) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type CmdkeySetup. func (c CmdkeySetup) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12120,48 +12023,6 @@ func (c *CopySource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CopyTranslator. -func (c CopyTranslator) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["type"] = c.Type - if c.AdditionalProperties != nil { - for key, val := range c.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CopyTranslator. -func (c *CopyTranslator) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - default: - if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - c.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedService. func (c CosmosDbLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -13267,56 +13128,6 @@ func (c *CreateRunResponse) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Credential. -func (c Credential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", c.Annotations) - populate(objectMap, "description", c.Description) - objectMap["type"] = c.Type - if c.AdditionalProperties != nil { - for key, val := range c.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Credential. -func (c *Credential) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "annotations": - err = unpopulate(val, "Annotations", &c.Annotations) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &c.Description) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - default: - if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - c.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type CredentialReference. func (c CredentialReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -13363,49 +13174,6 @@ func (c *CredentialReference) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CredentialResource. -func (c CredentialResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", c.Etag) - populate(objectMap, "id", c.ID) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "type", c.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialResource. -func (c *CredentialResource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "etag": - err = unpopulate(val, "Etag", &c.Etag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) - delete(rawMsg, key) - case "properties": - c.Properties, err = unmarshalCredentialClassification(val) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type CustomActivity. func (c CustomActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15116,37 +14884,6 @@ func (d *DatasetCompression) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DatasetDataElement. -func (d DatasetDataElement) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", &d.Name) - populate(objectMap, "type", &d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatasetDataElement. -func (d *DatasetDataElement) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &d.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type DatasetDebugResource. func (d DatasetDebugResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15364,52 +15101,6 @@ func (d *DatasetResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DatasetSchemaDataElement. -func (d DatasetSchemaDataElement) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", &d.Name) - populate(objectMap, "type", &d.Type) - if d.AdditionalProperties != nil { - for key, val := range d.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatasetSchemaDataElement. -func (d *DatasetSchemaDataElement) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &d.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - default: - if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - d.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type DatasetStorageFormat. func (d DatasetStorageFormat) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -21163,48 +20854,6 @@ func (g *GenericDatasetTypeProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GetDataFactoryOperationStatusResponse. -func (g GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "status", g.Status) - if g.AdditionalProperties != nil { - for key, val := range g.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GetDataFactoryOperationStatusResponse. -func (g *GetDataFactoryOperationStatusResponse) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "status": - err = unpopulate(val, "Status", &g.Status) - delete(rawMsg, key) - default: - if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - g.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type GetMetadataActivity. func (g GetMetadataActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -27064,37 +26713,6 @@ func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusListResponse. -func (i IntegrationRuntimeStatusListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", i.NextLink) - populate(objectMap, "value", i.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusListResponse. -func (i *IntegrationRuntimeStatusListResponse) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &i.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &i.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusResponse. func (i IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -28726,87 +28344,6 @@ func (m *MagentoSource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ManagedIdentityCredential. -func (m ManagedIdentityCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", m.Annotations) - populate(objectMap, "description", m.Description) - objectMap["type"] = "ManagedIdentity" - populate(objectMap, "typeProperties", m.TypeProperties) - if m.AdditionalProperties != nil { - for key, val := range m.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityCredential. -func (m *ManagedIdentityCredential) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "annotations": - err = unpopulate(val, "Annotations", &m.Annotations) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &m.Description) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &m.TypeProperties) - delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ManagedIdentityTypeProperties. -func (m ManagedIdentityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resourceId", m.ResourceID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityTypeProperties. -func (m *ManagedIdentityTypeProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "resourceId": - err = unpopulate(val, "ResourceID", &m.ResourceID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntime. func (m ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -38083,53 +37620,6 @@ func (r *RerunTumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) er return nil } -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "eTag", r.ETag) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. -func (r *Resource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "eTag": - err = unpopulate(val, "ETag", &r.ETag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &r.ID) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &r.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &r.Name) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &r.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &r.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ResponsysLinkedService. func (r ResponsysLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39242,7 +38732,7 @@ func (s SQLMISink) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) populate(objectMap, "storedProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) populate(objectMap, "tableOption", &s.TableOption) objectMap["type"] = "SqlMISink" @@ -39347,7 +38837,7 @@ func (s SQLMISource) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) objectMap["type"] = "SqlMISource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -39574,7 +39064,7 @@ func (s SQLServerSink) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) populate(objectMap, "storedProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) populate(objectMap, "tableOption", &s.TableOption) objectMap["type"] = "SqlServerSink" @@ -39679,7 +39169,7 @@ func (s SQLServerSource) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) objectMap["type"] = "SqlServerSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -39976,7 +39466,7 @@ func (s SQLSink) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) populate(objectMap, "storedProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) populate(objectMap, "tableOption", &s.TableOption) objectMap["type"] = "SqlSink" @@ -40081,7 +39571,7 @@ func (s SQLSource) MarshalJSON() ([]byte, error) { populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) objectMap["type"] = "SqlSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -44839,95 +44329,6 @@ func (s *ServiceNowSource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredential. -func (s ServicePrincipalCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", s.Annotations) - populate(objectMap, "description", s.Description) - objectMap["type"] = "ServicePrincipal" - populate(objectMap, "typeProperties", s.TypeProperties) - if s.AdditionalProperties != nil { - for key, val := range s.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredential. -func (s *ServicePrincipalCredential) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "annotations": - err = unpopulate(val, "Annotations", &s.Annotations) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &s.TypeProperties) - delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredentialTypeProperties. -func (s ServicePrincipalCredentialTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) - populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) - populate(objectMap, "tenant", &s.Tenant) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredentialTypeProperties. -func (s *ServicePrincipalCredentialTypeProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "servicePrincipalId": - err = unpopulate(val, "ServicePrincipalID", &s.ServicePrincipalID) - delete(rawMsg, key) - case "servicePrincipalKey": - err = unpopulate(val, "ServicePrincipalKey", &s.ServicePrincipalKey) - delete(rawMsg, key) - case "tenant": - err = unpopulate(val, "Tenant", &s.Tenant) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type SetVariableActivity. func (s SetVariableActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -47648,103 +47049,6 @@ func (s *StoreWriteSettings) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type StoredProcedureParameter. -func (s StoredProcedureParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "type", s.Type) - populate(objectMap, "value", &s.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type StoredProcedureParameter. -func (s *StoredProcedureParameter) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &s.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SubResource. -func (s SubResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", s.Etag) - populate(objectMap, "id", s.ID) - populate(objectMap, "name", s.Name) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SubResource. -func (s *SubResource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "etag": - err = unpopulate(val, "Etag", &s.Etag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &s.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SubResourceDebugResource. -func (s SubResourceDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", s.Name) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SubResourceDebugResource. -func (s *SubResourceDebugResource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type SwitchActivity. func (s SwitchActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -48539,76 +47843,6 @@ func (t *TabularSource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type TabularTranslator. -func (t TabularTranslator) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "collectionReference", &t.CollectionReference) - populate(objectMap, "columnMappings", &t.ColumnMappings) - populate(objectMap, "mapComplexValuesToString", &t.MapComplexValuesToString) - populate(objectMap, "mappings", &t.Mappings) - populate(objectMap, "schemaMapping", &t.SchemaMapping) - objectMap["type"] = "TabularTranslator" - populate(objectMap, "typeConversion", &t.TypeConversion) - populate(objectMap, "typeConversionSettings", t.TypeConversionSettings) - if t.AdditionalProperties != nil { - for key, val := range t.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TabularTranslator. -func (t *TabularTranslator) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "collectionReference": - err = unpopulate(val, "CollectionReference", &t.CollectionReference) - delete(rawMsg, key) - case "columnMappings": - err = unpopulate(val, "ColumnMappings", &t.ColumnMappings) - delete(rawMsg, key) - case "mapComplexValuesToString": - err = unpopulate(val, "MapComplexValuesToString", &t.MapComplexValuesToString) - delete(rawMsg, key) - case "mappings": - err = unpopulate(val, "Mappings", &t.Mappings) - delete(rawMsg, key) - case "schemaMapping": - err = unpopulate(val, "SchemaMapping", &t.SchemaMapping) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &t.Type) - delete(rawMsg, key) - case "typeConversion": - err = unpopulate(val, "TypeConversion", &t.TypeConversion) - delete(rawMsg, key) - case "typeConversionSettings": - err = unpopulate(val, "TypeConversionSettings", &t.TypeConversionSettings) - delete(rawMsg, key) - default: - if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - t.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type TarGZipReadSettings. func (t TarGZipReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -49938,53 +49172,6 @@ func (t *TwilioLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type TypeConversionSettings. -func (t TypeConversionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowDataTruncation", &t.AllowDataTruncation) - populate(objectMap, "culture", &t.Culture) - populate(objectMap, "dateTimeFormat", &t.DateTimeFormat) - populate(objectMap, "dateTimeOffsetFormat", &t.DateTimeOffsetFormat) - populate(objectMap, "timeSpanFormat", &t.TimeSpanFormat) - populate(objectMap, "treatBooleanAsNumber", &t.TreatBooleanAsNumber) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TypeConversionSettings. -func (t *TypeConversionSettings) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "allowDataTruncation": - err = unpopulate(val, "AllowDataTruncation", &t.AllowDataTruncation) - delete(rawMsg, key) - case "culture": - err = unpopulate(val, "Culture", &t.Culture) - delete(rawMsg, key) - case "dateTimeFormat": - err = unpopulate(val, "DateTimeFormat", &t.DateTimeFormat) - delete(rawMsg, key) - case "dateTimeOffsetFormat": - err = unpopulate(val, "DateTimeOffsetFormat", &t.DateTimeOffsetFormat) - delete(rawMsg, key) - case "timeSpanFormat": - err = unpopulate(val, "TimeSpanFormat", &t.TimeSpanFormat) - delete(rawMsg, key) - case "treatBooleanAsNumber": - err = unpopulate(val, "TreatBooleanAsNumber", &t.TreatBooleanAsNumber) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type UntilActivity. func (u UntilActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go index 2e9c3e89702f..26a5b95922ce 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go @@ -50,7 +50,6 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists the available Azure Data Factory API operations. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go index fb5c0f670330..a2f87feff04c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go @@ -13,7 +13,7 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go index b5f1cb1aeab2..bacb852995d1 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go index 86a73d3bab6a..978cf9cc9460 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go @@ -315,7 +315,6 @@ func (client *PipelinesClient) getHandleResponse(resp *http.Response) (Pipelines } // NewListByFactoryPager - Lists pipelines. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go index 31d24e2e64f4..79329cb3eba6 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go index fcb8c6757d5b..030a6ecb2592 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go @@ -452,26 +452,6 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi return b, json.Unmarshal(rawMsg, b) } -func unmarshalCredentialClassification(rawMsg json.RawMessage) (CredentialClassification, error) { - if rawMsg == nil { - return nil, nil - } - var m map[string]interface{} - if err := json.Unmarshal(rawMsg, &m); err != nil { - return nil, err - } - var b CredentialClassification - switch m["type"] { - case "ManagedIdentity": - b = &ManagedIdentityCredential{} - case "ServicePrincipal": - b = &ServicePrincipalCredential{} - default: - b = &Credential{} - } - return b, json.Unmarshal(rawMsg, b) -} - func unmarshalCustomSetupBaseClassification(rawMsg json.RawMessage) (CustomSetupBaseClassification, error) { if rawMsg == nil { return nil, nil diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go index c681736224af..5c88e47fc117 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go index 47c4c7445a5b..340027f8759a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go @@ -56,7 +56,6 @@ func NewPrivateEndPointConnectionsClient(subscriptionID string, credential azcor } // NewListByFactoryPager - Lists Private endpoint connections -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go index 449acb43d445..b90b628f942c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go @@ -13,7 +13,7 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go index 5cc4fdec25fc..d4df2646eb9c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go @@ -13,7 +13,7 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go index c0327f6b7796..9a197f34e72d 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go index 0d2fc2c53043..cc1b2a6ea17b 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go @@ -299,7 +299,6 @@ func (client *TriggersClient) getEventSubscriptionStatusHandleResponse(resp *htt } // NewListByFactoryPager - Lists triggers. -// If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2018-06-01 // resourceGroupName - The resource group name. // factoryName - The factory name. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go index cf2e3335c17b..0fd65f27742b 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json