diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
index ebcffa68fe80..a77ba733b6d8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
@@ -1,14 +1,59 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-05-09)
+
+- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
-### Breaking Changes
+* `models.ImpalaThriftTransportProtocol` was added
-### Bugs Fixed
+* `models.DatabricksJobActivity` was added
+
+* `models.AmazonRdsForOracleAuthenticationType` was added
+
+#### `models.AmazonRdsForOracleLinkedService` was modified
-### Other Changes
+* `fetchTswtzAsTimestamp()` was added
+* `encryptionClient()` was added
+* `withUsername(java.lang.Object)` was added
+* `encryptionTypesClient()` was added
+* `authenticationType()` was added
+* `withStatementCacheSize(java.lang.Object)` was added
+* `withEncryptionTypesClient(java.lang.Object)` was added
+* `fetchSize()` was added
+* `username()` was added
+* `withFetchSize(java.lang.Object)` was added
+* `initializationString()` was added
+* `supportV1DataTypes()` was added
+* `withCryptoChecksumTypesClient(java.lang.Object)` was added
+* `initialLobFetchSize()` was added
+* `withCryptoChecksumClient(java.lang.Object)` was added
+* `withEncryptionClient(java.lang.Object)` was added
+* `cryptoChecksumClient()` was added
+* `statementCacheSize()` was added
+* `withSupportV1DataTypes(java.lang.Object)` was added
+* `cryptoChecksumTypesClient()` was added
+* `withInitializationString(java.lang.Object)` was added
+* `server()` was added
+* `withEnableBulkLoad(java.lang.Object)` was added
+* `withInitialLobFetchSize(java.lang.Object)` was added
+* `withAuthenticationType(models.AmazonRdsForOracleAuthenticationType)` was added
+* `withFetchTswtzAsTimestamp(java.lang.Object)` was added
+* `withServer(java.lang.Object)` was added
+* `enableBulkLoad()` was added
+
+#### `models.AzureDatabricksLinkedService` was modified
+
+* `withDataSecurityMode(java.lang.Object)` was added
+* `dataSecurityMode()` was added
+
+#### `models.ImpalaLinkedService` was modified
+
+* `thriftTransportProtocol()` was added
+* `withThriftTransportProtocol(models.ImpalaThriftTransportProtocol)` was added
+* `enableServerCertificateValidation()` was added
+* `withEnableServerCertificateValidation(java.lang.Object)` was added
## 1.1.0 (2025-04-10)
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md
index cd3b1148f9fe..a8f3426705b9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/README.md
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-datafactory
- 1.1.0
+ 1.2.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
index 40812bb6077e..270be640be82 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
@@ -3,1084 +3,1163 @@
## ActivityRuns
-- [QueryByPipelineRunSync](#activityruns_querybypipelinerunsync)
+- [QueryByPipelineRun](#activityruns_querybypipelinerun)
## ChangeDataCapture
-- [CreateOrUpdateSync](#changedatacapture_createorupdatesync)
-- [DeleteSync](#changedatacapture_deletesync)
-- [GetSync](#changedatacapture_getsync)
-- [ListByFactorySync](#changedatacapture_listbyfactorysync)
-- [StartSync](#changedatacapture_startsync)
-- [StatusSync](#changedatacapture_statussync)
-- [StopSync](#changedatacapture_stopsync)
+- [CreateOrUpdate](#changedatacapture_createorupdate)
+- [Delete](#changedatacapture_delete)
+- [Get](#changedatacapture_get)
+- [ListByFactory](#changedatacapture_listbyfactory)
+- [Start](#changedatacapture_start)
+- [Status](#changedatacapture_status)
+- [Stop](#changedatacapture_stop)
## CredentialOperations
-- [CreateOrUpdateSync](#credentialoperations_createorupdatesync)
-- [DeleteSync](#credentialoperations_deletesync)
-- [GetSync](#credentialoperations_getsync)
-- [ListByFactorySync](#credentialoperations_listbyfactorysync)
+- [CreateOrUpdate](#credentialoperations_createorupdate)
+- [Delete](#credentialoperations_delete)
+- [Get](#credentialoperations_get)
+- [ListByFactory](#credentialoperations_listbyfactory)
## DataFlowDebugSession
-- [AddDataFlowSync](#dataflowdebugsession_adddataflowsync)
+- [AddDataFlow](#dataflowdebugsession_adddataflow)
- [Create](#dataflowdebugsession_create)
-- [DeleteSync](#dataflowdebugsession_deletesync)
+- [Delete](#dataflowdebugsession_delete)
- [ExecuteCommand](#dataflowdebugsession_executecommand)
-- [QueryByFactorySync](#dataflowdebugsession_querybyfactorysync)
+- [QueryByFactory](#dataflowdebugsession_querybyfactory)
## DataFlows
-- [CreateOrUpdateSync](#dataflows_createorupdatesync)
-- [DeleteSync](#dataflows_deletesync)
-- [GetSync](#dataflows_getsync)
-- [ListByFactorySync](#dataflows_listbyfactorysync)
+- [CreateOrUpdate](#dataflows_createorupdate)
+- [Delete](#dataflows_delete)
+- [Get](#dataflows_get)
+- [ListByFactory](#dataflows_listbyfactory)
## Datasets
-- [CreateOrUpdateSync](#datasets_createorupdatesync)
-- [DeleteSync](#datasets_deletesync)
-- [GetSync](#datasets_getsync)
-- [ListByFactorySync](#datasets_listbyfactorysync)
+- [CreateOrUpdate](#datasets_createorupdate)
+- [Delete](#datasets_delete)
+- [Get](#datasets_get)
+- [ListByFactory](#datasets_listbyfactory)
## ExposureControl
-- [GetFeatureValueByFactorySync](#exposurecontrol_getfeaturevaluebyfactorysync)
-- [GetFeatureValueSync](#exposurecontrol_getfeaturevaluesync)
-- [QueryFeatureValuesByFactorySync](#exposurecontrol_queryfeaturevaluesbyfactorysync)
+- [GetFeatureValue](#exposurecontrol_getfeaturevalue)
+- [GetFeatureValueByFactory](#exposurecontrol_getfeaturevaluebyfactory)
+- [QueryFeatureValuesByFactory](#exposurecontrol_queryfeaturevaluesbyfactory)
## Factories
-- [ConfigureFactoryRepoSync](#factories_configurefactoryreposync)
-- [CreateOrUpdateSync](#factories_createorupdatesync)
-- [DeleteSync](#factories_deletesync)
-- [GetByResourceGroupSync](#factories_getbyresourcegroupsync)
-- [GetDataPlaneAccessSync](#factories_getdataplaneaccesssync)
-- [GetGitHubAccessTokenSync](#factories_getgithubaccesstokensync)
-- [ListByResourceGroupSync](#factories_listbyresourcegroupsync)
-- [ListSync](#factories_listsync)
-- [UpdateSync](#factories_updatesync)
+- [ConfigureFactoryRepo](#factories_configurefactoryrepo)
+- [CreateOrUpdate](#factories_createorupdate)
+- [Delete](#factories_delete)
+- [GetByResourceGroup](#factories_getbyresourcegroup)
+- [GetDataPlaneAccess](#factories_getdataplaneaccess)
+- [GetGitHubAccessToken](#factories_getgithubaccesstoken)
+- [List](#factories_list)
+- [ListByResourceGroup](#factories_listbyresourcegroup)
+- [Update](#factories_update)
## GlobalParameters
-- [CreateOrUpdateSync](#globalparameters_createorupdatesync)
-- [DeleteSync](#globalparameters_deletesync)
-- [GetSync](#globalparameters_getsync)
-- [ListByFactorySync](#globalparameters_listbyfactorysync)
+- [CreateOrUpdate](#globalparameters_createorupdate)
+- [Delete](#globalparameters_delete)
+- [Get](#globalparameters_get)
+- [ListByFactory](#globalparameters_listbyfactory)
## IntegrationRuntimeNodes
-- [DeleteSync](#integrationruntimenodes_deletesync)
-- [GetIpAddressSync](#integrationruntimenodes_getipaddresssync)
-- [GetSync](#integrationruntimenodes_getsync)
-- [UpdateSync](#integrationruntimenodes_updatesync)
+- [Delete](#integrationruntimenodes_delete)
+- [Get](#integrationruntimenodes_get)
+- [GetIpAddress](#integrationruntimenodes_getipaddress)
+- [Update](#integrationruntimenodes_update)
## IntegrationRuntimeObjectMetadata
-- [GetSync](#integrationruntimeobjectmetadata_getsync)
+- [Get](#integrationruntimeobjectmetadata_get)
- [Refresh](#integrationruntimeobjectmetadata_refresh)
## IntegrationRuntimes
-- [CreateLinkedIntegrationRuntimeSync](#integrationruntimes_createlinkedintegrationruntimesync)
-- [CreateOrUpdateSync](#integrationruntimes_createorupdatesync)
-- [DeleteSync](#integrationruntimes_deletesync)
-- [GetConnectionInfoSync](#integrationruntimes_getconnectioninfosync)
-- [GetMonitoringDataSync](#integrationruntimes_getmonitoringdatasync)
-- [GetStatusSync](#integrationruntimes_getstatussync)
-- [GetSync](#integrationruntimes_getsync)
-- [ListAuthKeysSync](#integrationruntimes_listauthkeyssync)
-- [ListByFactorySync](#integrationruntimes_listbyfactorysync)
-- [ListOutboundNetworkDependenciesEndpointsSync](#integrationruntimes_listoutboundnetworkdependenciesendpointssync)
-- [RegenerateAuthKeySync](#integrationruntimes_regenerateauthkeysync)
-- [RemoveLinksSync](#integrationruntimes_removelinkssync)
+- [CreateLinkedIntegrationRuntime](#integrationruntimes_createlinkedintegrationruntime)
+- [CreateOrUpdate](#integrationruntimes_createorupdate)
+- [Delete](#integrationruntimes_delete)
+- [Get](#integrationruntimes_get)
+- [GetConnectionInfo](#integrationruntimes_getconnectioninfo)
+- [GetMonitoringData](#integrationruntimes_getmonitoringdata)
+- [GetStatus](#integrationruntimes_getstatus)
+- [ListAuthKeys](#integrationruntimes_listauthkeys)
+- [ListByFactory](#integrationruntimes_listbyfactory)
+- [ListOutboundNetworkDependenciesEndpoints](#integrationruntimes_listoutboundnetworkdependenciesendpoints)
+- [RegenerateAuthKey](#integrationruntimes_regenerateauthkey)
+- [RemoveLinks](#integrationruntimes_removelinks)
- [Start](#integrationruntimes_start)
- [Stop](#integrationruntimes_stop)
-- [SyncCredentialsSync](#integrationruntimes_synccredentialssync)
-- [UpdateSync](#integrationruntimes_updatesync)
-- [UpgradeSync](#integrationruntimes_upgradesync)
+- [SyncCredentials](#integrationruntimes_synccredentials)
+- [Update](#integrationruntimes_update)
+- [Upgrade](#integrationruntimes_upgrade)
## LinkedServices
-- [CreateOrUpdateSync](#linkedservices_createorupdatesync)
-- [DeleteSync](#linkedservices_deletesync)
-- [GetSync](#linkedservices_getsync)
-- [ListByFactorySync](#linkedservices_listbyfactorysync)
+- [CreateOrUpdate](#linkedservices_createorupdate)
+- [Delete](#linkedservices_delete)
+- [Get](#linkedservices_get)
+- [ListByFactory](#linkedservices_listbyfactory)
## ManagedPrivateEndpoints
-- [CreateOrUpdateSync](#managedprivateendpoints_createorupdatesync)
-- [DeleteSync](#managedprivateendpoints_deletesync)
-- [GetSync](#managedprivateendpoints_getsync)
-- [ListByFactorySync](#managedprivateendpoints_listbyfactorysync)
+- [CreateOrUpdate](#managedprivateendpoints_createorupdate)
+- [Delete](#managedprivateendpoints_delete)
+- [Get](#managedprivateendpoints_get)
+- [ListByFactory](#managedprivateendpoints_listbyfactory)
## ManagedVirtualNetworks
-- [CreateOrUpdateSync](#managedvirtualnetworks_createorupdatesync)
-- [GetSync](#managedvirtualnetworks_getsync)
-- [ListByFactorySync](#managedvirtualnetworks_listbyfactorysync)
+- [CreateOrUpdate](#managedvirtualnetworks_createorupdate)
+- [Get](#managedvirtualnetworks_get)
+- [ListByFactory](#managedvirtualnetworks_listbyfactory)
## Operations
-- [ListSync](#operations_listsync)
+- [List](#operations_list)
## PipelineRuns
-- [CancelSync](#pipelineruns_cancelsync)
-- [GetSync](#pipelineruns_getsync)
-- [QueryByFactorySync](#pipelineruns_querybyfactorysync)
+- [Cancel](#pipelineruns_cancel)
+- [Get](#pipelineruns_get)
+- [QueryByFactory](#pipelineruns_querybyfactory)
## Pipelines
-- [CreateOrUpdateSync](#pipelines_createorupdatesync)
-- [CreateRunSync](#pipelines_createrunsync)
-- [DeleteSync](#pipelines_deletesync)
-- [GetSync](#pipelines_getsync)
-- [ListByFactorySync](#pipelines_listbyfactorysync)
+- [CreateOrUpdate](#pipelines_createorupdate)
+- [CreateRun](#pipelines_createrun)
+- [Delete](#pipelines_delete)
+- [Get](#pipelines_get)
+- [ListByFactory](#pipelines_listbyfactory)
## PrivateEndPointConnections
-- [ListByFactorySync](#privateendpointconnections_listbyfactorysync)
+- [ListByFactory](#privateendpointconnections_listbyfactory)
## PrivateEndpointConnectionOperation
-- [CreateOrUpdateSync](#privateendpointconnectionoperation_createorupdatesync)
-- [DeleteSync](#privateendpointconnectionoperation_deletesync)
-- [GetSync](#privateendpointconnectionoperation_getsync)
+- [CreateOrUpdate](#privateendpointconnectionoperation_createorupdate)
+- [Delete](#privateendpointconnectionoperation_delete)
+- [Get](#privateendpointconnectionoperation_get)
## PrivateLinkResources
-- [GetSync](#privatelinkresources_getsync)
+- [Get](#privatelinkresources_get)
## TriggerRuns
-- [CancelSync](#triggerruns_cancelsync)
-- [QueryByFactorySync](#triggerruns_querybyfactorysync)
-- [RerunSync](#triggerruns_rerunsync)
+- [Cancel](#triggerruns_cancel)
+- [QueryByFactory](#triggerruns_querybyfactory)
+- [Rerun](#triggerruns_rerun)
## Triggers
-- [CreateOrUpdateSync](#triggers_createorupdatesync)
-- [DeleteSync](#triggers_deletesync)
-- [GetEventSubscriptionStatusSync](#triggers_geteventsubscriptionstatussync)
-- [GetSync](#triggers_getsync)
-- [ListByFactorySync](#triggers_listbyfactorysync)
-- [QueryByFactorySync](#triggers_querybyfactorysync)
+- [CreateOrUpdate](#triggers_createorupdate)
+- [Delete](#triggers_delete)
+- [Get](#triggers_get)
+- [GetEventSubscriptionStatus](#triggers_geteventsubscriptionstatus)
+- [ListByFactory](#triggers_listbyfactory)
+- [QueryByFactory](#triggers_querybyfactory)
- [Start](#triggers_start)
- [Stop](#triggers_stop)
- [SubscribeToEvents](#triggers_subscribetoevents)
- [UnsubscribeFromEvents](#triggers_unsubscribefromevents)
-### ActivityRuns_QueryByPipelineRunSync
+### ActivityRuns_QueryByPipelineRun
```java
/**
- * Samples for Factories DeleteSync.
+ * Samples for IntegrationRuntimeNodes GetIpAddress.
*/
-public final class FactoriesDeleteSyncSamples {
+public final class IntegrationRuntimeNodesGetIpAddressSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * IntegrationRuntimeNodes_GetIpAddress.json
*/
/**
- * Sample code: Factories_Delete.
+ * Sample code: IntegrationRuntimeNodes_GetIpAddress.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories()
- .deleteByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName",
- com.azure.core.util.Context.NONE);
+ public static void
+ integrationRuntimeNodesGetIpAddress(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimeNodes()
+ .getIpAddressWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ "Node_1", com.azure.core.util.Context.NONE);
}
}
```
-### ChangeDataCapture_CreateOrUpdateSync
+### ChangeDataCapture_CreateOrUpdate
```java
/**
- * Samples for IntegrationRuntimes GetSync.
+ * Samples for IntegrationRuntimes GetConnectionInfo.
*/
-public final class IntegrationRuntimesGetSyncSamples {
+public final class IntegrationRuntimesGetConnectionInfoSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Get.json
+ * IntegrationRuntimes_GetConnectionInfo.json
*/
/**
- * Sample code: IntegrationRuntimes_Get.
+ * Sample code: IntegrationRuntimes_GetConnectionInfo.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void
+ integrationRuntimesGetConnectionInfo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.integrationRuntimes()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null,
+ .getConnectionInfoWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
com.azure.core.util.Context.NONE);
}
}
```
-### ChangeDataCapture_DeleteSync
+### ChangeDataCapture_Delete
```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService;
+import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation;
+import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage;
+import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings;
+import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource;
+import com.azure.resourcemanager.datafactory.models.DataFlowSource;
+import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting;
+import com.azure.resourcemanager.datafactory.models.DatasetDebugResource;
+import com.azure.resourcemanager.datafactory.models.DatasetReference;
+import com.azure.resourcemanager.datafactory.models.DelimitedTextDataset;
+import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource;
+import com.azure.resourcemanager.datafactory.models.LinkedServiceReference;
+import com.azure.resourcemanager.datafactory.models.MappingDataFlow;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for PrivateEndPointConnections ListByFactorySync.
+ * Samples for DataFlowDebugSession AddDataFlow.
*/
-public final class PrivateEndPointConnectionsListByFactorySyncSamples {
+public final class DataFlowDebugSessionAddDataFlowSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * PrivateEndPointConnections_ListByFactory.json
+ * DataFlowDebugSession_AddDataFlow.json
*/
/**
- * Sample code: privateEndPointConnections_ListByFactory.
+ * Sample code: DataFlowDebugSession_AddDataFlow.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- privateEndPointConnectionsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.privateEndPointConnections()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ public static void dataFlowDebugSessionAddDataFlow(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ manager.dataFlowDebugSessions()
+ .addDataFlowWithResponse("exampleResourceGroup", "exampleFactoryName", new DataFlowDebugPackage()
+ .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e")
+ .withDataFlow(new DataFlowDebugResource().withName("dataflow1")
+ .withProperties(new MappingDataFlow()
+ .withSources(Arrays.asList(new DataFlowSource().withName("source1")
+ .withDataset(new DatasetReference().withReferenceName("DelimitedText2"))))
+ .withSinks(Arrays.asList())
+ .withTransformations(Arrays.asList())
+ .withScript(
+ "\n\nsource(output(\n\t\tColumn_1 as string\n\t),\n\tallowSchemaDrift: true,\n\tvalidateSchema: false) ~> source1")))
+ .withDatasets(Arrays.asList(new DatasetDebugResource().withName("dataset1")
+ .withProperties(new DelimitedTextDataset()
+ .withSchema(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("[{\"type\":\"String\"}]", Object.class, SerializerEncoding.JSON))
+ .withLinkedServiceName(new LinkedServiceReference().withReferenceName("linkedService5"))
+ .withAnnotations(Arrays.asList())
+ .withLocation(new AzureBlobStorageLocation().withFileName("Ansiencoding.csv")
+ .withContainer("dataflow-sample-data"))
+ .withColumnDelimiter(",")
+ .withQuoteChar("\"")
+ .withEscapeChar("\\")
+ .withFirstRowAsHeader(true))))
+ .withLinkedServices(Arrays.asList(new LinkedServiceDebugResource().withName("linkedService1")
+ .withProperties(new AzureBlobStorageLinkedService().withAnnotations(Arrays.asList())
+ .withConnectionString(
+ "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;")
+ .withEncryptedCredential("fakeTokenPlaceholder"))))
+ .withDebugSettings(new DataFlowDebugPackageDebugSettings()
+ .withSourceSettings(Arrays.asList(
+ new DataFlowSourceSetting().withSourceName("source1")
+ .withRowLimit(1000)
+ .withAdditionalProperties(mapOf()),
+ new DataFlowSourceSetting().withSourceName("source2")
+ .withRowLimit(222)
+ .withAdditionalProperties(mapOf())))
+ .withParameters(mapOf("sourcePath", "Toy"))
+ .withDatasetParameters(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"Movies\":{\"path\":\"abc\"},\"Output\":{\"time\":\"def\"}}", Object.class,
+ SerializerEncoding.JSON)))
+ .withAdditionalProperties(mapOf()), com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### ChangeDataCapture_GetSync
+### ChangeDataCapture_Get
```java
-import com.azure.resourcemanager.datafactory.models.DataFlowResource;
-import com.azure.resourcemanager.datafactory.models.DataFlowSink;
-import com.azure.resourcemanager.datafactory.models.DataFlowSource;
-import com.azure.resourcemanager.datafactory.models.DatasetReference;
-import com.azure.resourcemanager.datafactory.models.MappingDataFlow;
-import java.util.Arrays;
-
/**
- * Samples for DataFlows CreateOrUpdateSync.
+ * Samples for Factories ListByResourceGroup.
*/
-public final class DataFlowsCreateOrUpdateSyncSamples {
+public final class FactoriesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * Factories_ListByResourceGroup.json
*/
/**
- * Sample code: DataFlows_Create.
+ * Sample code: Factories_ListByResourceGroup.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.dataFlows()
- .define("exampleDataFlow")
- .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new MappingDataFlow().withDescription(
- "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.")
- .withSources(Arrays.asList(
- new DataFlowSource().withName("USDCurrency")
- .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")),
- new DataFlowSource().withName("CADSource")
- .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD"))))
- .withSinks(Arrays.asList(
- new DataFlowSink().withName("USDSink")
- .withDataset(new DatasetReference().withReferenceName("USDOutput")),
- new DataFlowSink().withName("CADSink")
- .withDataset(new DatasetReference().withReferenceName("CADOutput"))))
- .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,",
- "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),",
- "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(",
- "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,",
- "CurrentConversionRate as double", "),", "allowSchemaDrift: true,",
- "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union",
- "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
- "NewCurrencyColumn split(Country == 'USD',",
- "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)",
- "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink",
- "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")))
- .create();
+ public static void factoriesListByResourceGroup(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE);
}
+}
+```
+### ChangeDataCapture_ListByFactory
+
+```java
+/**
+ * Samples for IntegrationRuntimes Start.
+ */
+public final class IntegrationRuntimesStartSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * IntegrationRuntimes_Start.json
*/
/**
- * Sample code: DataFlows_Update.
+ * Sample code: IntegrationRuntimes_Start.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- DataFlowResource resource = manager.dataFlows()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null,
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new MappingDataFlow().withDescription(
- "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.")
- .withSources(Arrays.asList(
- new DataFlowSource().withName("USDCurrency")
- .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")),
- new DataFlowSource().withName("CADSource")
- .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD"))))
- .withSinks(Arrays.asList(
- new DataFlowSink().withName("USDSink")
- .withDataset(new DatasetReference().withReferenceName("USDOutput")),
- new DataFlowSink().withName("CADSink")
- .withDataset(new DatasetReference().withReferenceName("CADOutput"))))
- .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,",
- "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),",
- "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(",
- "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,",
- "CurrentConversionRate as double", "),", "allowSchemaDrift: true,",
- "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union",
- "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
- "NewCurrencyColumn split(Country == 'USD',",
- "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)",
- "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink",
- "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")))
- .apply();
+ public static void integrationRuntimesStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .start("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ChangeDataCapture_ListByFactorySync
+### ChangeDataCapture_Start
```java
/**
- * Samples for ManagedPrivateEndpoints GetSync.
+ * Samples for IntegrationRuntimes Stop.
*/
-public final class ManagedPrivateEndpointsGetSyncSamples {
+public final class IntegrationRuntimesStopSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedPrivateEndpoints_Get.json
+ * IntegrationRuntimes_Stop.json
*/
/**
- * Sample code: ManagedPrivateEndpoints_Get.
+ * Sample code: IntegrationRuntimes_Stop.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void managedPrivateEndpointsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedPrivateEndpoints()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName",
- "exampleManagedPrivateEndpointName", null, com.azure.core.util.Context.NONE);
+ public static void integrationRuntimesStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .stop("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ChangeDataCapture_StartSync
+### ChangeDataCapture_Status
```java
/**
- * Samples for Factories ListByResourceGroupSync.
+ * Samples for IntegrationRuntimes SyncCredentials.
*/
-public final class FactoriesListByResourceGroupSyncSamples {
+public final class IntegrationRuntimesSyncCredentialsSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Factories_ListByResourceGroup.json
+ * IntegrationRuntimes_SyncCredentials.json
*/
/**
- * Sample code: Factories_ListByResourceGroup.
+ * Sample code: IntegrationRuntimes_SyncCredentials.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesListByResourceGroup(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE);
+ public static void
+ integrationRuntimesSyncCredentials(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .syncCredentialsWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ChangeDataCapture_StatusSync
+### ChangeDataCapture_Stop
```java
/**
- * Samples for PipelineRuns CancelSync.
+ * Samples for Pipelines Delete.
*/
-public final class PipelineRunsCancelSyncSamples {
+public final class PipelinesDeleteSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.
- * json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json
*/
/**
- * Sample code: PipelineRuns_Cancel.
+ * Sample code: Pipelines_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelineRunsCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.pipelineRuns()
- .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "16ac5348-ff82-4f95-a80d-638c1d47b721",
- null, com.azure.core.util.Context.NONE);
+ public static void pipelinesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.pipelines()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ChangeDataCapture_StopSync
+### CredentialOperations_CreateOrUpdate
```java
-import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime;
/**
- * Samples for ManagedPrivateEndpoints CreateOrUpdateSync.
+ * Samples for IntegrationRuntimes CreateOrUpdate.
*/
-public final class ManagedPrivateEndpointsCreateOrUpdateSyncSamples {
+public final class IntegrationRuntimesCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedPrivateEndpoints_Create.json
+ * IntegrationRuntimes_Create.json
*/
/**
- * Sample code: ManagedVirtualNetworks_Create.
+ * Sample code: IntegrationRuntimes_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedPrivateEndpoints()
- .define("exampleManagedPrivateEndpointName")
- .withExistingManagedVirtualNetwork("exampleResourceGroup", "exampleFactoryName",
- "exampleManagedVirtualNetworkName")
- .withProperties(new ManagedPrivateEndpoint().withFqdns(Arrays.asList())
- .withGroupId("blob")
- .withPrivateLinkResourceId(
- "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage")
- .withAdditionalProperties(mapOf()))
- .create();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ public static void integrationRuntimesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .define("exampleIntegrationRuntime")
+ .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
+ .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime"))
+ .create();
}
}
```
-### CredentialOperations_CreateOrUpdateSync
+### CredentialOperations_Delete
```java
/**
- * Samples for ChangeDataCapture StartSync.
+ * Samples for IntegrationRuntimes GetStatus.
*/
-public final class ChangeDataCaptureStartSyncSamples {
+public final class IntegrationRuntimesGetStatusSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_Start.json
+ * IntegrationRuntimes_GetStatus.json
*/
/**
- * Sample code: ChangeDataCapture_Start.
+ * Sample code: IntegrationRuntimes_GetStatus.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .startWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
+ public static void integrationRuntimesGetStatus(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .getStatusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
com.azure.core.util.Context.NONE);
}
}
```
-### CredentialOperations_DeleteSync
+### CredentialOperations_Get
```java
/**
- * Samples for PrivateEndpointConnectionOperation DeleteSync.
+ * Samples for PipelineRuns Get.
*/
-public final class PrivateEndpointConnectionOperationDeleteSyncSamples {
+public final class PipelineRunsGetSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * DeletePrivateEndpointConnection.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json
*/
/**
- * Sample code: Delete a private endpoint connection for a datafactory.
+ * Sample code: PipelineRuns_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void deleteAPrivateEndpointConnectionForADatafactory(
- com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.privateEndpointConnectionOperations()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "connection",
+ public static void pipelineRunsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.pipelineRuns()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
com.azure.core.util.Context.NONE);
}
}
```
-### CredentialOperations_GetSync
+### CredentialOperations_ListByFactory
```java
/**
- * Samples for IntegrationRuntimes Start.
+ * Samples for Triggers Delete.
*/
-public final class IntegrationRuntimesStartSamples {
+public final class TriggersDeleteSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Start.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json
*/
/**
- * Sample code: IntegrationRuntimes_Start.
+ * Sample code: Triggers_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .start("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime",
+ public static void triggersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggers()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
com.azure.core.util.Context.NONE);
}
}
```
-### CredentialOperations_ListByFactorySync
+### DataFlowDebugSession_AddDataFlow
```java
/**
- * Samples for IntegrationRuntimes Stop.
+ * Samples for IntegrationRuntimes Upgrade.
*/
-public final class IntegrationRuntimesStopSamples {
+public final class IntegrationRuntimesUpgradeSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Stop.json
+ * IntegrationRuntimes_Upgrade.json
*/
/**
- * Sample code: IntegrationRuntimes_Stop.
+ * Sample code: IntegrationRuntimes_Upgrade.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.integrationRuntimes()
- .stop("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime",
+ .upgradeWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
com.azure.core.util.Context.NONE);
}
}
```
-### DataFlowDebugSession_AddDataFlowSync
+### DataFlowDebugSession_Create
```java
-import com.azure.resourcemanager.datafactory.models.GlobalParameterResource;
-import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification;
-import java.util.Map;
-
/**
- * Samples for GlobalParameters CreateOrUpdateSync.
+ * Samples for DataFlowDebugSession QueryByFactory.
*/
-public final class GlobalParametersCreateOrUpdateSyncSamples {
- /*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * GlobalParameters_Create.json
- */
- /**
- * Sample code: GlobalParameters_Create.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void globalParametersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.globalParameters()
- .define("default")
- .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties((Map) null)
- .create();
- }
-
+public final class DataFlowDebugSessionQueryByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * GlobalParameters_Update.json
+ * DataFlowDebugSession_QueryByFactory.json
*/
/**
- * Sample code: GlobalParameters_Update.
+ * Sample code: DataFlowDebugSession_QueryByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void globalParametersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- GlobalParameterResource resource = manager.globalParameters()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().apply();
+ public static void
+ dataFlowDebugSessionQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.dataFlowDebugSessions()
+ .queryByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### DataFlowDebugSession_Create
+### DataFlowDebugSession_Delete
```java
/**
- * Samples for Triggers DeleteSync.
+ * Samples for LinkedServices Get.
*/
-public final class TriggersDeleteSyncSamples {
+public final class LinkedServicesGetSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.
+ * json
*/
/**
- * Sample code: Triggers_Delete.
+ * Sample code: LinkedServices_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggers()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
+ public static void linkedServicesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.linkedServices()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null,
com.azure.core.util.Context.NONE);
}
}
```
-### DataFlowDebugSession_DeleteSync
+### DataFlowDebugSession_ExecuteCommand
```java
/**
- * Samples for PipelineRuns GetSync.
+ * Samples for Pipelines ListByFactory.
*/
-public final class PipelineRunsGetSyncSamples {
+public final class PipelinesListByFactorySamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * Pipelines_ListByFactory.json
*/
/**
- * Sample code: PipelineRuns_Get.
+ * Sample code: Pipelines_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelineRunsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.pipelineRuns()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
- com.azure.core.util.Context.NONE);
+ public static void pipelinesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.pipelines()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### DataFlowDebugSession_ExecuteCommand
+### DataFlowDebugSession_QueryByFactory
```java
+import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource;
+import com.azure.resourcemanager.datafactory.models.MapperPolicy;
+import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo;
+import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo;
+import java.util.List;
+
/**
- * Samples for LinkedServices GetSync.
+ * Samples for ChangeDataCapture CreateOrUpdate.
*/
-public final class LinkedServicesGetSyncSamples {
+public final class ChangeDataCaptureCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.
- * json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * ChangeDataCapture_Create.json
*/
/**
- * Sample code: LinkedServices_Get.
+ * Sample code: ChangeDataCapture_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void linkedServicesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.linkedServices()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null,
- com.azure.core.util.Context.NONE);
+ public static void changeDataCaptureCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .define("exampleChangeDataCapture")
+ .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
+ .withSourceConnectionsInfo((List) null)
+ .withTargetConnectionsInfo((List) null)
+ .withPolicy((MapperPolicy) null)
+ .withDescription(
+ "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings.")
+ .withAllowVNetOverride(false)
+ .create();
}
-}
-```
-
-### DataFlowDebugSession_QueryByFactorySync
-
-```java
-import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest;
-import com.azure.resourcemanager.datafactory.models.ExposureControlRequest;
-import java.util.Arrays;
-/**
- * Samples for ExposureControl QueryFeatureValuesByFactorySync.
- */
-public final class ExposureControlQueryFeatureValuesByFactorySyncSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ExposureControl_QueryFeatureValuesByFactory.json
+ * ChangeDataCapture_Update.json
*/
/**
- * Sample code: ExposureControl_QueryFeatureValuesByFactory.
+ * Sample code: ChangeDataCapture_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- exposureControlQueryFeatureValuesByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.exposureControls()
- .queryFeatureValuesByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
- new ExposureControlBatchRequest().withExposureControlRequests(Arrays.asList(
- new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac")
- .withFeatureType("Feature"),
- new ExposureControlRequest().withFeatureName("ADFSampleFeature").withFeatureType("Feature"))),
- com.azure.core.util.Context.NONE);
+ public static void changeDataCaptureUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ ChangeDataCaptureResource resource = manager.changeDataCaptures()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withDescription(
+ "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings.")
+ .withAllowVNetOverride(false)
+ .withStatus("Stopped")
+ .apply();
}
}
```
-### DataFlows_CreateOrUpdateSync
+### DataFlows_CreateOrUpdate
```java
-import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest;
-
/**
- * Samples for Factories GetGitHubAccessTokenSync.
+ * Samples for IntegrationRuntimes ListAuthKeys.
*/
-public final class FactoriesGetGitHubAccessTokenSyncSamples {
+public final class IntegrationRuntimesListAuthKeysSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Factories_GetGitHubAccessToken.json
+ * IntegrationRuntimes_ListAuthKeys.json
*/
/**
- * Sample code: Factories_GetGitHubAccessToken.
+ * Sample code: IntegrationRuntimes_ListAuthKeys.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesGetGitHubAccessToken(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories()
- .getGitHubAccessTokenWithResponse("exampleResourceGroup", "exampleFactoryName",
- new GitHubAccessTokenRequest().withGitHubAccessCode("fakeTokenPlaceholder")
- .withGitHubClientId("some")
- .withGitHubAccessTokenBaseUrl("fakeTokenPlaceholder"),
+ public static void
+ integrationRuntimesListAuthKeys(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .listAuthKeysWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
com.azure.core.util.Context.NONE);
}
}
```
-### DataFlows_DeleteSync
+### DataFlows_Delete
```java
/**
- * Samples for IntegrationRuntimes GetStatusSync.
+ * Samples for IntegrationRuntimes Get.
*/
-public final class IntegrationRuntimesGetStatusSyncSamples {
+public final class IntegrationRuntimesGetSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_GetStatus.json
+ * IntegrationRuntimes_Get.json
*/
/**
- * Sample code: IntegrationRuntimes_GetStatus.
+ * Sample code: IntegrationRuntimes_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesGetStatus(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void integrationRuntimesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.integrationRuntimes()
- .getStatusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null,
com.azure.core.util.Context.NONE);
}
}
```
-### DataFlows_GetSync
+### DataFlows_Get
```java
+import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate;
+import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource;
+
/**
- * Samples for IntegrationRuntimes ListAuthKeysSync.
+ * Samples for IntegrationRuntimes Update.
*/
-public final class IntegrationRuntimesListAuthKeysSyncSamples {
+public final class IntegrationRuntimesUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_ListAuthKeys.json
+ * IntegrationRuntimes_Update.json
*/
/**
- * Sample code: IntegrationRuntimes_ListAuthKeys.
+ * Sample code: IntegrationRuntimes_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- integrationRuntimesListAuthKeys(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .listAuthKeysWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
- com.azure.core.util.Context.NONE);
+ public static void integrationRuntimesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ IntegrationRuntimeResource resource = manager.integrationRuntimes()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply();
}
}
```
-### DataFlows_ListByFactorySync
+### DataFlows_ListByFactory
```java
/**
- * Samples for DataFlows DeleteSync.
+ * Samples for ManagedVirtualNetworks ListByFactory.
*/
-public final class DataFlowsDeleteSyncSamples {
+public final class ManagedVirtualNetworksListByFactorySamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * ManagedVirtualNetworks_ListByFactory.json
*/
/**
- * Sample code: DataFlows_Delete.
+ * Sample code: ManagedVirtualNetworks_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void dataFlowsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.dataFlows()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow",
- com.azure.core.util.Context.NONE);
+ public static void
+ managedVirtualNetworksListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedVirtualNetworks()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### Datasets_CreateOrUpdateSync
+### Datasets_CreateOrUpdate
```java
/**
- * Samples for DataFlows GetSync.
+ * Samples for Factories GetByResourceGroup.
*/
-public final class DataFlowsGetSyncSamples {
+public final class FactoriesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json
*/
/**
- * Sample code: DataFlows_Get.
+ * Sample code: Factories_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void dataFlowsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.dataFlows()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null,
+ public static void factoriesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories()
+ .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null,
com.azure.core.util.Context.NONE);
}
}
```
-### Datasets_DeleteSync
+### Datasets_Delete
```java
-/**
- * Samples for ManagedPrivateEndpoints DeleteSync.
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.datafactory.models.BlobSink;
+import com.azure.resourcemanager.datafactory.models.BlobSource;
+import com.azure.resourcemanager.datafactory.models.CopyActivity;
+import com.azure.resourcemanager.datafactory.models.DatasetReference;
+import com.azure.resourcemanager.datafactory.models.Expression;
+import com.azure.resourcemanager.datafactory.models.ForEachActivity;
+import com.azure.resourcemanager.datafactory.models.ParameterSpecification;
+import com.azure.resourcemanager.datafactory.models.ParameterType;
+import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy;
+import com.azure.resourcemanager.datafactory.models.PipelinePolicy;
+import com.azure.resourcemanager.datafactory.models.PipelineResource;
+import com.azure.resourcemanager.datafactory.models.VariableSpecification;
+import com.azure.resourcemanager.datafactory.models.VariableType;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Pipelines CreateOrUpdate.
*/
-public final class ManagedPrivateEndpointsDeleteSyncSamples {
+public final class PipelinesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedPrivateEndpoints_Delete.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json
*/
/**
- * Sample code: ManagedVirtualNetworks_Delete.
+ * Sample code: Pipelines_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void managedVirtualNetworksDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedPrivateEndpoints()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName",
- "exampleManagedPrivateEndpointName", com.azure.core.util.Context.NONE);
+ public static void pipelinesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ manager.pipelines()
+ .define("examplePipeline")
+ .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
+ .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity")
+ .withIsSequential(true)
+ .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList"))
+ .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity")
+ .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
+ .withParameters(
+ mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer"))))
+ .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
+ .withParameters(mapOf("MyFileName",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class,
+ SerializerEncoding.JSON),
+ "MyFolderPath", "examplecontainer"))))
+ .withSource(new BlobSource())
+ .withSink(new BlobSink())
+ .withDataIntegrationUnits(32)))))
+ .withParameters(mapOf("JobId", new ParameterSpecification().withType(ParameterType.STRING),
+ "OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY)))
+ .withVariables(mapOf("TestVariableArray", new VariableSpecification().withType(VariableType.ARRAY)))
+ .withRunDimensions(mapOf("JobId",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.JobId\"}", Object.class,
+ SerializerEncoding.JSON)))
+ .withPolicy(new PipelinePolicy()
+ .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00")))
+ .create();
}
-}
-```
-### Datasets_GetSync
-
-```java
-/**
- * Samples for Operations ListSync.
- */
-public final class OperationsListSyncSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json
*/
/**
- * Sample code: Operations_List.
+ * Sample code: Pipelines_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void pipelinesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ PipelineResource resource = manager.pipelines()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withDescription("Example description")
+ .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity")
+ .withIsSequential(true)
+ .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList"))
+ .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity")
+ .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
+ .withParameters(
+ mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer"))))
+ .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
+ .withParameters(mapOf("MyFileName",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class,
+ SerializerEncoding.JSON),
+ "MyFolderPath", "examplecontainer"))))
+ .withSource(new BlobSource())
+ .withSink(new BlobSink())
+ .withDataIntegrationUnits(32)))))
+ .withParameters(mapOf("OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY)))
+ .withPolicy(new PipelinePolicy()
+ .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00")))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### Datasets_ListByFactorySync
+### Datasets_Get
```java
/**
- * Samples for ManagedVirtualNetworks GetSync.
+ * Samples for Triggers UnsubscribeFromEvents.
*/
-public final class ManagedVirtualNetworksGetSyncSamples {
+public final class TriggersUnsubscribeFromEventsSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedVirtualNetworks_Get.json
+ * Triggers_UnsubscribeFromEvents.json
*/
/**
- * Sample code: ManagedVirtualNetworks_Get.
+ * Sample code: Triggers_UnsubscribeFromEvents.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void managedVirtualNetworksGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedVirtualNetworks()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", null,
+ public static void triggersUnsubscribeFromEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggers()
+ .unsubscribeFromEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
com.azure.core.util.Context.NONE);
}
}
```
-### ExposureControl_GetFeatureValueByFactorySync
+### Datasets_ListByFactory
```java
-import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime;
+import com.azure.resourcemanager.datafactory.models.DataFlowResource;
+import com.azure.resourcemanager.datafactory.models.DataFlowSink;
+import com.azure.resourcemanager.datafactory.models.DataFlowSource;
+import com.azure.resourcemanager.datafactory.models.DatasetReference;
+import com.azure.resourcemanager.datafactory.models.MappingDataFlow;
+import java.util.Arrays;
/**
- * Samples for IntegrationRuntimes CreateOrUpdateSync.
+ * Samples for DataFlows CreateOrUpdate.
*/
-public final class IntegrationRuntimesCreateOrUpdateSyncSamples {
+public final class DataFlowsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Create.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json
*/
/**
- * Sample code: IntegrationRuntimes_Create.
+ * Sample code: DataFlows_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .define("exampleIntegrationRuntime")
+ public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.dataFlows()
+ .define("exampleDataFlow")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime"))
+ .withProperties(new MappingDataFlow().withDescription(
+ "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.")
+ .withSources(Arrays.asList(
+ new DataFlowSource().withName("USDCurrency")
+ .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")),
+ new DataFlowSource().withName("CADSource")
+ .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD"))))
+ .withSinks(Arrays.asList(
+ new DataFlowSink().withName("USDSink")
+ .withDataset(new DatasetReference().withReferenceName("USDOutput")),
+ new DataFlowSink().withName("CADSink")
+ .withDataset(new DatasetReference().withReferenceName("CADOutput"))))
+ .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,",
+ "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),",
+ "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(",
+ "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,",
+ "CurrentConversionRate as double", "),", "allowSchemaDrift: true,",
+ "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union",
+ "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
+ "NewCurrencyColumn split(Country == 'USD',",
+ "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)",
+ "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink",
+ "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")))
.create();
}
-}
-```
-### ExposureControl_GetFeatureValueSync
-
-```java
-/**
- * Samples for Triggers UnsubscribeFromEvents.
- */
-public final class TriggersUnsubscribeFromEventsSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Triggers_UnsubscribeFromEvents.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json
*/
/**
- * Sample code: Triggers_UnsubscribeFromEvents.
+ * Sample code: DataFlows_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersUnsubscribeFromEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggers()
- .unsubscribeFromEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
- com.azure.core.util.Context.NONE);
+ public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ DataFlowResource resource = manager.dataFlows()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new MappingDataFlow().withDescription(
+ "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.")
+ .withSources(Arrays.asList(
+ new DataFlowSource().withName("USDCurrency")
+ .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")),
+ new DataFlowSource().withName("CADSource")
+ .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD"))))
+ .withSinks(Arrays.asList(
+ new DataFlowSink().withName("USDSink")
+ .withDataset(new DatasetReference().withReferenceName("USDOutput")),
+ new DataFlowSink().withName("CADSink")
+ .withDataset(new DatasetReference().withReferenceName("CADOutput"))))
+ .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,",
+ "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),",
+ "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(",
+ "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,",
+ "CurrentConversionRate as double", "),", "allowSchemaDrift: true,",
+ "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union",
+ "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
+ "NewCurrencyColumn split(Country == 'USD',",
+ "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)",
+ "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink",
+ "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")))
+ .apply();
}
}
```
-### ExposureControl_QueryFeatureValuesByFactorySync
+### ExposureControl_GetFeatureValue
```java
+import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest;
+
/**
- * Samples for PrivateLinkResources GetSync.
+ * Samples for IntegrationRuntimeObjectMetadata Get.
*/
-public final class PrivateLinkResourcesGetSyncSamples {
+public final class IntegrationRuntimeObjectMetadataGetSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * GetPrivateLinkResources.json
+ * IntegrationRuntimeObjectMetadata_Get.json
*/
/**
- * Sample code: Get private link resources of a site.
+ * Sample code: IntegrationRuntimeObjectMetadata_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void
- getPrivateLinkResourcesOfASite(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.privateLinkResources()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ integrationRuntimeObjectMetadataGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimeObjectMetadatas()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "testactivityv2",
+ new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), com.azure.core.util.Context.NONE);
}
}
```
-### Factories_ConfigureFactoryRepoSync
+### ExposureControl_GetFeatureValueByFactory
```java
-import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName;
-import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters;
+import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest;
/**
- * Samples for IntegrationRuntimes RegenerateAuthKeySync.
+ * Samples for IntegrationRuntimeNodes Update.
*/
-public final class IntegrationRuntimesRegenerateAuthKeySyncSamples {
+public final class IntegrationRuntimeNodesUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_RegenerateAuthKey.json
- */
- /**
- * Sample code: IntegrationRuntimes_RegenerateAuthKey.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void
- integrationRuntimesRegenerateAuthKey(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .regenerateAuthKeyWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
- new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Factories_CreateOrUpdateSync
-
-```java
-/**
- * Samples for Factories GetByResourceGroupSync.
- */
-public final class FactoriesGetByResourceGroupSyncSamples {
- /*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json
+ * IntegrationRuntimeNodes_Update.json
*/
/**
- * Sample code: Factories_Get.
+ * Sample code: IntegrationRuntimeNodes_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories()
- .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null,
- com.azure.core.util.Context.NONE);
+ public static void integrationRuntimeNodesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimeNodes()
+ .updateWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1",
+ new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), com.azure.core.util.Context.NONE);
}
}
```
-### Factories_DeleteSync
+### ExposureControl_QueryFeatureValuesByFactory
```java
/**
- * Samples for DataFlows ListByFactorySync.
+ * Samples for ManagedPrivateEndpoints Get.
*/
-public final class DataFlowsListByFactorySyncSamples {
+public final class ManagedPrivateEndpointsGetSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * DataFlows_ListByFactory.json
+ * ManagedPrivateEndpoints_Get.json
*/
/**
- * Sample code: DataFlows_ListByFactory.
+ * Sample code: ManagedPrivateEndpoints_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void dataFlowsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.dataFlows()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ public static void managedPrivateEndpointsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedPrivateEndpoints()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName",
+ "exampleManagedPrivateEndpointName", null, com.azure.core.util.Context.NONE);
}
}
```
-### Factories_GetByResourceGroupSync
+### Factories_ConfigureFactoryRepo
```java
/**
- * Samples for IntegrationRuntimeNodes DeleteSync.
+ * Samples for GlobalParameters Delete.
*/
-public final class IntegrationRuntimeNodesDeleteSyncSamples {
+public final class GlobalParametersDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimeNodes_Delete.json
+ * GlobalParameters_Delete.json
*/
/**
- * Sample code: IntegrationRuntimesNodes_Delete.
+ * Sample code: GlobalParameters_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- integrationRuntimesNodesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimeNodes()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1",
+ public static void globalParametersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.globalParameters()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "default",
com.azure.core.util.Context.NONE);
}
}
```
-### Factories_GetDataPlaneAccessSync
+### Factories_CreateOrUpdate
```java
import com.azure.resourcemanager.datafactory.models.PrivateEndpoint;
@@ -1088,9 +1167,9 @@ import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprova
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState;
/**
- * Samples for PrivateEndpointConnectionOperation CreateOrUpdateSync.
+ * Samples for PrivateEndpointConnectionOperation CreateOrUpdate.
*/
-public final class PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples {
+public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
* ApproveRejectPrivateEndpointConnection.json
@@ -1116,321 +1195,203 @@ public final class PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples {
}
```
-### Factories_GetGitHubAccessTokenSync
-
-```java
-import com.azure.resourcemanager.datafactory.models.RunFilterParameters;
-import java.time.OffsetDateTime;
-
-/**
- * Samples for ActivityRuns QueryByPipelineRunSync.
- */
-public final class ActivityRunsQueryByPipelineRunSyncSamples {
- /*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ActivityRuns_QueryByPipelineRun.json
- */
- /**
- * Sample code: ActivityRuns_QueryByPipelineRun.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void
- activityRunsQueryByPipelineRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.activityRuns()
- .queryByPipelineRunWithResponse("exampleResourceGroup", "exampleFactoryName",
- "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
- new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z"))
- .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Factories_ListByResourceGroupSync
-
-```java
-/**
- * Samples for Pipelines ListByFactorySync.
- */
-public final class PipelinesListByFactorySyncSamples {
- /*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Pipelines_ListByFactory.json
- */
- /**
- * Sample code: Pipelines_ListByFactory.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void pipelinesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.pipelines()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Factories_ListSync
-
-```java
-/**
- * Samples for LinkedServices DeleteSync.
- */
-public final class LinkedServicesDeleteSyncSamples {
- /*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete
- * .json
- */
- /**
- * Sample code: LinkedServices_Delete.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void linkedServicesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.linkedServices()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Factories_UpdateSync
+### Factories_Delete
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService;
-import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation;
-import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage;
-import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings;
-import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource;
-import com.azure.resourcemanager.datafactory.models.DataFlowSource;
-import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting;
-import com.azure.resourcemanager.datafactory.models.DatasetDebugResource;
-import com.azure.resourcemanager.datafactory.models.DatasetReference;
-import com.azure.resourcemanager.datafactory.models.DelimitedTextDataset;
-import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource;
-import com.azure.resourcemanager.datafactory.models.LinkedServiceReference;
-import com.azure.resourcemanager.datafactory.models.MappingDataFlow;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DataFlowDebugSession AddDataFlowSync.
- */
-public final class DataFlowDebugSessionAddDataFlowSyncSamples {
- /*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * DataFlowDebugSession_AddDataFlow.json
- */
- /**
- * Sample code: DataFlowDebugSession_AddDataFlow.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void dataFlowDebugSessionAddDataFlow(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- manager.dataFlowDebugSessions()
- .addDataFlowWithResponse("exampleResourceGroup", "exampleFactoryName", new DataFlowDebugPackage()
- .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e")
- .withDataFlow(new DataFlowDebugResource().withName("dataflow1")
- .withProperties(new MappingDataFlow()
- .withSources(Arrays.asList(new DataFlowSource().withName("source1")
- .withDataset(new DatasetReference().withReferenceName("DelimitedText2"))))
- .withSinks(Arrays.asList())
- .withTransformations(Arrays.asList())
- .withScript(
- "\n\nsource(output(\n\t\tColumn_1 as string\n\t),\n\tallowSchemaDrift: true,\n\tvalidateSchema: false) ~> source1")))
- .withDatasets(Arrays.asList(new DatasetDebugResource().withName("dataset1")
- .withProperties(new DelimitedTextDataset()
- .withSchema(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("[{\"type\":\"String\"}]", Object.class, SerializerEncoding.JSON))
- .withLinkedServiceName(new LinkedServiceReference().withReferenceName("linkedService5"))
- .withAnnotations(Arrays.asList())
- .withLocation(new AzureBlobStorageLocation().withFileName("Ansiencoding.csv")
- .withContainer("dataflow-sample-data"))
- .withColumnDelimiter(",")
- .withQuoteChar("\"")
- .withEscapeChar("\\")
- .withFirstRowAsHeader(true))))
- .withLinkedServices(Arrays.asList(new LinkedServiceDebugResource().withName("linkedService1")
- .withProperties(new AzureBlobStorageLinkedService().withAnnotations(Arrays.asList())
- .withConnectionString(
- "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;")
- .withEncryptedCredential("fakeTokenPlaceholder"))))
- .withDebugSettings(new DataFlowDebugPackageDebugSettings()
- .withSourceSettings(Arrays.asList(
- new DataFlowSourceSetting().withSourceName("source1")
- .withRowLimit(1000)
- .withAdditionalProperties(mapOf()),
- new DataFlowSourceSetting().withSourceName("source2")
- .withRowLimit(222)
- .withAdditionalProperties(mapOf())))
- .withParameters(mapOf("sourcePath", "Toy"))
- .withDatasetParameters(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"Movies\":{\"path\":\"abc\"},\"Output\":{\"time\":\"def\"}}", Object.class,
- SerializerEncoding.JSON)))
- .withAdditionalProperties(mapOf()), com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### GlobalParameters_CreateOrUpdateSync
-
-```java
-import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest;
/**
- * Samples for ManagedVirtualNetworks CreateOrUpdateSync.
+ * Samples for Factories GetGitHubAccessToken.
*/
-public final class ManagedVirtualNetworksCreateOrUpdateSyncSamples {
+public final class FactoriesGetGitHubAccessTokenSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedVirtualNetworks_Create.json
+ * Factories_GetGitHubAccessToken.json
*/
/**
- * Sample code: ManagedVirtualNetworks_Create.
+ * Sample code: Factories_GetGitHubAccessToken.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedVirtualNetworks()
- .define("exampleManagedVirtualNetworkName")
- .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf()))
- .create();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ public static void factoriesGetGitHubAccessToken(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories()
+ .getGitHubAccessTokenWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new GitHubAccessTokenRequest().withGitHubAccessCode("fakeTokenPlaceholder")
+ .withGitHubClientId("some")
+ .withGitHubAccessTokenBaseUrl("fakeTokenPlaceholder"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### GlobalParameters_DeleteSync
+### Factories_GetByResourceGroup
```java
/**
- * Samples for IntegrationRuntimes DeleteSync.
+ * Samples for Triggers ListByFactory.
*/
-public final class IntegrationRuntimesDeleteSyncSamples {
+public final class TriggersListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Delete.json
+ * Triggers_ListByFactory.json
*/
/**
- * Sample code: IntegrationRuntimes_Delete.
+ * Sample code: Triggers_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
- com.azure.core.util.Context.NONE);
+ public static void triggersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggers()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### GlobalParameters_GetSync
+### Factories_GetDataPlaneAccess
```java
+import com.azure.resourcemanager.datafactory.models.GlobalParameterResource;
+import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification;
+import java.util.Map;
+
/**
- * Samples for ChangeDataCapture GetSync.
+ * Samples for GlobalParameters CreateOrUpdate.
*/
-public final class ChangeDataCaptureGetSyncSamples {
+public final class GlobalParametersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get
- * .json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * GlobalParameters_Create.json
*/
/**
- * Sample code: ChangeDataCapture_Get.
+ * Sample code: GlobalParameters_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void changeDataCaptureGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null,
- com.azure.core.util.Context.NONE);
+ public static void globalParametersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.globalParameters()
+ .define("default")
+ .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
+ .withProperties((Map) null)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * GlobalParameters_Update.json
+ */
+ /**
+ * Sample code: GlobalParameters_Update.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void globalParametersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ GlobalParameterResource resource = manager.globalParameters()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
}
}
```
-### GlobalParameters_ListByFactorySync
+### Factories_GetGitHubAccessToken
```java
/**
- * Samples for CredentialOperations GetSync.
+ * Samples for IntegrationRuntimeNodes Get.
*/
-public final class CredentialOperationsGetSyncSamples {
+public final class IntegrationRuntimeNodesGetSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * IntegrationRuntimeNodes_Get.json
*/
/**
- * Sample code: Credentials_Get.
+ * Sample code: IntegrationRuntimeNodes_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.credentialOperations()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", null,
+ public static void integrationRuntimeNodesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimeNodes()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1",
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimeNodes_DeleteSync
+### Factories_List
```java
-import com.azure.resourcemanager.datafactory.models.Factory;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.datafactory.models.AzureBlobDataset;
+import com.azure.resourcemanager.datafactory.models.DatasetResource;
+import com.azure.resourcemanager.datafactory.models.LinkedServiceReference;
+import com.azure.resourcemanager.datafactory.models.ParameterSpecification;
+import com.azure.resourcemanager.datafactory.models.ParameterType;
+import com.azure.resourcemanager.datafactory.models.TextFormat;
+import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Factories UpdateSync.
+ * Samples for Datasets CreateOrUpdate.
*/
-public final class FactoriesUpdateSyncSamples {
+public final class DatasetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json
*/
/**
- * Sample code: Factories_Update.
+ * Sample code: Datasets_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- Factory resource = manager.factories()
- .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null,
+ public static void datasetsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ manager.datasets()
+ .define("exampleDataset")
+ .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
+ .withProperties(new AzureBlobDataset()
+ .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService"))
+ .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING),
+ "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING)))
+ .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class,
+ SerializerEncoding.JSON))
+ .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class,
+ SerializerEncoding.JSON))
+ .withFormat(new TextFormat()))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json
+ */
+ /**
+ * Sample code: Datasets_Update.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void datasetsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ DatasetResource resource = manager.datasets()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null,
com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withTags(mapOf("exampleTag", "exampleValue")).apply();
+ resource.update()
+ .withProperties(new AzureBlobDataset().withDescription("Example description")
+ .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService"))
+ .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING),
+ "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING)))
+ .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class,
+ SerializerEncoding.JSON))
+ .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class,
+ SerializerEncoding.JSON))
+ .withFormat(new TextFormat()))
+ .apply();
}
// Use "Map.of" if available
@@ -1447,412 +1408,380 @@ public final class FactoriesUpdateSyncSamples {
}
```
-### IntegrationRuntimeNodes_GetIpAddressSync
+### Factories_ListByResourceGroup
```java
/**
- * Samples for CredentialOperations ListByFactorySync.
+ * Samples for IntegrationRuntimeNodes Delete.
*/
-public final class CredentialOperationsListByFactorySyncSamples {
+public final class IntegrationRuntimeNodesDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Credentials_ListByFactory.json
- */
- /**
- * Sample code: Credentials_ListByFactory.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.credentialOperations()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IntegrationRuntimeNodes_GetSync
-
-```java
-/**
- * Samples for ChangeDataCapture ListByFactorySync.
- */
-public final class ChangeDataCaptureListByFactorySyncSamples {
- /*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_ListByFactory.json
+ * IntegrationRuntimeNodes_Delete.json
*/
/**
- * Sample code: ChangeDataCapture_ListByFactory.
+ * Sample code: IntegrationRuntimesNodes_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void
- changeDataCaptureListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ integrationRuntimesNodesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimeNodes()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimeNodes_UpdateSync
+### Factories_Update
```java
/**
- * Samples for Datasets DeleteSync.
+ * Samples for CredentialOperations Delete.
*/
-public final class DatasetsDeleteSyncSamples {
+public final class CredentialOperationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.
+ * json
*/
/**
- * Sample code: Datasets_Delete.
+ * Sample code: Credentials_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void datasetsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.datasets()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset",
+ public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.credentialOperations()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential",
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimeObjectMetadata_GetSync
+### GlobalParameters_CreateOrUpdate
```java
-import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest;
-
/**
- * Samples for IntegrationRuntimeObjectMetadata GetSync.
+ * Samples for ManagedPrivateEndpoints ListByFactory.
*/
-public final class IntegrationRuntimeObjectMetadataGetSyncSamples {
+public final class ManagedPrivateEndpointsListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimeObjectMetadata_Get.json
+ * ManagedPrivateEndpoints_ListByFactory.json
*/
/**
- * Sample code: IntegrationRuntimeObjectMetadata_Get.
+ * Sample code: ManagedPrivateEndpoints_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void
- integrationRuntimeObjectMetadataGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimeObjectMetadatas()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "testactivityv2",
- new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IntegrationRuntimeObjectMetadata_Refresh
-
-```java
-/**
- * Samples for ChangeDataCapture DeleteSync.
- */
-public final class ChangeDataCaptureDeleteSyncSamples {
- /*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_Delete.json
- */
- /**
- * Sample code: ChangeDataCapture_Delete.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void changeDataCaptureDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
+ managedPrivateEndpointsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedPrivateEndpoints()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName",
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_CreateLinkedIntegrationRuntimeSync
+### GlobalParameters_Delete
```java
-import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate;
-import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration;
-
/**
- * Samples for Factories ConfigureFactoryRepoSync.
+ * Samples for Datasets Delete.
*/
-public final class FactoriesConfigureFactoryRepoSyncSamples {
+public final class DatasetsDeleteSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Factories_ConfigureFactoryRepo.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json
*/
/**
- * Sample code: Factories_ConfigureFactoryRepo.
+ * Sample code: Datasets_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesConfigureFactoryRepo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories()
- .configureFactoryRepoWithResponse("East US", new FactoryRepoUpdate().withFactoryResourceId(
- "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName")
- .withRepoConfiguration(new FactoryVstsConfiguration().withAccountName("ADF")
- .withRepositoryName("repo")
- .withCollaborationBranch("master")
- .withRootFolder("/")
- .withLastCommitId("")
- .withProjectName("project")
- .withTenantId("")),
+ public static void datasetsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.datasets()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset",
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_CreateOrUpdateSync
+### GlobalParameters_Get
```java
-import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate;
-import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource;
-
/**
- * Samples for IntegrationRuntimes UpdateSync.
+ * Samples for LinkedServices Delete.
*/
-public final class IntegrationRuntimesUpdateSyncSamples {
+public final class LinkedServicesDeleteSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Update.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete
+ * .json
*/
/**
- * Sample code: IntegrationRuntimes_Update.
+ * Sample code: LinkedServices_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- IntegrationRuntimeResource resource = manager.integrationRuntimes()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null,
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply();
+ public static void linkedServicesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.linkedServices()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService",
+ com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_DeleteSync
+### GlobalParameters_ListByFactory
```java
/**
- * Samples for Pipelines GetSync.
+ * Samples for DataFlows Get.
*/
-public final class PipelinesGetSyncSamples {
+public final class DataFlowsGetSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json
*/
/**
- * Sample code: Pipelines_Get.
+ * Sample code: DataFlows_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelinesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.pipelines()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null,
+ public static void dataFlowsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.dataFlows()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null,
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_GetConnectionInfoSync
+### IntegrationRuntimeNodes_Delete
```java
/**
- * Samples for PrivateEndpointConnectionOperation GetSync.
+ * Samples for ManagedPrivateEndpoints Delete.
*/
-public final class PrivateEndpointConnectionOperationGetSyncSamples {
+public final class ManagedPrivateEndpointsDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * GetPrivateEndpointConnection.json
+ * ManagedPrivateEndpoints_Delete.json
*/
/**
- * Sample code: Get a private endpoint connection for a datafactory.
+ * Sample code: ManagedVirtualNetworks_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- getAPrivateEndpointConnectionForADatafactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.privateEndpointConnectionOperations()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", null,
- com.azure.core.util.Context.NONE);
+ public static void managedVirtualNetworksDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedPrivateEndpoints()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName",
+ "exampleManagedPrivateEndpointName", com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_GetMonitoringDataSync
+### IntegrationRuntimeNodes_Get
```java
+import com.azure.resourcemanager.datafactory.models.RunFilterParameters;
+import com.azure.resourcemanager.datafactory.models.RunQueryFilter;
+import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand;
+import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
/**
- * Samples for ChangeDataCapture StatusSync.
+ * Samples for PipelineRuns QueryByFactory.
*/
-public final class ChangeDataCaptureStatusSyncSamples {
+public final class PipelineRunsQueryByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_Status.json
+ * PipelineRuns_QueryByFactory.json
*/
/**
- * Sample code: ChangeDataCapture_Start.
+ * Sample code: PipelineRuns_QueryByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .statusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
+ public static void pipelineRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.pipelineRuns()
+ .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z"))
+ .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z"))
+ .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.PIPELINE_NAME)
+ .withOperator(RunQueryFilterOperator.EQUALS)
+ .withValues(Arrays.asList("examplePipeline")))),
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_GetStatusSync
+### IntegrationRuntimeNodes_GetIpAddress
```java
-import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource;
-import com.azure.resourcemanager.datafactory.models.MapperPolicy;
-import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo;
-import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo;
-import java.util.List;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService;
+import com.azure.resourcemanager.datafactory.models.LinkedServiceResource;
+import java.io.IOException;
/**
- * Samples for ChangeDataCapture CreateOrUpdateSync.
+ * Samples for LinkedServices CreateOrUpdate.
*/
-public final class ChangeDataCaptureCreateOrUpdateSyncSamples {
+public final class LinkedServicesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_Create.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create
+ * .json
*/
/**
- * Sample code: ChangeDataCapture_Create.
+ * Sample code: LinkedServices_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void changeDataCaptureCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .define("exampleChangeDataCapture")
+ public static void linkedServicesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ manager.linkedServices()
+ .define("exampleLinkedService")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withSourceConnectionsInfo((List) null)
- .withTargetConnectionsInfo((List) null)
- .withPolicy((MapperPolicy) null)
- .withDescription(
- "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings.")
- .withAllowVNetOverride(false)
+ .withProperties(new AzureStorageLinkedService().withConnectionString(SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}",
+ Object.class, SerializerEncoding.JSON)))
.create();
}
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_Update.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update
+ * .json
*/
/**
- * Sample code: ChangeDataCapture_Update.
+ * Sample code: LinkedServices_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void changeDataCaptureUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- ChangeDataCaptureResource resource = manager.changeDataCaptures()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null,
+ public static void linkedServicesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ LinkedServiceResource resource = manager.linkedServices()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null,
com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withDescription(
- "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings.")
- .withAllowVNetOverride(false)
- .withStatus("Stopped")
+ .withProperties(new AzureStorageLinkedService().withDescription("Example description")
+ .withConnectionString(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}",
+ Object.class, SerializerEncoding.JSON)))
.apply();
}
}
```
-### IntegrationRuntimes_GetSync
+### IntegrationRuntimeNodes_Update
```java
+import com.azure.resourcemanager.datafactory.models.Factory;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for ManagedPrivateEndpoints ListByFactorySync.
+ * Samples for Factories Update.
*/
-public final class ManagedPrivateEndpointsListByFactorySyncSamples {
+public final class FactoriesUpdateSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedPrivateEndpoints_ListByFactory.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json
*/
/**
- * Sample code: ManagedPrivateEndpoints_ListByFactory.
+ * Sample code: Factories_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- managedPrivateEndpointsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedPrivateEndpoints()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName",
- com.azure.core.util.Context.NONE);
+ public static void factoriesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ Factory resource = manager.factories()
+ .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("exampleTag", "exampleValue")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### IntegrationRuntimes_ListAuthKeysSync
+### IntegrationRuntimeObjectMetadata_Get
```java
-import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential;
+import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest;
/**
- * Samples for CredentialOperations CreateOrUpdateSync.
+ * Samples for IntegrationRuntimes RemoveLinks.
*/
-public final class CredentialOperationsCreateOrUpdateSyncSamples {
+public final class IntegrationRuntimesRemoveLinksSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.
- * json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * IntegrationRuntimes_RemoveLinks.json
*/
/**
- * Sample code: Credentials_Create.
+ * Sample code: IntegrationRuntimes_Upgrade.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.credentialOperations()
- .define("exampleCredential")
- .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new ManagedIdentityCredential().withResourceId(
- "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"))
- .create();
+ public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .removeLinksWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("exampleFactoryName-linked"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_ListByFactorySync
+### IntegrationRuntimeObjectMetadata_Refresh
```java
/**
- * Samples for Pipelines DeleteSync.
+ * Samples for ChangeDataCapture Get.
*/
-public final class PipelinesDeleteSyncSamples {
+public final class ChangeDataCaptureGetSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get
+ * .json
*/
/**
- * Sample code: Pipelines_Delete.
+ * Sample code: ChangeDataCapture_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelinesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.pipelines()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline",
+ public static void changeDataCaptureGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null,
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_ListOutboundNetworkDependenciesEndpointsSync
+### IntegrationRuntimes_CreateLinkedIntegrationRuntime
```java
import com.azure.resourcemanager.datafactory.models.ExposureControlRequest;
/**
- * Samples for ExposureControl GetFeatureValueByFactorySync.
+ * Samples for ExposureControl GetFeatureValueByFactory.
*/
-public final class ExposureControlGetFeatureValueByFactorySyncSamples {
+public final class ExposureControlGetFeatureValueByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
* ExposureControl_GetFeatureValueByFactory.json
@@ -1873,517 +1802,456 @@ public final class ExposureControlGetFeatureValueByFactorySyncSamples {
}
```
-### IntegrationRuntimes_RegenerateAuthKeySync
+### IntegrationRuntimes_CreateOrUpdate
```java
+import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters;
+
/**
- * Samples for Triggers SubscribeToEvents.
+ * Samples for Triggers QueryByFactory.
*/
-public final class TriggersSubscribeToEventsSamples {
+public final class TriggersQueryByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Triggers_SubscribeToEvents.json
+ * Triggers_QueryByFactory.json
*/
/**
- * Sample code: Triggers_SubscribeToEvents.
+ * Sample code: Triggers_QueryByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersSubscribeToEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void triggersQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.triggers()
- .subscribeToEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IntegrationRuntimes_RemoveLinksSync
-
-```java
-/**
- * Samples for CredentialOperations DeleteSync.
- */
-public final class CredentialOperationsDeleteSyncSamples {
- /*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.
- * json
- */
- /**
- * Sample code: Credentials_Delete.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.credentialOperations()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential",
+ .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new TriggerFilterParameters().withParentTriggerName("exampleTrigger"),
com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_Start
+### IntegrationRuntimes_Delete
```java
/**
- * Samples for Triggers Start.
+ * Samples for Triggers SubscribeToEvents.
*/
-public final class TriggersStartSamples {
+public final class TriggersSubscribeToEventsSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * Triggers_SubscribeToEvents.json
*/
/**
- * Sample code: Triggers_Start.
+ * Sample code: Triggers_SubscribeToEvents.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void triggersSubscribeToEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.triggers()
- .start("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE);
+ .subscribeToEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
+ com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_Stop
+### IntegrationRuntimes_Get
```java
/**
- * Samples for IntegrationRuntimeNodes GetSync.
+ * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints.
*/
-public final class IntegrationRuntimeNodesGetSyncSamples {
+public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimeNodes_Get.json
+ * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json
*/
/**
- * Sample code: IntegrationRuntimeNodes_Get.
+ * Sample code: IntegrationRuntimes_OutboundNetworkDependenciesEndpoints.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimeNodesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimeNodes()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1",
- com.azure.core.util.Context.NONE);
+ public static void integrationRuntimesOutboundNetworkDependenciesEndpoints(
+ com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .listOutboundNetworkDependenciesEndpointsWithResponse("exampleResourceGroup", "exampleFactoryName",
+ "exampleIntegrationRuntime", com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_SyncCredentialsSync
+### IntegrationRuntimes_GetConnectionInfo
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService;
-import com.azure.resourcemanager.datafactory.models.LinkedServiceResource;
-import java.io.IOException;
-
/**
- * Samples for LinkedServices CreateOrUpdateSync.
+ * Samples for Triggers Start.
*/
-public final class LinkedServicesCreateOrUpdateSyncSamples {
- /*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create
- * .json
- */
- /**
- * Sample code: LinkedServices_Create.
- *
- * @param manager Entry point to DataFactoryManager.
- */
- public static void linkedServicesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- manager.linkedServices()
- .define("exampleLinkedService")
- .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new AzureStorageLinkedService().withConnectionString(SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}",
- Object.class, SerializerEncoding.JSON)))
- .create();
- }
-
+public final class TriggersStartSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update
- * .json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json
*/
/**
- * Sample code: LinkedServices_Update.
+ * Sample code: Triggers_Start.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void linkedServicesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- LinkedServiceResource resource = manager.linkedServices()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null,
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new AzureStorageLinkedService().withDescription("Example description")
- .withConnectionString(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}",
- Object.class, SerializerEncoding.JSON)))
- .apply();
+ public static void triggersStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggers()
+ .start("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_UpdateSync
+### IntegrationRuntimes_GetMonitoringData
```java
-import com.azure.resourcemanager.datafactory.models.ExposureControlRequest;
-
/**
- * Samples for ExposureControl GetFeatureValueSync.
+ * Samples for GlobalParameters ListByFactory.
*/
-public final class ExposureControlGetFeatureValueSyncSamples {
+public final class GlobalParametersListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ExposureControl_GetFeatureValue.json
+ * GlobalParameters_ListByFactory.json
*/
/**
- * Sample code: ExposureControl_GetFeatureValue.
+ * Sample code: GlobalParameters_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- exposureControlGetFeatureValue(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.exposureControls()
- .getFeatureValueWithResponse("WestEurope",
- new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac")
- .withFeatureType("Feature"),
- com.azure.core.util.Context.NONE);
+ public static void globalParametersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.globalParameters()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### IntegrationRuntimes_UpgradeSync
+### IntegrationRuntimes_GetStatus
```java
/**
- * Samples for GlobalParameters GetSync.
+ * Samples for ManagedVirtualNetworks Get.
*/
-public final class GlobalParametersGetSyncSamples {
+public final class ManagedVirtualNetworksGetSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.
- * json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * ManagedVirtualNetworks_Get.json
*/
/**
- * Sample code: GlobalParameters_Get.
+ * Sample code: ManagedVirtualNetworks_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void globalParametersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.globalParameters()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE);
+ public static void managedVirtualNetworksGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedVirtualNetworks()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### LinkedServices_CreateOrUpdateSync
+### IntegrationRuntimes_ListAuthKeys
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for Pipelines CreateRunSync.
+ * Samples for IntegrationRuntimes ListByFactory.
*/
-public final class PipelinesCreateRunSyncSamples {
+public final class IntegrationRuntimesListByFactorySamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.
- * json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * IntegrationRuntimes_ListByFactory.json
*/
/**
- * Sample code: Pipelines_CreateRun.
+ * Sample code: IntegrationRuntimes_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelinesCreateRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- manager.pipelines()
- .createRunWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, null, null,
- null,
- mapOf("OutputBlobNameList",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)),
- com.azure.core.util.Context.NONE);
+ public static void
+ integrationRuntimesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
+}
+```
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+### IntegrationRuntimes_ListByFactory
+
+```java
+/**
+ * Samples for Factories CreateOrUpdate.
+ */
+public final class FactoriesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * Factories_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Factories_CreateOrUpdate.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void factoriesCreateOrUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories()
+ .define("exampleFactoryName")
+ .withRegion("East US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .create();
}
}
```
-### LinkedServices_DeleteSync
+### IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints
```java
+import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest;
+
/**
- * Samples for ChangeDataCapture StopSync.
+ * Samples for IntegrationRuntimes CreateLinkedIntegrationRuntime.
*/
-public final class ChangeDataCaptureStopSyncSamples {
+public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ChangeDataCapture_Stop.json
+ * IntegrationRuntimes_CreateLinkedIntegrationRuntime.json
*/
/**
- * Sample code: ChangeDataCapture_Stop.
+ * Sample code: IntegrationRuntimes_CreateLinkedIntegrationRuntime.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void changeDataCaptureStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.changeDataCaptures()
- .stopWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
+ public static void integrationRuntimesCreateLinkedIntegrationRuntime(
+ com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .createLinkedIntegrationRuntimeWithResponse("exampleResourceGroup", "exampleFactoryName",
+ "exampleIntegrationRuntime",
+ new CreateLinkedIntegrationRuntimeRequest().withName("bfa92911-9fb6-4fbe-8f23-beae87bc1c83")
+ .withSubscriptionId("061774c7-4b5a-4159-a55b-365581830283")
+ .withDataFactoryName("e9955d6d-56ea-4be3-841c-52a12c1a9981")
+ .withDataFactoryLocation("West US"),
com.azure.core.util.Context.NONE);
}
}
```
-### LinkedServices_GetSync
+### IntegrationRuntimes_RegenerateAuthKey
```java
/**
- * Samples for Datasets GetSync.
+ * Samples for PrivateLinkResources Get.
*/
-public final class DatasetsGetSyncSamples {
+public final class PrivateLinkResourcesGetSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * GetPrivateLinkResources.json
*/
/**
- * Sample code: Datasets_Get.
+ * Sample code: Get private link resources of a site.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void datasetsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.datasets()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null,
- com.azure.core.util.Context.NONE);
+ public static void
+ getPrivateLinkResourcesOfASite(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.privateLinkResources()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### LinkedServices_ListByFactorySync
+### IntegrationRuntimes_RemoveLinks
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.datafactory.models.BlobSink;
-import com.azure.resourcemanager.datafactory.models.BlobSource;
-import com.azure.resourcemanager.datafactory.models.CopyActivity;
-import com.azure.resourcemanager.datafactory.models.DatasetReference;
-import com.azure.resourcemanager.datafactory.models.Expression;
-import com.azure.resourcemanager.datafactory.models.ForEachActivity;
-import com.azure.resourcemanager.datafactory.models.ParameterSpecification;
-import com.azure.resourcemanager.datafactory.models.ParameterType;
-import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy;
-import com.azure.resourcemanager.datafactory.models.PipelinePolicy;
-import com.azure.resourcemanager.datafactory.models.PipelineResource;
-import com.azure.resourcemanager.datafactory.models.VariableSpecification;
-import com.azure.resourcemanager.datafactory.models.VariableType;
-import java.io.IOException;
-import java.util.Arrays;
+import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Pipelines CreateOrUpdateSync.
+ * Samples for ManagedVirtualNetworks CreateOrUpdate.
*/
-public final class PipelinesCreateOrUpdateSyncSamples {
+public final class ManagedVirtualNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * ManagedVirtualNetworks_Create.json
*/
/**
- * Sample code: Pipelines_Create.
+ * Sample code: ManagedVirtualNetworks_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelinesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- manager.pipelines()
- .define("examplePipeline")
+ public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedVirtualNetworks()
+ .define("exampleManagedVirtualNetworkName")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity")
- .withIsSequential(true)
- .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList"))
- .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity")
- .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
- .withParameters(
- mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer"))))
- .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
- .withParameters(mapOf("MyFileName",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class,
- SerializerEncoding.JSON),
- "MyFolderPath", "examplecontainer"))))
- .withSource(new BlobSource())
- .withSink(new BlobSink())
- .withDataIntegrationUnits(32)))))
- .withParameters(mapOf("JobId", new ParameterSpecification().withType(ParameterType.STRING),
- "OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY)))
- .withVariables(mapOf("TestVariableArray", new VariableSpecification().withType(VariableType.ARRAY)))
- .withRunDimensions(mapOf("JobId",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.JobId\"}", Object.class,
- SerializerEncoding.JSON)))
- .withPolicy(new PipelinePolicy()
- .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00")))
+ .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf()))
.create();
}
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### IntegrationRuntimes_Start
+
+```java
+import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential;
+
+/**
+ * Samples for CredentialOperations CreateOrUpdate.
+ */
+public final class CredentialOperationsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.
+ * json
*/
/**
- * Sample code: Pipelines_Update.
+ * Sample code: Credentials_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelinesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- PipelineResource resource = manager.pipelines()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null,
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withDescription("Example description")
- .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity")
- .withIsSequential(true)
- .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList"))
- .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity")
- .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
- .withParameters(
- mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer"))))
- .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset")
- .withParameters(mapOf("MyFileName",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class,
- SerializerEncoding.JSON),
- "MyFolderPath", "examplecontainer"))))
- .withSource(new BlobSource())
- .withSink(new BlobSink())
- .withDataIntegrationUnits(32)))))
- .withParameters(mapOf("OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY)))
- .withPolicy(new PipelinePolicy()
- .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00")))
- .apply();
+ public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.credentialOperations()
+ .define("exampleCredential")
+ .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
+ .withProperties(new ManagedIdentityCredential().withResourceId(
+ "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"))
+ .create();
}
+}
+```
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+### IntegrationRuntimes_Stop
+
+```java
+import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate;
+import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration;
+
+/**
+ * Samples for Factories ConfigureFactoryRepo.
+ */
+public final class FactoriesConfigureFactoryRepoSamples {
+ /*
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * Factories_ConfigureFactoryRepo.json
+ */
+ /**
+ * Sample code: Factories_ConfigureFactoryRepo.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void factoriesConfigureFactoryRepo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories()
+ .configureFactoryRepoWithResponse("East US", new FactoryRepoUpdate().withFactoryResourceId(
+ "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName")
+ .withRepoConfiguration(new FactoryVstsConfiguration().withAccountName("ADF")
+ .withRepositoryName("repo")
+ .withCollaborationBranch("master")
+ .withRootFolder("/")
+ .withLastCommitId("")
+ .withProjectName("project")
+ .withTenantId("")),
+ com.azure.core.util.Context.NONE);
}
}
```
-### ManagedPrivateEndpoints_CreateOrUpdateSync
+### IntegrationRuntimes_SyncCredentials
```java
/**
- * Samples for TriggerRuns CancelSync.
+ * Samples for ChangeDataCapture Status.
*/
-public final class TriggerRunsCancelSyncSamples {
+public final class ChangeDataCaptureStatusSamples {
/*
- * x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.
- * json
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * ChangeDataCapture_Status.json
*/
/**
- * Sample code: Triggers_Cancel.
+ * Sample code: ChangeDataCapture_Start.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggerRuns()
- .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
- "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", com.azure.core.util.Context.NONE);
+ public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .statusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ManagedPrivateEndpoints_DeleteSync
+### IntegrationRuntimes_Update
```java
/**
- * Samples for IntegrationRuntimes SyncCredentialsSync.
+ * Samples for DataFlows Delete.
*/
-public final class IntegrationRuntimesSyncCredentialsSyncSamples {
+public final class DataFlowsDeleteSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_SyncCredentials.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json
*/
/**
- * Sample code: IntegrationRuntimes_SyncCredentials.
+ * Sample code: DataFlows_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- integrationRuntimesSyncCredentials(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .syncCredentialsWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ public static void dataFlowsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.dataFlows()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow",
com.azure.core.util.Context.NONE);
}
}
```
-### ManagedPrivateEndpoints_GetSync
+### IntegrationRuntimes_Upgrade
```java
+import com.azure.resourcemanager.datafactory.models.RunFilterParameters;
+import com.azure.resourcemanager.datafactory.models.RunQueryFilter;
+import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand;
+import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
/**
- * Samples for IntegrationRuntimes ListByFactorySync.
+ * Samples for TriggerRuns QueryByFactory.
*/
-public final class IntegrationRuntimesListByFactorySyncSamples {
+public final class TriggerRunsQueryByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_ListByFactory.json
+ * TriggerRuns_QueryByFactory.json
*/
/**
- * Sample code: IntegrationRuntimes_ListByFactory.
+ * Sample code: TriggerRuns_QueryByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- integrationRuntimesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ public static void triggerRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggerRuns()
+ .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z"))
+ .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z"))
+ .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.TRIGGER_NAME)
+ .withOperator(RunQueryFilterOperator.EQUALS)
+ .withValues(Arrays.asList("exampleTrigger")))),
+ com.azure.core.util.Context.NONE);
}
}
```
-### ManagedPrivateEndpoints_ListByFactorySync
+### LinkedServices_CreateOrUpdate
```java
/**
- * Samples for Triggers GetEventSubscriptionStatusSync.
+ * Samples for Triggers GetEventSubscriptionStatus.
*/
-public final class TriggersGetEventSubscriptionStatusSyncSamples {
+public final class TriggersGetEventSubscriptionStatusSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
* Triggers_GetEventSubscriptionStatus.json
@@ -2402,106 +2270,106 @@ public final class TriggersGetEventSubscriptionStatusSyncSamples {
}
```
-### ManagedVirtualNetworks_CreateOrUpdateSync
+### LinkedServices_Delete
```java
/**
- * Samples for Factories CreateOrUpdateSync.
+ * Samples for Factories List.
*/
-public final class FactoriesCreateOrUpdateSyncSamples {
+public final class FactoriesListSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Factories_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json
*/
/**
- * Sample code: Factories_CreateOrUpdate.
+ * Sample code: Factories_List.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesCreateOrUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories()
- .define("exampleFactoryName")
- .withRegion("East US")
- .withExistingResourceGroup("exampleResourceGroup")
- .create();
+ public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories().list(com.azure.core.util.Context.NONE);
}
}
```
-### ManagedVirtualNetworks_GetSync
+### LinkedServices_Get
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.datafactory.models.AzureBlobDataset;
-import com.azure.resourcemanager.datafactory.models.DatasetResource;
-import com.azure.resourcemanager.datafactory.models.LinkedServiceReference;
-import com.azure.resourcemanager.datafactory.models.ParameterSpecification;
-import com.azure.resourcemanager.datafactory.models.ParameterType;
-import com.azure.resourcemanager.datafactory.models.TextFormat;
+import com.azure.resourcemanager.datafactory.models.PipelineReference;
+import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency;
+import com.azure.resourcemanager.datafactory.models.ScheduleTrigger;
+import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence;
+import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference;
+import com.azure.resourcemanager.datafactory.models.TriggerResource;
import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Datasets CreateOrUpdateSync.
+ * Samples for Triggers CreateOrUpdate.
*/
-public final class DatasetsCreateOrUpdateSyncSamples {
+public final class TriggersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json
*/
/**
- * Sample code: Datasets_Create.
+ * Sample code: Triggers_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void datasetsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ public static void triggersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
throws IOException {
- manager.datasets()
- .define("exampleDataset")
+ manager.triggers()
+ .define("exampleTrigger")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new AzureBlobDataset()
- .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService"))
- .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING),
- "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING)))
- .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class,
- SerializerEncoding.JSON))
- .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class,
- SerializerEncoding.JSON))
- .withFormat(new TextFormat()))
+ .withProperties(new ScheduleTrigger()
+ .withPipelines(Arrays.asList(new TriggerPipelineReference()
+ .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline"))
+ .withParameters(mapOf("OutputBlobNameList",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)))))
+ .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE)
+ .withInterval(4)
+ .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:13.8441801Z"))
+ .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:13.8441801Z"))
+ .withTimeZone("UTC")
+ .withAdditionalProperties(mapOf())))
.create();
}
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json
*/
/**
- * Sample code: Datasets_Update.
+ * Sample code: Triggers_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void datasetsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ public static void triggersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
throws IOException {
- DatasetResource resource = manager.datasets()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null,
+ TriggerResource resource = manager.triggers()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null,
com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withProperties(new AzureBlobDataset().withDescription("Example description")
- .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService"))
- .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING),
- "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING)))
- .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class,
- SerializerEncoding.JSON))
- .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class,
- SerializerEncoding.JSON))
- .withFormat(new TextFormat()))
+ .withProperties(new ScheduleTrigger().withDescription("Example description")
+ .withPipelines(Arrays.asList(new TriggerPipelineReference()
+ .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline"))
+ .withParameters(mapOf("OutputBlobNameList",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)))))
+ .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE)
+ .withInterval(4)
+ .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:14.905167Z"))
+ .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:14.905167Z"))
+ .withTimeZone("UTC")
+ .withAdditionalProperties(mapOf())))
.apply();
}
@@ -2519,253 +2387,262 @@ public final class DatasetsCreateOrUpdateSyncSamples {
}
```
-### ManagedVirtualNetworks_ListByFactorySync
+### LinkedServices_ListByFactory
+
+```java
+import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest;
+
+/**
+ * Samples for DataFlowDebugSession Delete.
+ */
+public final class DataFlowDebugSessionDeleteSamples {
+ /*
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * DataFlowDebugSession_Delete.json
+ */
+ /**
+ * Sample code: DataFlowDebugSession_Delete.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void dataFlowDebugSessionDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.dataFlowDebugSessions()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new DeleteDataFlowDebugSessionRequest().withSessionId("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedPrivateEndpoints_CreateOrUpdate
```java
/**
- * Samples for Factories ListSync.
+ * Samples for PipelineRuns Cancel.
*/
-public final class FactoriesListSyncSamples {
+public final class PipelineRunsCancelSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.
+ * json
*/
/**
- * Sample code: Factories_List.
+ * Sample code: PipelineRuns_Cancel.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories().list(com.azure.core.util.Context.NONE);
+ public static void pipelineRunsCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.pipelineRuns()
+ .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "16ac5348-ff82-4f95-a80d-638c1d47b721",
+ null, com.azure.core.util.Context.NONE);
}
}
```
-### Operations_ListSync
+### ManagedPrivateEndpoints_Delete
```java
/**
- * Samples for Triggers ListByFactorySync.
+ * Samples for Triggers Stop.
*/
-public final class TriggersListByFactorySyncSamples {
+public final class TriggersStopSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Triggers_ListByFactory.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json
*/
/**
- * Sample code: Triggers_ListByFactory.
+ * Sample code: Triggers_Stop.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void triggersStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.triggers()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ .stop("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedPrivateEndpoints_Get
+
+```java
+import com.azure.resourcemanager.datafactory.models.ExposureControlRequest;
+
+/**
+ * Samples for ExposureControl GetFeatureValue.
+ */
+public final class ExposureControlGetFeatureValueSamples {
+ /*
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * ExposureControl_GetFeatureValue.json
+ */
+ /**
+ * Sample code: ExposureControl_GetFeatureValue.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void
+ exposureControlGetFeatureValue(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.exposureControls()
+ .getFeatureValueWithResponse("WestEurope",
+ new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac")
+ .withFeatureType("Feature"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### PipelineRuns_CancelSync
+### ManagedPrivateEndpoints_ListByFactory
```java
/**
- * Samples for Triggers Stop.
+ * Samples for Factories Delete.
*/
-public final class TriggersStopSamples {
+public final class FactoriesDeleteSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json
*/
/**
- * Sample code: Triggers_Stop.
+ * Sample code: Factories_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggers()
- .stop("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE);
+ public static void factoriesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories()
+ .deleteByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName",
+ com.azure.core.util.Context.NONE);
}
}
```
-### PipelineRuns_GetSync
+### ManagedVirtualNetworks_CreateOrUpdate
```java
/**
- * Samples for GlobalParameters ListByFactorySync.
+ * Samples for IntegrationRuntimes GetMonitoringData.
*/
-public final class GlobalParametersListByFactorySyncSamples {
+public final class IntegrationRuntimesGetMonitoringDataSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * GlobalParameters_ListByFactory.json
+ * IntegrationRuntimes_GetMonitoringData.json
*/
/**
- * Sample code: GlobalParameters_ListByFactory.
+ * Sample code: IntegrationRuntimes_GetMonitoringData.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void globalParametersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.globalParameters()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ public static void
+ integrationRuntimesGetMonitoringData(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .getMonitoringDataWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ com.azure.core.util.Context.NONE);
}
}
```
-### PipelineRuns_QueryByFactorySync
+### ManagedVirtualNetworks_Get
```java
-import com.azure.resourcemanager.datafactory.models.RunFilterParameters;
-import com.azure.resourcemanager.datafactory.models.RunQueryFilter;
-import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand;
-import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator;
-import java.time.OffsetDateTime;
+import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest;
+import com.azure.resourcemanager.datafactory.models.ExposureControlRequest;
import java.util.Arrays;
/**
- * Samples for PipelineRuns QueryByFactorySync.
+ * Samples for ExposureControl QueryFeatureValuesByFactory.
*/
-public final class PipelineRunsQueryByFactorySyncSamples {
+public final class ExposureControlQueryFeatureValuesByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * PipelineRuns_QueryByFactory.json
+ * ExposureControl_QueryFeatureValuesByFactory.json
*/
/**
- * Sample code: PipelineRuns_QueryByFactory.
+ * Sample code: ExposureControl_QueryFeatureValuesByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void pipelineRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.pipelineRuns()
- .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
- new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z"))
- .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z"))
- .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.PIPELINE_NAME)
- .withOperator(RunQueryFilterOperator.EQUALS)
- .withValues(Arrays.asList("examplePipeline")))),
+ public static void
+ exposureControlQueryFeatureValuesByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.exposureControls()
+ .queryFeatureValuesByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new ExposureControlBatchRequest().withExposureControlRequests(Arrays.asList(
+ new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac")
+ .withFeatureType("Feature"),
+ new ExposureControlRequest().withFeatureName("ADFSampleFeature").withFeatureType("Feature"))),
com.azure.core.util.Context.NONE);
}
}
```
-### Pipelines_CreateOrUpdateSync
+### ManagedVirtualNetworks_ListByFactory
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.datafactory.models.PipelineReference;
-import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency;
-import com.azure.resourcemanager.datafactory.models.ScheduleTrigger;
-import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence;
-import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference;
-import com.azure.resourcemanager.datafactory.models.TriggerResource;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for Triggers CreateOrUpdateSync.
+ * Samples for Operations List.
*/
-public final class TriggersCreateOrUpdateSyncSamples {
+public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json
*/
/**
- * Sample code: Triggers_Create.
+ * Sample code: Operations_List.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- manager.triggers()
- .define("exampleTrigger")
- .withExistingFactory("exampleResourceGroup", "exampleFactoryName")
- .withProperties(new ScheduleTrigger()
- .withPipelines(Arrays.asList(new TriggerPipelineReference()
- .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline"))
- .withParameters(mapOf("OutputBlobNameList",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)))))
- .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE)
- .withInterval(4)
- .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:13.8441801Z"))
- .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:13.8441801Z"))
- .withTimeZone("UTC")
- .withAdditionalProperties(mapOf())))
- .create();
+ public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
+}
+```
+### Operations_List
+
+```java
+/**
+ * Samples for Triggers Get.
+ */
+public final class TriggersGetSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json
*/
/**
- * Sample code: Triggers_Update.
+ * Sample code: Triggers_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
- throws IOException {
- TriggerResource resource = manager.triggers()
+ public static void triggersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggers()
.getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null,
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new ScheduleTrigger().withDescription("Example description")
- .withPipelines(Arrays.asList(new TriggerPipelineReference()
- .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline"))
- .withParameters(mapOf("OutputBlobNameList",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)))))
- .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE)
- .withInterval(4)
- .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:14.905167Z"))
- .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:14.905167Z"))
- .withTimeZone("UTC")
- .withAdditionalProperties(mapOf())))
- .apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ com.azure.core.util.Context.NONE);
}
}
```
-### Pipelines_CreateRunSync
+### PipelineRuns_Cancel
```java
/**
- * Samples for ManagedVirtualNetworks ListByFactorySync.
+ * Samples for DataFlows ListByFactory.
*/
-public final class ManagedVirtualNetworksListByFactorySyncSamples {
+public final class DataFlowsListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * ManagedVirtualNetworks_ListByFactory.json
+ * DataFlows_ListByFactory.json
*/
/**
- * Sample code: ManagedVirtualNetworks_ListByFactory.
+ * Sample code: DataFlows_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- managedVirtualNetworksListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.managedVirtualNetworks()
+ public static void dataFlowsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.dataFlows()
.listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### Pipelines_DeleteSync
+### PipelineRuns_Get
```java
import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest;
@@ -2820,32 +2697,31 @@ public final class DataFlowDebugSessionCreateSamples {
}
```
-### Pipelines_GetSync
+### PipelineRuns_QueryByFactory
```java
/**
- * Samples for IntegrationRuntimes GetMonitoringDataSync.
+ * Samples for ChangeDataCapture Delete.
*/
-public final class IntegrationRuntimesGetMonitoringDataSyncSamples {
+public final class ChangeDataCaptureDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_GetMonitoringData.json
+ * ChangeDataCapture_Delete.json
*/
/**
- * Sample code: IntegrationRuntimes_GetMonitoringData.
+ * Sample code: ChangeDataCapture_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void
- integrationRuntimesGetMonitoringData(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .getMonitoringDataWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ public static void changeDataCaptureDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
com.azure.core.util.Context.NONE);
}
}
```
-### Pipelines_ListByFactorySync
+### Pipelines_CreateOrUpdate
```java
/**
@@ -2869,283 +2745,373 @@ public final class IntegrationRuntimeObjectMetadataRefreshSamples {
}
```
-### PrivateEndPointConnections_ListByFactorySync
+### Pipelines_CreateRun
```java
/**
- * Samples for GlobalParameters DeleteSync.
+ * Samples for Pipelines Get.
*/
-public final class GlobalParametersDeleteSyncSamples {
+public final class PipelinesGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json
+ */
+ /**
+ * Sample code: Pipelines_Get.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void pipelinesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.pipelines()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Pipelines_Delete
+
+```java
+/**
+ * Samples for PrivateEndpointConnectionOperation Delete.
+ */
+public final class PrivateEndpointConnectionOperationDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * GlobalParameters_Delete.json
+ * DeletePrivateEndpointConnection.json
*/
/**
- * Sample code: GlobalParameters_Delete.
+ * Sample code: Delete a private endpoint connection for a datafactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void globalParametersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.globalParameters()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "default",
+ public static void deleteAPrivateEndpointConnectionForADatafactory(
+ com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.privateEndpointConnectionOperations()
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "connection",
com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnectionOperation_CreateOrUpdateSync
+### Pipelines_Get
```java
-import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest;
+/**
+ * Samples for CredentialOperations Get.
+ */
+public final class CredentialOperationsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json
+ */
+ /**
+ * Sample code: Credentials_Get.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.credentialOperations()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Pipelines_ListByFactory
+```java
/**
- * Samples for IntegrationRuntimeNodes UpdateSync.
+ * Samples for LinkedServices ListByFactory.
*/
-public final class IntegrationRuntimeNodesUpdateSyncSamples {
+public final class LinkedServicesListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimeNodes_Update.json
+ * LinkedServices_ListByFactory.json
*/
/**
- * Sample code: IntegrationRuntimeNodes_Update.
+ * Sample code: LinkedServices_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimeNodesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimeNodes()
- .updateWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1",
- new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), com.azure.core.util.Context.NONE);
+ public static void linkedServicesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.linkedServices()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnectionOperation_DeleteSync
+### PrivateEndPointConnections_ListByFactory
```java
/**
- * Samples for IntegrationRuntimes UpgradeSync.
+ * Samples for IntegrationRuntimes Delete.
*/
-public final class IntegrationRuntimesUpgradeSyncSamples {
+public final class IntegrationRuntimesDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_Upgrade.json
+ * IntegrationRuntimes_Delete.json
*/
/**
- * Sample code: IntegrationRuntimes_Upgrade.
+ * Sample code: IntegrationRuntimes_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ public static void integrationRuntimesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.integrationRuntimes()
- .upgradeWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnectionOperation_GetSync
+### PrivateEndpointConnectionOperation_CreateOrUpdate
```java
/**
- * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpointsSync.
+ * Samples for CredentialOperations ListByFactory.
*/
-public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples {
+public final class CredentialOperationsListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json
+ * Credentials_ListByFactory.json
*/
/**
- * Sample code: IntegrationRuntimes_OutboundNetworkDependenciesEndpoints.
+ * Sample code: Credentials_ListByFactory.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.credentialOperations()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnectionOperation_Delete
+
+```java
+/**
+ * Samples for GlobalParameters Get.
+ */
+public final class GlobalParametersGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.
+ * json
+ */
+ /**
+ * Sample code: GlobalParameters_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesOutboundNetworkDependenciesEndpoints(
- com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .listOutboundNetworkDependenciesEndpointsWithResponse("exampleResourceGroup", "exampleFactoryName",
- "exampleIntegrationRuntime", com.azure.core.util.Context.NONE);
+ public static void globalParametersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.globalParameters()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkResources_GetSync
+### PrivateEndpointConnectionOperation_Get
```java
/**
- * Samples for DataFlowDebugSession QueryByFactorySync.
+ * Samples for PrivateEndPointConnections ListByFactory.
*/
-public final class DataFlowDebugSessionQueryByFactorySyncSamples {
+public final class PrivateEndPointConnectionsListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * DataFlowDebugSession_QueryByFactory.json
+ * PrivateEndPointConnections_ListByFactory.json
*/
/**
- * Sample code: DataFlowDebugSession_QueryByFactory.
+ * Sample code: privateEndPointConnections_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void
- dataFlowDebugSessionQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.dataFlowDebugSessions()
- .queryByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ privateEndPointConnectionsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.privateEndPointConnections()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### TriggerRuns_CancelSync
+### PrivateLinkResources_Get
```java
-import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters;
+import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for Triggers QueryByFactorySync.
+ * Samples for ManagedPrivateEndpoints CreateOrUpdate.
*/
-public final class TriggersQueryByFactorySyncSamples {
+public final class ManagedPrivateEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Triggers_QueryByFactory.json
+ * ManagedPrivateEndpoints_Create.json
*/
/**
- * Sample code: Triggers_QueryByFactory.
+ * Sample code: ManagedVirtualNetworks_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggers()
- .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
- new TriggerFilterParameters().withParentTriggerName("exampleTrigger"),
- com.azure.core.util.Context.NONE);
+ public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.managedPrivateEndpoints()
+ .define("exampleManagedPrivateEndpointName")
+ .withExistingManagedVirtualNetwork("exampleResourceGroup", "exampleFactoryName",
+ "exampleManagedVirtualNetworkName")
+ .withProperties(new ManagedPrivateEndpoint().withFqdns(Arrays.asList())
+ .withGroupId("blob")
+ .withPrivateLinkResourceId(
+ "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage")
+ .withAdditionalProperties(mapOf()))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### TriggerRuns_QueryByFactorySync
+### TriggerRuns_Cancel
```java
-import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest;
+import com.azure.resourcemanager.datafactory.models.RunFilterParameters;
+import java.time.OffsetDateTime;
/**
- * Samples for DataFlowDebugSession DeleteSync.
+ * Samples for ActivityRuns QueryByPipelineRun.
*/
-public final class DataFlowDebugSessionDeleteSyncSamples {
+public final class ActivityRunsQueryByPipelineRunSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * DataFlowDebugSession_Delete.json
+ * ActivityRuns_QueryByPipelineRun.json
*/
/**
- * Sample code: DataFlowDebugSession_Delete.
+ * Sample code: ActivityRuns_QueryByPipelineRun.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void dataFlowDebugSessionDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.dataFlowDebugSessions()
- .deleteWithResponse("exampleResourceGroup", "exampleFactoryName",
- new DeleteDataFlowDebugSessionRequest().withSessionId("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"),
+ public static void
+ activityRunsQueryByPipelineRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.activityRuns()
+ .queryByPipelineRunWithResponse("exampleResourceGroup", "exampleFactoryName",
+ "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
+ new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z"))
+ .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")),
com.azure.core.util.Context.NONE);
}
}
```
-### TriggerRuns_RerunSync
+### TriggerRuns_QueryByFactory
```java
/**
- * Samples for Datasets ListByFactorySync.
+ * Samples for ChangeDataCapture Start.
*/
-public final class DatasetsListByFactorySyncSamples {
+public final class ChangeDataCaptureStartSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Datasets_ListByFactory.json
+ * ChangeDataCapture_Start.json
*/
/**
- * Sample code: Datasets_ListByFactory.
+ * Sample code: ChangeDataCapture_Start.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void datasetsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.datasets()
- .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
+ public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .startWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Triggers_CreateOrUpdateSync
+### TriggerRuns_Rerun
```java
-import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest;
-
/**
- * Samples for IntegrationRuntimes RemoveLinksSync.
+ * Samples for ChangeDataCapture Stop.
*/
-public final class IntegrationRuntimesRemoveLinksSyncSamples {
+public final class ChangeDataCaptureStopSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_RemoveLinks.json
+ * ChangeDataCapture_Stop.json
*/
/**
- * Sample code: IntegrationRuntimes_Upgrade.
+ * Sample code: ChangeDataCapture_Stop.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .removeLinksWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
- new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("exampleFactoryName-linked"),
+ public static void changeDataCaptureStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .stopWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture",
com.azure.core.util.Context.NONE);
}
}
```
-### Triggers_DeleteSync
+### Triggers_CreateOrUpdate
```java
/**
- * Samples for IntegrationRuntimes GetConnectionInfoSync.
+ * Samples for ChangeDataCapture ListByFactory.
*/
-public final class IntegrationRuntimesGetConnectionInfoSyncSamples {
+public final class ChangeDataCaptureListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_GetConnectionInfo.json
+ * ChangeDataCapture_ListByFactory.json
*/
/**
- * Sample code: IntegrationRuntimes_GetConnectionInfo.
+ * Sample code: ChangeDataCapture_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void
- integrationRuntimesGetConnectionInfo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .getConnectionInfoWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
- com.azure.core.util.Context.NONE);
+ changeDataCaptureListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.changeDataCaptures()
+ .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```
-### Triggers_GetEventSubscriptionStatusSync
+### Triggers_Delete
```java
/**
- * Samples for Triggers GetSync.
+ * Samples for Datasets Get.
*/
-public final class TriggersGetSyncSamples {
+public final class DatasetsGetSamples {
/*
* x-ms-original-file:
- * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json
*/
/**
- * Sample code: Triggers_Get.
+ * Sample code: Datasets_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggers()
- .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null,
+ public static void datasetsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.datasets()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null,
com.azure.core.util.Context.NONE);
}
}
```
-### Triggers_GetSync
+### Triggers_Get
```java
import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload;
@@ -3177,62 +3143,86 @@ public final class DataFlowDebugSessionExecuteCommandSamples {
}
```
-### Triggers_ListByFactorySync
+### Triggers_GetEventSubscriptionStatus
```java
/**
- * Samples for IntegrationRuntimeNodes GetIpAddressSync.
+ * Samples for PrivateEndpointConnectionOperation Get.
*/
-public final class IntegrationRuntimeNodesGetIpAddressSyncSamples {
+public final class PrivateEndpointConnectionOperationGetSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimeNodes_GetIpAddress.json
+ * GetPrivateEndpointConnection.json
*/
/**
- * Sample code: IntegrationRuntimeNodes_GetIpAddress.
+ * Sample code: Get a private endpoint connection for a datafactory.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void
- integrationRuntimeNodesGetIpAddress(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimeNodes()
- .getIpAddressWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
- "Node_1", com.azure.core.util.Context.NONE);
+ getAPrivateEndpointConnectionForADatafactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.privateEndpointConnectionOperations()
+ .getWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Triggers_QueryByFactorySync
+### Triggers_ListByFactory
```java
-import com.azure.resourcemanager.datafactory.models.RunFilterParameters;
-import com.azure.resourcemanager.datafactory.models.RunQueryFilter;
-import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand;
-import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
+import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName;
+import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters;
/**
- * Samples for TriggerRuns QueryByFactorySync.
+ * Samples for IntegrationRuntimes RegenerateAuthKey.
*/
-public final class TriggerRunsQueryByFactorySyncSamples {
+public final class IntegrationRuntimesRegenerateAuthKeySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * TriggerRuns_QueryByFactory.json
+ * IntegrationRuntimes_RegenerateAuthKey.json
*/
/**
- * Sample code: TriggerRuns_QueryByFactory.
+ * Sample code: IntegrationRuntimes_RegenerateAuthKey.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void triggerRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.triggerRuns()
- .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName",
- new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z"))
- .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z"))
- .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.TRIGGER_NAME)
- .withOperator(RunQueryFilterOperator.EQUALS)
- .withValues(Arrays.asList("exampleTrigger")))),
+ public static void
+ integrationRuntimesRegenerateAuthKey(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.integrationRuntimes()
+ .regenerateAuthKeyWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime",
+ new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Triggers_QueryByFactory
+
+```java
+import com.azure.resourcemanager.datafactory.models.UserAccessPolicy;
+
+/**
+ * Samples for Factories GetDataPlaneAccess.
+ */
+public final class FactoriesGetDataPlaneAccessSamples {
+ /*
+ * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
+ * Factories_GetDataPlaneAccess.json
+ */
+ /**
+ * Sample code: Factories_GetDataPlaneAccess.
+ *
+ * @param manager Entry point to DataFactoryManager.
+ */
+ public static void factoriesGetDataPlaneAccess(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.factories()
+ .getDataPlaneAccessWithResponse("exampleResourceGroup", "exampleFactoryName",
+ new UserAccessPolicy().withPermissions("r")
+ .withAccessResourcePath("")
+ .withProfileName("DefaultProfile")
+ .withStartTime("2018-11-10T02:46:20.2659347Z")
+ .withExpireTime("2018-11-10T09:46:20.2659347Z"),
com.azure.core.util.Context.NONE);
}
}
@@ -3242,20 +3232,20 @@ public final class TriggerRunsQueryByFactorySyncSamples {
```java
/**
- * Samples for LinkedServices ListByFactorySync.
+ * Samples for Datasets ListByFactory.
*/
-public final class LinkedServicesListByFactorySyncSamples {
+public final class DatasetsListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * LinkedServices_ListByFactory.json
+ * Datasets_ListByFactory.json
*/
/**
- * Sample code: LinkedServices_ListByFactory.
+ * Sample code: Datasets_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void linkedServicesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.linkedServices()
+ public static void datasetsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.datasets()
.listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
@@ -3264,30 +3254,24 @@ public final class LinkedServicesListByFactorySyncSamples {
### Triggers_Stop
```java
-import com.azure.resourcemanager.datafactory.models.UserAccessPolicy;
-
/**
- * Samples for Factories GetDataPlaneAccessSync.
+ * Samples for TriggerRuns Cancel.
*/
-public final class FactoriesGetDataPlaneAccessSyncSamples {
+public final class TriggerRunsCancelSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * Factories_GetDataPlaneAccess.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.
+ * json
*/
/**
- * Sample code: Factories_GetDataPlaneAccess.
+ * Sample code: Triggers_Cancel.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void factoriesGetDataPlaneAccess(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.factories()
- .getDataPlaneAccessWithResponse("exampleResourceGroup", "exampleFactoryName",
- new UserAccessPolicy().withPermissions("r")
- .withAccessResourcePath("")
- .withProfileName("DefaultProfile")
- .withStartTime("2018-11-10T02:46:20.2659347Z")
- .withExpireTime("2018-11-10T09:46:20.2659347Z"),
- com.azure.core.util.Context.NONE);
+ public static void triggersCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
+ manager.triggerRuns()
+ .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger",
+ "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", com.azure.core.util.Context.NONE);
}
}
```
@@ -3295,32 +3279,48 @@ public final class FactoriesGetDataPlaneAccessSyncSamples {
### Triggers_SubscribeToEvents
```java
-import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for IntegrationRuntimes CreateLinkedIntegrationRuntimeSync.
+ * Samples for Pipelines CreateRun.
*/
-public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples {
+public final class PipelinesCreateRunSamples {
/*
- * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/
- * IntegrationRuntimes_CreateLinkedIntegrationRuntime.json
+ * x-ms-original-file:
+ * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.
+ * json
*/
/**
- * Sample code: IntegrationRuntimes_CreateLinkedIntegrationRuntime.
+ * Sample code: Pipelines_CreateRun.
*
* @param manager Entry point to DataFactoryManager.
*/
- public static void integrationRuntimesCreateLinkedIntegrationRuntime(
- com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
- manager.integrationRuntimes()
- .createLinkedIntegrationRuntimeWithResponse("exampleResourceGroup", "exampleFactoryName",
- "exampleIntegrationRuntime",
- new CreateLinkedIntegrationRuntimeRequest().withName("bfa92911-9fb6-4fbe-8f23-beae87bc1c83")
- .withSubscriptionId("061774c7-4b5a-4159-a55b-365581830283")
- .withDataFactoryName("e9955d6d-56ea-4be3-841c-52a12c1a9981")
- .withDataFactoryLocation("West US"),
+ public static void pipelinesCreateRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager)
+ throws IOException {
+ manager.pipelines()
+ .createRunWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, null, null,
+ null,
+ mapOf("OutputBlobNameList",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)),
com.azure.core.util.Context.NONE);
}
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
@@ -3328,9 +3328,9 @@ public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples
```java
/**
- * Samples for TriggerRuns RerunSync.
+ * Samples for TriggerRuns Rerun.
*/
-public final class TriggerRunsRerunSyncSamples {
+public final class TriggerRunsRerunSamples {
/*
* x-ms-original-file:
* specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
index 8b2563eeafcf..56ab5787113b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java
index 0c15d4ff1fb9..225cf8c2e8d6 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java
@@ -336,9 +336,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
jsonWriter.writeJsonField("mwsAuthToken", this.mwsAuthToken);
jsonWriter.writeJsonField("secretKey", this.secretKey);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java
index b0682f3245e0..feb819c9703b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java
@@ -5,11 +5,11 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleAuthenticationType;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import java.io.IOException;
@@ -20,15 +20,100 @@
public final class AmazonRdsForLinkedServiceTypeProperties
implements JsonSerializable {
/*
- * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
+ * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0.
*/
private Object connectionString;
+ /*
+ * The location of AmazonRdsForOracle database you want to connect to, the supported forms include connector
+ * descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only
+ * used for Version 2.0.
+ */
+ private Object server;
+
+ /*
+ * Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0.
+ */
+ private AmazonRdsForOracleAuthenticationType authenticationType;
+
+ /*
+ * The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0.
+ */
+ private Object username;
+
/*
* The Azure key vault secret reference of password in connection string.
*/
private SecretBase password;
+ /*
+ * Specifies the encryption client behavior. Supported values are accepted, rejected, requested or required, default
+ * value is required. Type: string. Only used for Version 2.0.
+ */
+ private Object encryptionClient;
+
+ /*
+ * Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, AES256, 3DES112,
+ * 3DES168, default value is (AES256). Type: string. Only used for Version 2.0.
+ */
+ private Object encryptionTypesClient;
+
+ /*
+ * Specifies the desired data integrity behavior when this client connects to a server. Supported values are
+ * accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0.
+ */
+ private Object cryptoChecksumClient;
+
+ /*
+ * Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, SHA256, SHA384, SHA512,
+ * default value is (SHA512). Type: string. Only used for Version 2.0.
+ */
+ private Object cryptoChecksumTypesClient;
+
+ /*
+ * Specifies the amount that the source initially fetches for LOB columns, default value is 0. Type: integer. Only
+ * used for Version 2.0.
+ */
+ private Object initialLobFetchSize;
+
+ /*
+ * Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip, default
+ * value is 10485760. Type: integer. Only used for Version 2.0.
+ */
+ private Object fetchSize;
+
+ /*
+ * Specifies the number of cursors or statements to be cached for each database connection, default value is 0.
+ * Type: integer. Only used for Version 2.0.
+ */
+ private Object statementCacheSize;
+
+ /*
+ * Specifies a command that is issued immediately after connecting to the database to manage session settings. Type:
+ * string. Only used for Version 2.0.
+ */
+ private Object initializationString;
+
+ /*
+ * Specifies whether to use bulk copy or batch insert when loading data into the database, default value is true.
+ * Type: boolean. Only used for Version 2.0.
+ */
+ private Object enableBulkLoad;
+
+ /*
+ * Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you want to keep
+ * backward compatibility with Version 1.0's data type mappings, default value is false. Type: boolean. Only used
+ * for Version 2.0.
+ */
+ private Object supportV1DataTypes;
+
+ /*
+ * Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or
+ * string. This setting is ignored if supportV1DataTypes is not true, default value is true. Type: boolean. Only
+ * used for Version 2.0.
+ */
+ private Object fetchTswtzAsTimestamp;
+
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
@@ -43,7 +128,7 @@ public AmazonRdsForLinkedServiceTypeProperties() {
/**
* Get the connectionString property: The connection string. Type: string, SecureString or
- * AzureKeyVaultSecretReference.
+ * AzureKeyVaultSecretReference. Only used for Version 1.0.
*
* @return the connectionString value.
*/
@@ -53,7 +138,7 @@ public Object connectionString() {
/**
* Set the connectionString property: The connection string. Type: string, SecureString or
- * AzureKeyVaultSecretReference.
+ * AzureKeyVaultSecretReference. Only used for Version 1.0.
*
* @param connectionString the connectionString value to set.
* @return the AmazonRdsForLinkedServiceTypeProperties object itself.
@@ -63,6 +148,73 @@ public AmazonRdsForLinkedServiceTypeProperties withConnectionString(Object conne
return this;
}
+ /**
+ * Get the server property: The location of AmazonRdsForOracle database you want to connect to, the supported forms
+ * include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR).
+ * Type: string. Only used for Version 2.0.
+ *
+ * @return the server value.
+ */
+ public Object server() {
+ return this.server;
+ }
+
+ /**
+ * Set the server property: The location of AmazonRdsForOracle database you want to connect to, the supported forms
+ * include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR).
+ * Type: string. Only used for Version 2.0.
+ *
+ * @param server the server value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withServer(Object server) {
+ this.server = server;
+ return this;
+ }
+
+ /**
+ * Get the authenticationType property: Authentication type for connecting to the AmazonRdsForOracle database. Only
+ * used for Version 2.0.
+ *
+ * @return the authenticationType value.
+ */
+ public AmazonRdsForOracleAuthenticationType authenticationType() {
+ return this.authenticationType;
+ }
+
+ /**
+ * Set the authenticationType property: Authentication type for connecting to the AmazonRdsForOracle database. Only
+ * used for Version 2.0.
+ *
+ * @param authenticationType the authenticationType value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties
+ withAuthenticationType(AmazonRdsForOracleAuthenticationType authenticationType) {
+ this.authenticationType = authenticationType;
+ return this;
+ }
+
+ /**
+ * Get the username property: The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0.
+ *
+ * @return the username value.
+ */
+ public Object username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0.
+ *
+ * @param username the username value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withUsername(Object username) {
+ this.username = username;
+ return this;
+ }
+
/**
* Get the password property: The Azure key vault secret reference of password in connection string.
*
@@ -83,6 +235,256 @@ public AmazonRdsForLinkedServiceTypeProperties withPassword(SecretBase password)
return this;
}
+ /**
+ * Get the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted,
+ * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0.
+ *
+ * @return the encryptionClient value.
+ */
+ public Object encryptionClient() {
+ return this.encryptionClient;
+ }
+
+ /**
+ * Set the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted,
+ * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0.
+ *
+ * @param encryptionClient the encryptionClient value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withEncryptionClient(Object encryptionClient) {
+ this.encryptionClient = encryptionClient;
+ return this;
+ }
+
+ /**
+ * Get the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values
+ * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0.
+ *
+ * @return the encryptionTypesClient value.
+ */
+ public Object encryptionTypesClient() {
+ return this.encryptionTypesClient;
+ }
+
+ /**
+ * Set the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values
+ * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0.
+ *
+ * @param encryptionTypesClient the encryptionTypesClient value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withEncryptionTypesClient(Object encryptionTypesClient) {
+ this.encryptionTypesClient = encryptionTypesClient;
+ return this;
+ }
+
+ /**
+ * Get the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to
+ * a server. Supported values are accepted, rejected, requested or required, default value is required. Type:
+ * string. Only used for Version 2.0.
+ *
+ * @return the cryptoChecksumClient value.
+ */
+ public Object cryptoChecksumClient() {
+ return this.cryptoChecksumClient;
+ }
+
+ /**
+ * Set the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to
+ * a server. Supported values are accepted, rejected, requested or required, default value is required. Type:
+ * string. Only used for Version 2.0.
+ *
+ * @param cryptoChecksumClient the cryptoChecksumClient value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withCryptoChecksumClient(Object cryptoChecksumClient) {
+ this.cryptoChecksumClient = cryptoChecksumClient;
+ return this;
+ }
+
+ /**
+ * Get the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use.
+ * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version
+ * 2.0.
+ *
+ * @return the cryptoChecksumTypesClient value.
+ */
+ public Object cryptoChecksumTypesClient() {
+ return this.cryptoChecksumTypesClient;
+ }
+
+ /**
+ * Set the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use.
+ * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version
+ * 2.0.
+ *
+ * @param cryptoChecksumTypesClient the cryptoChecksumTypesClient value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withCryptoChecksumTypesClient(Object cryptoChecksumTypesClient) {
+ this.cryptoChecksumTypesClient = cryptoChecksumTypesClient;
+ return this;
+ }
+
+ /**
+ * Get the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns,
+ * default value is 0. Type: integer. Only used for Version 2.0.
+ *
+ * @return the initialLobFetchSize value.
+ */
+ public Object initialLobFetchSize() {
+ return this.initialLobFetchSize;
+ }
+
+ /**
+ * Set the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns,
+ * default value is 0. Type: integer. Only used for Version 2.0.
+ *
+ * @param initialLobFetchSize the initialLobFetchSize value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withInitialLobFetchSize(Object initialLobFetchSize) {
+ this.initialLobFetchSize = initialLobFetchSize;
+ return this;
+ }
+
+ /**
+ * Get the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one
+ * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0.
+ *
+ * @return the fetchSize value.
+ */
+ public Object fetchSize() {
+ return this.fetchSize;
+ }
+
+ /**
+ * Set the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one
+ * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0.
+ *
+ * @param fetchSize the fetchSize value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withFetchSize(Object fetchSize) {
+ this.fetchSize = fetchSize;
+ return this;
+ }
+
+ /**
+ * Get the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database
+ * connection, default value is 0. Type: integer. Only used for Version 2.0.
+ *
+ * @return the statementCacheSize value.
+ */
+ public Object statementCacheSize() {
+ return this.statementCacheSize;
+ }
+
+ /**
+ * Set the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database
+ * connection, default value is 0. Type: integer. Only used for Version 2.0.
+ *
+ * @param statementCacheSize the statementCacheSize value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withStatementCacheSize(Object statementCacheSize) {
+ this.statementCacheSize = statementCacheSize;
+ return this;
+ }
+
+ /**
+ * Get the initializationString property: Specifies a command that is issued immediately after connecting to the
+ * database to manage session settings. Type: string. Only used for Version 2.0.
+ *
+ * @return the initializationString value.
+ */
+ public Object initializationString() {
+ return this.initializationString;
+ }
+
+ /**
+ * Set the initializationString property: Specifies a command that is issued immediately after connecting to the
+ * database to manage session settings. Type: string. Only used for Version 2.0.
+ *
+ * @param initializationString the initializationString value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withInitializationString(Object initializationString) {
+ this.initializationString = initializationString;
+ return this;
+ }
+
+ /**
+ * Get the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the
+ * database, default value is true. Type: boolean. Only used for Version 2.0.
+ *
+ * @return the enableBulkLoad value.
+ */
+ public Object enableBulkLoad() {
+ return this.enableBulkLoad;
+ }
+
+ /**
+ * Set the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the
+ * database, default value is true. Type: boolean. Only used for Version 2.0.
+ *
+ * @param enableBulkLoad the enableBulkLoad value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withEnableBulkLoad(Object enableBulkLoad) {
+ this.enableBulkLoad = enableBulkLoad;
+ return this;
+ }
+
+ /**
+ * Get the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this
+ * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is
+ * false. Type: boolean. Only used for Version 2.0.
+ *
+ * @return the supportV1DataTypes value.
+ */
+ public Object supportV1DataTypes() {
+ return this.supportV1DataTypes;
+ }
+
+ /**
+ * Set the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this
+ * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is
+ * false. Type: boolean. Only used for Version 2.0.
+ *
+ * @param supportV1DataTypes the supportV1DataTypes value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withSupportV1DataTypes(Object supportV1DataTypes) {
+ this.supportV1DataTypes = supportV1DataTypes;
+ return this;
+ }
+
+ /**
+ * Get the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH
+ * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default
+ * value is true. Type: boolean. Only used for Version 2.0.
+ *
+ * @return the fetchTswtzAsTimestamp value.
+ */
+ public Object fetchTswtzAsTimestamp() {
+ return this.fetchTswtzAsTimestamp;
+ }
+
+ /**
+ * Set the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH
+ * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default
+ * value is true. Type: boolean. Only used for Version 2.0.
+ *
+ * @param fetchTswtzAsTimestamp the fetchTswtzAsTimestamp value to set.
+ * @return the AmazonRdsForLinkedServiceTypeProperties object itself.
+ */
+ public AmazonRdsForLinkedServiceTypeProperties withFetchTswtzAsTimestamp(Object fetchTswtzAsTimestamp) {
+ this.fetchTswtzAsTimestamp = fetchTswtzAsTimestamp;
+ return this;
+ }
+
/**
* Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
* using the integration runtime credential manager. Type: string.
@@ -111,26 +513,62 @@ public AmazonRdsForLinkedServiceTypeProperties withEncryptedCredential(String en
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (connectionString() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property connectionString in model AmazonRdsForLinkedServiceTypeProperties"));
- }
if (password() != null) {
password().validate();
}
}
- private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForLinkedServiceTypeProperties.class);
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ jsonWriter.writeStringField("authenticationType",
+ this.authenticationType == null ? null : this.authenticationType.toString());
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
+ if (this.encryptionClient != null) {
+ jsonWriter.writeUntypedField("encryptionClient", this.encryptionClient);
+ }
+ if (this.encryptionTypesClient != null) {
+ jsonWriter.writeUntypedField("encryptionTypesClient", this.encryptionTypesClient);
+ }
+ if (this.cryptoChecksumClient != null) {
+ jsonWriter.writeUntypedField("cryptoChecksumClient", this.cryptoChecksumClient);
+ }
+ if (this.cryptoChecksumTypesClient != null) {
+ jsonWriter.writeUntypedField("cryptoChecksumTypesClient", this.cryptoChecksumTypesClient);
+ }
+ if (this.initialLobFetchSize != null) {
+ jsonWriter.writeUntypedField("initialLobFetchSize", this.initialLobFetchSize);
+ }
+ if (this.fetchSize != null) {
+ jsonWriter.writeUntypedField("fetchSize", this.fetchSize);
+ }
+ if (this.statementCacheSize != null) {
+ jsonWriter.writeUntypedField("statementCacheSize", this.statementCacheSize);
+ }
+ if (this.initializationString != null) {
+ jsonWriter.writeUntypedField("initializationString", this.initializationString);
+ }
+ if (this.enableBulkLoad != null) {
+ jsonWriter.writeUntypedField("enableBulkLoad", this.enableBulkLoad);
+ }
+ if (this.supportV1DataTypes != null) {
+ jsonWriter.writeUntypedField("supportV1DataTypes", this.supportV1DataTypes);
+ }
+ if (this.fetchTswtzAsTimestamp != null) {
+ jsonWriter.writeUntypedField("fetchTswtzAsTimestamp", this.fetchTswtzAsTimestamp);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
@@ -141,7 +579,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @param jsonReader The JsonReader being read.
* @return An instance of AmazonRdsForLinkedServiceTypeProperties if the JsonReader was pointing to an instance of
* it, or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the AmazonRdsForLinkedServiceTypeProperties.
*/
public static AmazonRdsForLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
@@ -154,8 +591,38 @@ public static AmazonRdsForLinkedServiceTypeProperties fromJson(JsonReader jsonRe
if ("connectionString".equals(fieldName)) {
deserializedAmazonRdsForLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("server".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.server = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.authenticationType
+ = AmazonRdsForOracleAuthenticationType.fromString(reader.getString());
+ } else if ("username".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.username = reader.readUntyped();
} else if ("password".equals(fieldName)) {
deserializedAmazonRdsForLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("encryptionClient".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.encryptionClient = reader.readUntyped();
+ } else if ("encryptionTypesClient".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.encryptionTypesClient = reader.readUntyped();
+ } else if ("cryptoChecksumClient".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.cryptoChecksumClient = reader.readUntyped();
+ } else if ("cryptoChecksumTypesClient".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.cryptoChecksumTypesClient
+ = reader.readUntyped();
+ } else if ("initialLobFetchSize".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.initialLobFetchSize = reader.readUntyped();
+ } else if ("fetchSize".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.fetchSize = reader.readUntyped();
+ } else if ("statementCacheSize".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.statementCacheSize = reader.readUntyped();
+ } else if ("initializationString".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.initializationString = reader.readUntyped();
+ } else if ("enableBulkLoad".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.enableBulkLoad = reader.readUntyped();
+ } else if ("supportV1DataTypes".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.supportV1DataTypes = reader.readUntyped();
+ } else if ("fetchTswtzAsTimestamp".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.fetchTswtzAsTimestamp = reader.readUntyped();
} else if ("encryptedCredential".equals(fieldName)) {
deserializedAmazonRdsForLinkedServiceTypeProperties.encryptedCredential = reader.getString();
} else {
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java
index ec433462da5c..0b32d7603c46 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java
index afe99cf6139b..2c4eef1c95e8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java
@@ -377,29 +377,71 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", server());
- jsonWriter.writeUntypedField("database", database());
- jsonWriter.writeUntypedField("encrypt", encrypt());
- jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
- jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
- jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
- jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
- jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
- jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
- jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
- jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
- jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
- jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
- jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
- jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
- jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
- jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
- jsonWriter.writeUntypedField("packetSize", packetSize());
- jsonWriter.writeUntypedField("pooling", pooling());
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (server() != null) {
+ jsonWriter.writeUntypedField("server", server());
+ }
+ if (database() != null) {
+ jsonWriter.writeUntypedField("database", database());
+ }
+ if (encrypt() != null) {
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ }
+ if (trustServerCertificate() != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ }
+ if (hostnameInCertificate() != null) {
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ }
+ if (applicationIntent() != null) {
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ }
+ if (connectTimeout() != null) {
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ }
+ if (connectRetryCount() != null) {
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ }
+ if (connectRetryInterval() != null) {
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ }
+ if (loadBalanceTimeout() != null) {
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ }
+ if (commandTimeout() != null) {
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ }
+ if (integratedSecurity() != null) {
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ }
+ if (failoverPartner() != null) {
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ }
+ if (maxPoolSize() != null) {
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ }
+ if (minPoolSize() != null) {
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ }
+ if (multipleActiveResultSets() != null) {
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ }
+ if (multiSubnetFailover() != null) {
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ }
+ if (packetSize() != null) {
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ }
+ if (pooling() != null) {
+ jsonWriter.writeUntypedField("pooling", pooling());
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java
index 2d29e3d41cec..8e8a0c8b9eaf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java
index 575bf5e7c626..db3bb0a38c89 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java
@@ -218,9 +218,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("server", this.server);
jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("port", this.port);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java
index 808fdc742dc0..25ec3d7b2acf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java
@@ -114,9 +114,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java
index 55519786c691..0a985b2cf1af 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java
@@ -183,10 +183,16 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ if (this.accessKeyId != null) {
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ }
jsonWriter.writeJsonField("secretAccessKey", this.secretAccessKey);
- jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
- jsonWriter.writeUntypedField("forcePathStyle", this.forcePathStyle);
+ if (this.serviceUrl != null) {
+ jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ }
+ if (this.forcePathStyle != null) {
+ jsonWriter.writeUntypedField("forcePathStyle", this.forcePathStyle);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java
index c8ca7abdf8f9..a5d1b5113c67 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java
@@ -261,11 +261,21 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("bucketName", this.bucketName);
- jsonWriter.writeUntypedField("key", this.key);
- jsonWriter.writeUntypedField("prefix", this.prefix);
- jsonWriter.writeUntypedField("version", this.version);
- jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
- jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ if (this.key != null) {
+ jsonWriter.writeUntypedField("key", this.key);
+ }
+ if (this.prefix != null) {
+ jsonWriter.writeUntypedField("prefix", this.prefix);
+ }
+ if (this.version != null) {
+ jsonWriter.writeUntypedField("version", this.version);
+ }
+ if (this.modifiedDatetimeStart != null) {
+ jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
+ }
+ if (this.modifiedDatetimeEnd != null) {
+ jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ }
jsonWriter.writeJsonField("format", this.format);
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java
index 49ade57c577d..f025a000d4df 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java
@@ -211,10 +211,16 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
+ if (this.accessKeyId != null) {
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ }
jsonWriter.writeJsonField("secretAccessKey", this.secretAccessKey);
- jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ if (this.serviceUrl != null) {
+ jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ }
jsonWriter.writeJsonField("sessionToken", this.sessionToken);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java
index 95d8432ac501..c0b5ee708679 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java
@@ -91,7 +91,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("variableName", this.variableName);
- jsonWriter.writeUntypedField("value", this.value);
+ if (this.value != null) {
+ jsonWriter.writeUntypedField("value", this.value);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java
index 5d97039923f4..4f7dc6175a20 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java
@@ -125,7 +125,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("avroCompressionCodec", this.avroCompressionCodec);
+ if (this.avroCompressionCodec != null) {
+ jsonWriter.writeUntypedField("avroCompressionCodec", this.avroCompressionCodec);
+ }
jsonWriter.writeNumberField("avroCompressionLevel", this.avroCompressionLevel);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java
index 03468ad49d20..d961a1e639ee 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java
@@ -225,11 +225,21 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("folderPath", this.folderPath);
- jsonWriter.writeUntypedField("tableRootLocation", this.tableRootLocation);
- jsonWriter.writeUntypedField("fileName", this.fileName);
- jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
- jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ if (this.folderPath != null) {
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ }
+ if (this.tableRootLocation != null) {
+ jsonWriter.writeUntypedField("tableRootLocation", this.tableRootLocation);
+ }
+ if (this.fileName != null) {
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ }
+ if (this.modifiedDatetimeStart != null) {
+ jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
+ }
+ if (this.modifiedDatetimeEnd != null) {
+ jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ }
jsonWriter.writeJsonField("format", this.format);
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java
index ef25dfaee8f9..5f88b041cba2 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java
@@ -148,8 +148,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("folderPath", this.folderPath);
- jsonWriter.writeUntypedField("fileName", this.fileName);
+ if (this.folderPath != null) {
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ }
+ if (this.fileName != null) {
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ }
jsonWriter.writeJsonField("format", this.format);
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java
index c607921c1bf1..1be04dcc0afc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java
@@ -390,17 +390,31 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("url", this.url);
- jsonWriter.writeUntypedField("accountKey", this.accountKey);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.url != null) {
+ jsonWriter.writeUntypedField("url", this.url);
+ }
+ if (this.accountKey != null) {
+ jsonWriter.writeUntypedField("accountKey", this.accountKey);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
- jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ if (this.sasUri != null) {
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ }
jsonWriter.writeJsonField("sasToken", this.sasToken);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java
index d9359edf275e..f82eefc5be09 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java
@@ -438,21 +438,37 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("accountKey", this.accountKey);
- jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ if (this.sasUri != null) {
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ }
jsonWriter.writeJsonField("sasToken", this.sasToken);
- jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.serviceEndpoint != null) {
+ jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
- jsonWriter.writeUntypedField("accountKind", this.accountKind);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
+ if (this.accountKind != null) {
+ jsonWriter.writeUntypedField("accountKind", this.accountKind);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("containerUri", this.containerUri);
+ if (this.containerUri != null) {
+ jsonWriter.writeUntypedField("containerUri", this.containerUri);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java
index 7146b8ff2fd7..2cd2689c6cbb 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java
@@ -102,7 +102,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("command", this.command);
- jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ if (this.commandTimeout != null) {
+ jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java
index 1bb13d7e0a05..7cff4e79b753 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java
@@ -64,7 +64,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java
index 4d0e6928bac0..d2b7906cf2e6 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java
@@ -221,9 +221,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("endpoint", this.endpoint);
jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java
index ab46a2b4957c..8b4c6dfa4082 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java
@@ -278,11 +278,19 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("accountName", this.accountName);
jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
- jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
- jsonWriter.writeUntypedField("dataLakeAnalyticsUri", this.dataLakeAnalyticsUri);
+ if (this.subscriptionId != null) {
+ jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
+ }
+ if (this.resourceGroupName != null) {
+ jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
+ }
+ if (this.dataLakeAnalyticsUri != null) {
+ jsonWriter.writeUntypedField("dataLakeAnalyticsUri", this.dataLakeAnalyticsUri);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java
index abe8b202c289..90bbbbf58d48 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java
@@ -149,8 +149,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("folderPath", this.folderPath);
- jsonWriter.writeUntypedField("fileName", this.fileName);
+ if (this.folderPath != null) {
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ }
+ if (this.fileName != null) {
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ }
jsonWriter.writeJsonField("format", this.format);
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java
index ddeecc860546..2a9ece477bb0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java
@@ -329,13 +329,25 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("dataLakeStoreUri", this.dataLakeStoreUri);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
- jsonWriter.writeUntypedField("accountName", this.accountName);
- jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
- jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
+ if (this.accountName != null) {
+ jsonWriter.writeUntypedField("accountName", this.accountName);
+ }
+ if (this.subscriptionId != null) {
+ jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
+ }
+ if (this.resourceGroupName != null) {
+ jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java
index aaf7a602e1fc..c7e4416934c7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java
@@ -87,8 +87,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("database", this.database);
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java
index b097fadf1e84..1526f4ce319f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java
@@ -222,10 +222,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("domain", this.domain);
jsonWriter.writeJsonField("accessToken", this.accessToken);
- jsonWriter.writeUntypedField("clusterId", this.clusterId);
+ if (this.clusterId != null) {
+ jsonWriter.writeUntypedField("clusterId", this.clusterId);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ if (this.workspaceResourceId != null) {
+ jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java
index e265b16d8d06..909fac9cf3ae 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java
@@ -135,6 +135,11 @@ public final class AzureDatabricksLinkedServiceTypeProperties
*/
private CredentialReference credential;
+ /*
+ * The data security mode for the Databricks Cluster. Type: string (or Expression with resultType string).
+ */
+ private Object dataSecurityMode;
+
/**
* Creates an instance of AzureDatabricksLinkedServiceTypeProperties class.
*/
@@ -572,6 +577,28 @@ public AzureDatabricksLinkedServiceTypeProperties withCredential(CredentialRefer
return this;
}
+ /**
+ * Get the dataSecurityMode property: The data security mode for the Databricks Cluster. Type: string (or Expression
+ * with resultType string).
+ *
+ * @return the dataSecurityMode value.
+ */
+ public Object dataSecurityMode() {
+ return this.dataSecurityMode;
+ }
+
+ /**
+ * Set the dataSecurityMode property: The data security mode for the Databricks Cluster. Type: string (or Expression
+ * with resultType string).
+ *
+ * @param dataSecurityMode the dataSecurityMode value to set.
+ * @return the AzureDatabricksLinkedServiceTypeProperties object itself.
+ */
+ public AzureDatabricksLinkedServiceTypeProperties withDataSecurityMode(Object dataSecurityMode) {
+ this.dataSecurityMode = dataSecurityMode;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -601,26 +628,53 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("domain", this.domain);
jsonWriter.writeJsonField("accessToken", this.accessToken);
- jsonWriter.writeUntypedField("authentication", this.authentication);
- jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
- jsonWriter.writeUntypedField("existingClusterId", this.existingClusterId);
- jsonWriter.writeUntypedField("instancePoolId", this.instancePoolId);
- jsonWriter.writeUntypedField("newClusterVersion", this.newClusterVersion);
- jsonWriter.writeUntypedField("newClusterNumOfWorker", this.newClusterNumOfWorker);
- jsonWriter.writeUntypedField("newClusterNodeType", this.newClusterNodeType);
+ if (this.authentication != null) {
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ }
+ if (this.workspaceResourceId != null) {
+ jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ }
+ if (this.existingClusterId != null) {
+ jsonWriter.writeUntypedField("existingClusterId", this.existingClusterId);
+ }
+ if (this.instancePoolId != null) {
+ jsonWriter.writeUntypedField("instancePoolId", this.instancePoolId);
+ }
+ if (this.newClusterVersion != null) {
+ jsonWriter.writeUntypedField("newClusterVersion", this.newClusterVersion);
+ }
+ if (this.newClusterNumOfWorker != null) {
+ jsonWriter.writeUntypedField("newClusterNumOfWorker", this.newClusterNumOfWorker);
+ }
+ if (this.newClusterNodeType != null) {
+ jsonWriter.writeUntypedField("newClusterNodeType", this.newClusterNodeType);
+ }
jsonWriter.writeMapField("newClusterSparkConf", this.newClusterSparkConf,
(writer, element) -> writer.writeUntyped(element));
jsonWriter.writeMapField("newClusterSparkEnvVars", this.newClusterSparkEnvVars,
(writer, element) -> writer.writeUntyped(element));
jsonWriter.writeMapField("newClusterCustomTags", this.newClusterCustomTags,
(writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("newClusterLogDestination", this.newClusterLogDestination);
- jsonWriter.writeUntypedField("newClusterDriverNodeType", this.newClusterDriverNodeType);
- jsonWriter.writeUntypedField("newClusterInitScripts", this.newClusterInitScripts);
- jsonWriter.writeUntypedField("newClusterEnableElasticDisk", this.newClusterEnableElasticDisk);
+ if (this.newClusterLogDestination != null) {
+ jsonWriter.writeUntypedField("newClusterLogDestination", this.newClusterLogDestination);
+ }
+ if (this.newClusterDriverNodeType != null) {
+ jsonWriter.writeUntypedField("newClusterDriverNodeType", this.newClusterDriverNodeType);
+ }
+ if (this.newClusterInitScripts != null) {
+ jsonWriter.writeUntypedField("newClusterInitScripts", this.newClusterInitScripts);
+ }
+ if (this.newClusterEnableElasticDisk != null) {
+ jsonWriter.writeUntypedField("newClusterEnableElasticDisk", this.newClusterEnableElasticDisk);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("policyId", this.policyId);
+ if (this.policyId != null) {
+ jsonWriter.writeUntypedField("policyId", this.policyId);
+ }
jsonWriter.writeJsonField("credential", this.credential);
+ if (this.dataSecurityMode != null) {
+ jsonWriter.writeUntypedField("dataSecurityMode", this.dataSecurityMode);
+ }
return jsonWriter.writeEndObject();
}
@@ -687,6 +741,8 @@ public static AzureDatabricksLinkedServiceTypeProperties fromJson(JsonReader jso
} else if ("credential".equals(fieldName)) {
deserializedAzureDatabricksLinkedServiceTypeProperties.credential
= CredentialReference.fromJson(reader);
+ } else if ("dataSecurityMode".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.dataSecurityMode = reader.readUntyped();
} else {
reader.skipChildren();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java
index 2d0523f08a71..e4e945365941 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java
@@ -369,17 +369,31 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("userId", this.userId);
+ if (this.host != null) {
+ jsonWriter.writeUntypedField("host", this.host);
+ }
+ if (this.userId != null) {
+ jsonWriter.writeUntypedField("userId", this.userId);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("accountKey", this.accountKey);
- jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ if (this.sasUri != null) {
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ }
jsonWriter.writeJsonField("sasToken", this.sasToken);
- jsonWriter.writeUntypedField("fileShare", this.fileShare);
- jsonWriter.writeUntypedField("snapshot", this.snapshot);
+ if (this.fileShare != null) {
+ jsonWriter.writeUntypedField("fileShare", this.fileShare);
+ }
+ if (this.snapshot != null) {
+ jsonWriter.writeUntypedField("snapshot", this.snapshot);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ if (this.serviceEndpoint != null) {
+ jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ }
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java
index c0625d819f1d..256a3d7e4d37 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java
@@ -167,7 +167,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("method", this.method == null ? null : this.method.toString());
jsonWriter.writeUntypedField("functionName", this.functionName);
jsonWriter.writeMapField("headers", this.headers, (writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("body", this.body);
+ if (this.body != null) {
+ jsonWriter.writeUntypedField("body", this.body);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java
index a5c240c9d78f..0ef0e0fe9236 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java
@@ -218,8 +218,12 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("functionKey", this.functionKey);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("resourceId", this.resourceId);
- jsonWriter.writeUntypedField("authentication", this.authentication);
+ if (this.resourceId != null) {
+ jsonWriter.writeUntypedField("resourceId", this.resourceId);
+ }
+ if (this.authentication != null) {
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java
index 3e21e559539a..c01b9636ae9a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java
@@ -273,14 +273,30 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("mlPipelineId", this.mlPipelineId);
- jsonWriter.writeUntypedField("mlPipelineEndpointId", this.mlPipelineEndpointId);
- jsonWriter.writeUntypedField("version", this.version);
- jsonWriter.writeUntypedField("experimentName", this.experimentName);
- jsonWriter.writeUntypedField("mlPipelineParameters", this.mlPipelineParameters);
- jsonWriter.writeUntypedField("dataPathAssignments", this.dataPathAssignments);
- jsonWriter.writeUntypedField("mlParentRunId", this.mlParentRunId);
- jsonWriter.writeUntypedField("continueOnStepFailure", this.continueOnStepFailure);
+ if (this.mlPipelineId != null) {
+ jsonWriter.writeUntypedField("mlPipelineId", this.mlPipelineId);
+ }
+ if (this.mlPipelineEndpointId != null) {
+ jsonWriter.writeUntypedField("mlPipelineEndpointId", this.mlPipelineEndpointId);
+ }
+ if (this.version != null) {
+ jsonWriter.writeUntypedField("version", this.version);
+ }
+ if (this.experimentName != null) {
+ jsonWriter.writeUntypedField("experimentName", this.experimentName);
+ }
+ if (this.mlPipelineParameters != null) {
+ jsonWriter.writeUntypedField("mlPipelineParameters", this.mlPipelineParameters);
+ }
+ if (this.dataPathAssignments != null) {
+ jsonWriter.writeUntypedField("dataPathAssignments", this.dataPathAssignments);
+ }
+ if (this.mlParentRunId != null) {
+ jsonWriter.writeUntypedField("mlParentRunId", this.mlParentRunId);
+ }
+ if (this.continueOnStepFailure != null) {
+ jsonWriter.writeUntypedField("continueOnStepFailure", this.continueOnStepFailure);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java
index 9501cad27195..625b642b618f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java
@@ -278,12 +278,20 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("mlEndpoint", this.mlEndpoint);
jsonWriter.writeJsonField("apiKey", this.apiKey);
- jsonWriter.writeUntypedField("updateResourceEndpoint", this.updateResourceEndpoint);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.updateResourceEndpoint != null) {
+ jsonWriter.writeUntypedField("updateResourceEndpoint", this.updateResourceEndpoint);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("authentication", this.authentication);
+ if (this.authentication != null) {
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java
index 9e976f710623..8bc82b7e84e4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java
@@ -283,10 +283,16 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
jsonWriter.writeUntypedField("mlWorkspaceName", this.mlWorkspaceName);
- jsonWriter.writeUntypedField("authentication", this.authentication);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.authentication != null) {
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java
index 6e5166930c70..addbf89ff959 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java
@@ -121,7 +121,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("pwd", this.pwd);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java
index 2c1bd57a2a15..a80781bec609 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java
index 01ecf17ad281..b691633043f0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java
@@ -656,27 +656,59 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
- jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("sslMode", this.sslMode);
- jsonWriter.writeUntypedField("timeout", this.timeout);
- jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
- jsonWriter.writeUntypedField("trustServerCertificate", this.trustServerCertificate);
- jsonWriter.writeUntypedField("readBufferSize", this.readBufferSize);
- jsonWriter.writeUntypedField("timezone", this.timezone);
- jsonWriter.writeUntypedField("encoding", this.encoding);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
+ if (this.sslMode != null) {
+ jsonWriter.writeUntypedField("sslMode", this.sslMode);
+ }
+ if (this.timeout != null) {
+ jsonWriter.writeUntypedField("timeout", this.timeout);
+ }
+ if (this.commandTimeout != null) {
+ jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ }
+ if (this.trustServerCertificate != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", this.trustServerCertificate);
+ }
+ if (this.readBufferSize != null) {
+ jsonWriter.writeUntypedField("readBufferSize", this.readBufferSize);
+ }
+ if (this.timezone != null) {
+ jsonWriter.writeUntypedField("timezone", this.timezone);
+ }
+ if (this.encoding != null) {
+ jsonWriter.writeUntypedField("encoding", this.encoding);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalEmbeddedCert", this.servicePrincipalEmbeddedCert);
jsonWriter.writeJsonField("servicePrincipalEmbeddedCertPassword", this.servicePrincipalEmbeddedCertPassword);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java
index ce491141f5f6..a781fe4b3dc4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java
@@ -119,9 +119,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java
index 664376a56f58..f34a840fa1ff 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java
@@ -562,36 +562,86 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", server());
- jsonWriter.writeUntypedField("database", database());
- jsonWriter.writeUntypedField("encrypt", encrypt());
- jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
- jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
- jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
- jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
- jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
- jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
- jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
- jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
- jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
- jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
- jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
- jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
- jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
- jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
- jsonWriter.writeUntypedField("packetSize", packetSize());
- jsonWriter.writeUntypedField("pooling", pooling());
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (server() != null) {
+ jsonWriter.writeUntypedField("server", server());
+ }
+ if (database() != null) {
+ jsonWriter.writeUntypedField("database", database());
+ }
+ if (encrypt() != null) {
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ }
+ if (trustServerCertificate() != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ }
+ if (hostnameInCertificate() != null) {
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ }
+ if (applicationIntent() != null) {
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ }
+ if (connectTimeout() != null) {
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ }
+ if (connectRetryCount() != null) {
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ }
+ if (connectRetryInterval() != null) {
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ }
+ if (loadBalanceTimeout() != null) {
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ }
+ if (commandTimeout() != null) {
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ }
+ if (integratedSecurity() != null) {
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ }
+ if (failoverPartner() != null) {
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ }
+ if (maxPoolSize() != null) {
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ }
+ if (minPoolSize() != null) {
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ }
+ if (multipleActiveResultSets() != null) {
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ }
+ if (multiSubnetFailover() != null) {
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ }
+ if (packetSize() != null) {
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ }
+ if (pooling() != null) {
+ jsonWriter.writeUntypedField("pooling", pooling());
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java
index dcc72f21acf5..65f3ec3e22bc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java
@@ -118,9 +118,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java
index 1a3516e04bb2..561003438b20 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java
@@ -592,36 +592,86 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", server());
- jsonWriter.writeUntypedField("database", database());
- jsonWriter.writeUntypedField("encrypt", encrypt());
- jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
- jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
- jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
- jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
- jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
- jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
- jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
- jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
- jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
- jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
- jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
- jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
- jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
- jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
- jsonWriter.writeUntypedField("packetSize", packetSize());
- jsonWriter.writeUntypedField("pooling", pooling());
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (server() != null) {
+ jsonWriter.writeUntypedField("server", server());
+ }
+ if (database() != null) {
+ jsonWriter.writeUntypedField("database", database());
+ }
+ if (encrypt() != null) {
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ }
+ if (trustServerCertificate() != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ }
+ if (hostnameInCertificate() != null) {
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ }
+ if (applicationIntent() != null) {
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ }
+ if (connectTimeout() != null) {
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ }
+ if (connectRetryCount() != null) {
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ }
+ if (connectRetryInterval() != null) {
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ }
+ if (loadBalanceTimeout() != null) {
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ }
+ if (commandTimeout() != null) {
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ }
+ if (integratedSecurity() != null) {
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ }
+ if (failoverPartner() != null) {
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ }
+ if (maxPoolSize() != null) {
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ }
+ if (minPoolSize() != null) {
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ }
+ if (multipleActiveResultSets() != null) {
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ }
+ if (multiSubnetFailover() != null) {
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ }
+ if (packetSize() != null) {
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ }
+ if (pooling() != null) {
+ jsonWriter.writeUntypedField("pooling", pooling());
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
jsonWriter.writeJsonField("credential", this.credential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java
index ad6b6aa08c83..1c92236d0d15 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java
@@ -591,36 +591,86 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", server());
- jsonWriter.writeUntypedField("database", database());
- jsonWriter.writeUntypedField("encrypt", encrypt());
- jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
- jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
- jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
- jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
- jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
- jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
- jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
- jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
- jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
- jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
- jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
- jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
- jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
- jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
- jsonWriter.writeUntypedField("packetSize", packetSize());
- jsonWriter.writeUntypedField("pooling", pooling());
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (server() != null) {
+ jsonWriter.writeUntypedField("server", server());
+ }
+ if (database() != null) {
+ jsonWriter.writeUntypedField("database", database());
+ }
+ if (encrypt() != null) {
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ }
+ if (trustServerCertificate() != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ }
+ if (hostnameInCertificate() != null) {
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ }
+ if (applicationIntent() != null) {
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ }
+ if (connectTimeout() != null) {
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ }
+ if (connectRetryCount() != null) {
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ }
+ if (connectRetryInterval() != null) {
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ }
+ if (loadBalanceTimeout() != null) {
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ }
+ if (commandTimeout() != null) {
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ }
+ if (integratedSecurity() != null) {
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ }
+ if (failoverPartner() != null) {
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ }
+ if (maxPoolSize() != null) {
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ }
+ if (minPoolSize() != null) {
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ }
+ if (multipleActiveResultSets() != null) {
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ }
+ if (multiSubnetFailover() != null) {
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ }
+ if (packetSize() != null) {
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ }
+ if (pooling() != null) {
+ jsonWriter.writeUntypedField("pooling", pooling());
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
jsonWriter.writeJsonField("credential", this.credential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java
index 3eaf078245b8..5651b9dd5a12 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java
@@ -118,9 +118,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java
index 1c76c5529e48..33e543b2c8fb 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java
@@ -117,9 +117,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java
index 8bcb76ab2f1d..c061efa1e943 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java
@@ -178,9 +178,13 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("accountKey", this.accountKey);
- jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ if (this.sasUri != null) {
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ }
jsonWriter.writeJsonField("sasToken", this.sasToken);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java
index 990cee734206..beab2350e983 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java
@@ -133,8 +133,12 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("endpoint", this.endpoint);
- jsonWriter.writeUntypedField("authentication", this.authentication);
- jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ if (this.authentication != null) {
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ }
+ if (this.workspaceResourceId != null) {
+ jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java
index 45b8db7cc344..f23edfc16f1b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java
@@ -145,12 +145,18 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", connectionString());
+ if (connectionString() != null) {
+ jsonWriter.writeUntypedField("connectionString", connectionString());
+ }
jsonWriter.writeJsonField("accountKey", accountKey());
- jsonWriter.writeUntypedField("sasUri", sasUri());
+ if (sasUri() != null) {
+ jsonWriter.writeUntypedField("sasUri", sasUri());
+ }
jsonWriter.writeJsonField("sasToken", sasToken());
jsonWriter.writeStringField("encryptedCredential", encryptedCredential());
- jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ if (this.serviceEndpoint != null) {
+ jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ }
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java
index cbaecaaf1196..b941fbdbff1f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java
@@ -205,9 +205,15 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java
index 3b20e32bc683..cc834eb4b8ab 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("keyspace", this.keyspace);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.keyspace != null) {
+ jsonWriter.writeUntypedField("keyspace", this.keyspace);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java
index 63aeb5158ff0..3c4dfe479ebf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java
@@ -62,7 +62,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("entityName", this.entityName);
+ if (this.entityName != null) {
+ jsonWriter.writeUntypedField("entityName", this.entityName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java
index a233d3669dd1..e77ff4de04d1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java
@@ -444,15 +444,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("deploymentType", this.deploymentType);
jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("hostName", this.hostname);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
- jsonWriter.writeUntypedField("organizationName", this.organizationName);
- jsonWriter.writeUntypedField("domain", this.domain);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.hostname != null) {
+ jsonWriter.writeUntypedField("hostName", this.hostname);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.serviceUri != null) {
+ jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
+ }
+ if (this.organizationName != null) {
+ jsonWriter.writeUntypedField("organizationName", this.organizationName);
+ }
+ if (this.domain != null) {
+ jsonWriter.writeUntypedField("domain", this.domain);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java
index ee21c7336c2e..3c57f0acb369 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java
@@ -268,11 +268,19 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("clientId", this.clientId);
jsonWriter.writeUntypedField("username", this.username);
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java
index 5a3b9e64e3b7..68f403081502 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java
@@ -471,19 +471,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("source", this.source);
jsonWriter.writeJsonField("sink", this.sink);
- jsonWriter.writeUntypedField("translator", this.translator);
- jsonWriter.writeUntypedField("enableStaging", this.enableStaging);
+ if (this.translator != null) {
+ jsonWriter.writeUntypedField("translator", this.translator);
+ }
+ if (this.enableStaging != null) {
+ jsonWriter.writeUntypedField("enableStaging", this.enableStaging);
+ }
jsonWriter.writeJsonField("stagingSettings", this.stagingSettings);
- jsonWriter.writeUntypedField("parallelCopies", this.parallelCopies);
- jsonWriter.writeUntypedField("dataIntegrationUnits", this.dataIntegrationUnits);
- jsonWriter.writeUntypedField("enableSkipIncompatibleRow", this.enableSkipIncompatibleRow);
+ if (this.parallelCopies != null) {
+ jsonWriter.writeUntypedField("parallelCopies", this.parallelCopies);
+ }
+ if (this.dataIntegrationUnits != null) {
+ jsonWriter.writeUntypedField("dataIntegrationUnits", this.dataIntegrationUnits);
+ }
+ if (this.enableSkipIncompatibleRow != null) {
+ jsonWriter.writeUntypedField("enableSkipIncompatibleRow", this.enableSkipIncompatibleRow);
+ }
jsonWriter.writeJsonField("redirectIncompatibleRowSettings", this.redirectIncompatibleRowSettings);
jsonWriter.writeJsonField("logStorageSettings", this.logStorageSettings);
jsonWriter.writeJsonField("logSettings", this.logSettings);
jsonWriter.writeArrayField("preserveRules", this.preserveRules,
(writer, element) -> writer.writeUntyped(element));
jsonWriter.writeArrayField("preserve", this.preserve, (writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("validateDataConsistency", this.validateDataConsistency);
+ if (this.validateDataConsistency != null) {
+ jsonWriter.writeUntypedField("validateDataConsistency", this.validateDataConsistency);
+ }
jsonWriter.writeJsonField("skipErrorFile", this.skipErrorFile);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java
index 6ccaf5655d12..bf7c085c184d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java
@@ -383,15 +383,29 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("accountEndpoint", this.accountEndpoint);
- jsonWriter.writeUntypedField("database", this.database);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.accountEndpoint != null) {
+ jsonWriter.writeUntypedField("accountEndpoint", this.accountEndpoint);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
jsonWriter.writeJsonField("accountKey", this.accountKey);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
jsonWriter.writeStringField("connectionMode",
this.connectionMode == null ? null : this.connectionMode.toString());
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java
index f4c3a5d8f060..9e558a7603c8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java
@@ -136,7 +136,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("connectionString", this.connectionString);
jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("isServerVersionAbove32", this.isServerVersionAbove32);
+ if (this.isServerVersionAbove32 != null) {
+ jsonWriter.writeUntypedField("isServerVersionAbove32", this.isServerVersionAbove32);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java
index c2758490be73..05720847c974 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java
@@ -121,7 +121,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("credString", this.credString);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java
index ec167fcce6a2..5f50b1405996 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java
@@ -241,12 +241,18 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("command", this.command);
jsonWriter.writeJsonField("resourceLinkedService", this.resourceLinkedService);
- jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ if (this.folderPath != null) {
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ }
jsonWriter.writeJsonField("referenceObjects", this.referenceObjects);
jsonWriter.writeMapField("extendedProperties", this.extendedProperties,
(writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("retentionTimeInDays", this.retentionTimeInDays);
- jsonWriter.writeUntypedField("autoUserSpecification", this.autoUserSpecification);
+ if (this.retentionTimeInDays != null) {
+ jsonWriter.writeUntypedField("retentionTimeInDays", this.retentionTimeInDays);
+ }
+ if (this.autoUserSpecification != null) {
+ jsonWriter.writeUntypedField("autoUserSpecification", this.autoUserSpecification);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java
index 2932277e5cd5..cc1c191b2f4d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java
@@ -248,11 +248,19 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("scriptPath", this.scriptPath);
jsonWriter.writeJsonField("scriptLinkedService", this.scriptLinkedService);
- jsonWriter.writeUntypedField("degreeOfParallelism", this.degreeOfParallelism);
- jsonWriter.writeUntypedField("priority", this.priority);
+ if (this.degreeOfParallelism != null) {
+ jsonWriter.writeUntypedField("degreeOfParallelism", this.degreeOfParallelism);
+ }
+ if (this.priority != null) {
+ jsonWriter.writeUntypedField("priority", this.priority);
+ }
jsonWriter.writeMapField("parameters", this.parameters, (writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("runtimeVersion", this.runtimeVersion);
- jsonWriter.writeUntypedField("compilationMode", this.compilationMode);
+ if (this.runtimeVersion != null) {
+ jsonWriter.writeUntypedField("runtimeVersion", this.runtimeVersion);
+ }
+ if (this.compilationMode != null) {
+ jsonWriter.writeUntypedField("compilationMode", this.compilationMode);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksJobActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksJobActivityTypeProperties.java
new file mode 100644
index 000000000000..ab3c499c9415
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksJobActivityTypeProperties.java
@@ -0,0 +1,140 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datafactory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Databricks Job activity properties.
+ */
+@Fluent
+public final class DatabricksJobActivityTypeProperties
+ implements JsonSerializable {
+ /*
+ * The Id of the Databricks Job to be executed. Type: string (or Expression with resultType string).
+ */
+ private Object jobId;
+
+ /*
+ * Job parameters to be used for each run of this job. If the job takes a parameter that is not specified, the
+ * default value from the job will be used.
+ */
+ private Map jobParameters;
+
+ /**
+ * Creates an instance of DatabricksJobActivityTypeProperties class.
+ */
+ public DatabricksJobActivityTypeProperties() {
+ }
+
+ /**
+ * Get the jobId property: The Id of the Databricks Job to be executed. Type: string (or Expression with resultType
+ * string).
+ *
+ * @return the jobId value.
+ */
+ public Object jobId() {
+ return this.jobId;
+ }
+
+ /**
+ * Set the jobId property: The Id of the Databricks Job to be executed. Type: string (or Expression with resultType
+ * string).
+ *
+ * @param jobId the jobId value to set.
+ * @return the DatabricksJobActivityTypeProperties object itself.
+ */
+ public DatabricksJobActivityTypeProperties withJobId(Object jobId) {
+ this.jobId = jobId;
+ return this;
+ }
+
+ /**
+ * Get the jobParameters property: Job parameters to be used for each run of this job. If the job takes a parameter
+ * that is not specified, the default value from the job will be used.
+ *
+ * @return the jobParameters value.
+ */
+ public Map jobParameters() {
+ return this.jobParameters;
+ }
+
+ /**
+ * Set the jobParameters property: Job parameters to be used for each run of this job. If the job takes a parameter
+ * that is not specified, the default value from the job will be used.
+ *
+ * @param jobParameters the jobParameters value to set.
+ * @return the DatabricksJobActivityTypeProperties object itself.
+ */
+ public DatabricksJobActivityTypeProperties withJobParameters(Map jobParameters) {
+ this.jobParameters = jobParameters;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (jobId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property jobId in model DatabricksJobActivityTypeProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DatabricksJobActivityTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("jobId", this.jobId);
+ jsonWriter.writeMapField("jobParameters", this.jobParameters,
+ (writer, element) -> writer.writeUntyped(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DatabricksJobActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DatabricksJobActivityTypeProperties if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DatabricksJobActivityTypeProperties.
+ */
+ public static DatabricksJobActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DatabricksJobActivityTypeProperties deserializedDatabricksJobActivityTypeProperties
+ = new DatabricksJobActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("jobId".equals(fieldName)) {
+ deserializedDatabricksJobActivityTypeProperties.jobId = reader.readUntyped();
+ } else if ("jobParameters".equals(fieldName)) {
+ Map jobParameters = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedDatabricksJobActivityTypeProperties.jobParameters = jobParameters;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDatabricksJobActivityTypeProperties;
+ });
+ }
+}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java
index ef935cf5ac9a..f4df64bddd41 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java
@@ -293,15 +293,27 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("database", this.database);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("packageCollection", this.packageCollection);
- jsonWriter.writeUntypedField("certificateCommonName", this.certificateCommonName);
+ if (this.packageCollection != null) {
+ jsonWriter.writeUntypedField("packageCollection", this.packageCollection);
+ }
+ if (this.certificateCommonName != null) {
+ jsonWriter.writeUntypedField("certificateCommonName", this.certificateCommonName);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java
index 8f6e7fad3c9b..165688870ab5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java
index 3c053ec4bd4c..01f8e4a33c1c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java
@@ -214,9 +214,13 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("dataset", this.dataset);
- jsonWriter.writeUntypedField("recursive", this.recursive);
+ if (this.recursive != null) {
+ jsonWriter.writeUntypedField("recursive", this.recursive);
+ }
jsonWriter.writeNumberField("maxConcurrentConnections", this.maxConcurrentConnections);
- jsonWriter.writeUntypedField("enableLogging", this.enableLogging);
+ if (this.enableLogging != null) {
+ jsonWriter.writeUntypedField("enableLogging", this.enableLogging);
+ }
jsonWriter.writeJsonField("logStorageSettings", this.logStorageSettings);
jsonWriter.writeJsonField("storeSettings", this.storeSettings);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java
index d88130b83766..8f8e7a8d7a00 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java
@@ -314,15 +314,33 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("columnDelimiter", this.columnDelimiter);
- jsonWriter.writeUntypedField("rowDelimiter", this.rowDelimiter);
- jsonWriter.writeUntypedField("encodingName", this.encodingName);
- jsonWriter.writeUntypedField("compressionCodec", this.compressionCodec);
- jsonWriter.writeUntypedField("compressionLevel", this.compressionLevel);
- jsonWriter.writeUntypedField("quoteChar", this.quoteChar);
- jsonWriter.writeUntypedField("escapeChar", this.escapeChar);
- jsonWriter.writeUntypedField("firstRowAsHeader", this.firstRowAsHeader);
- jsonWriter.writeUntypedField("nullValue", this.nullValue);
+ if (this.columnDelimiter != null) {
+ jsonWriter.writeUntypedField("columnDelimiter", this.columnDelimiter);
+ }
+ if (this.rowDelimiter != null) {
+ jsonWriter.writeUntypedField("rowDelimiter", this.rowDelimiter);
+ }
+ if (this.encodingName != null) {
+ jsonWriter.writeUntypedField("encodingName", this.encodingName);
+ }
+ if (this.compressionCodec != null) {
+ jsonWriter.writeUntypedField("compressionCodec", this.compressionCodec);
+ }
+ if (this.compressionLevel != null) {
+ jsonWriter.writeUntypedField("compressionLevel", this.compressionLevel);
+ }
+ if (this.quoteChar != null) {
+ jsonWriter.writeUntypedField("quoteChar", this.quoteChar);
+ }
+ if (this.escapeChar != null) {
+ jsonWriter.writeUntypedField("escapeChar", this.escapeChar);
+ }
+ if (this.firstRowAsHeader != null) {
+ jsonWriter.writeUntypedField("firstRowAsHeader", this.firstRowAsHeader);
+ }
+ if (this.nullValue != null) {
+ jsonWriter.writeUntypedField("nullValue", this.nullValue);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java
index 273e73daeb7d..b86119aa867f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java
index 9432cd14854d..ecc77cbf2f40 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java
@@ -120,7 +120,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("pwd", this.pwd);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java
index 7e0092ccedf6..2d1b702b4d73 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java
@@ -62,7 +62,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("entityName", this.entityName);
+ if (this.entityName != null) {
+ jsonWriter.writeUntypedField("entityName", this.entityName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java
index 76eb3cd62faa..51ecc0341fb4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java
@@ -468,15 +468,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("deploymentType", this.deploymentType);
jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("hostName", this.hostname);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
- jsonWriter.writeUntypedField("organizationName", this.organizationName);
- jsonWriter.writeUntypedField("domain", this.domain);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.hostname != null) {
+ jsonWriter.writeUntypedField("hostName", this.hostname);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.serviceUri != null) {
+ jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
+ }
+ if (this.organizationName != null) {
+ jsonWriter.writeUntypedField("organizationName", this.organizationName);
+ }
+ if (this.domain != null) {
+ jsonWriter.writeUntypedField("domain", this.domain);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
jsonWriter.writeJsonField("credential", this.credential);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java
index fd41fea64438..1c0d41661016 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java
@@ -62,7 +62,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("entityName", this.entityName);
+ if (this.entityName != null) {
+ jsonWriter.writeUntypedField("entityName", this.entityName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java
index 92855b679301..0008c6af6706 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java
@@ -465,15 +465,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("deploymentType", this.deploymentType);
jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("hostName", this.hostname);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
- jsonWriter.writeUntypedField("organizationName", this.organizationName);
- jsonWriter.writeUntypedField("domain", this.domain);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.hostname != null) {
+ jsonWriter.writeUntypedField("hostName", this.hostname);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.serviceUri != null) {
+ jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
+ }
+ if (this.organizationName != null) {
+ jsonWriter.writeUntypedField("organizationName", this.organizationName);
+ }
+ if (this.domain != null) {
+ jsonWriter.writeUntypedField("domain", this.domain);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java
index 8ebc2f25b8a1..bcf5f41c577c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java
@@ -243,9 +243,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("endpoint", this.endpoint);
jsonWriter.writeUntypedField("username", this.username);
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java
index 2a626f0f136b..35b69fb63e45 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java
@@ -234,12 +234,22 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("sheetName", this.sheetName);
- jsonWriter.writeUntypedField("sheetIndex", this.sheetIndex);
- jsonWriter.writeUntypedField("range", this.range);
- jsonWriter.writeUntypedField("firstRowAsHeader", this.firstRowAsHeader);
+ if (this.sheetName != null) {
+ jsonWriter.writeUntypedField("sheetName", this.sheetName);
+ }
+ if (this.sheetIndex != null) {
+ jsonWriter.writeUntypedField("sheetIndex", this.sheetIndex);
+ }
+ if (this.range != null) {
+ jsonWriter.writeUntypedField("range", this.range);
+ }
+ if (this.firstRowAsHeader != null) {
+ jsonWriter.writeUntypedField("firstRowAsHeader", this.firstRowAsHeader);
+ }
jsonWriter.writeJsonField("compression", this.compression);
- jsonWriter.writeUntypedField("nullValue", this.nullValue);
+ if (this.nullValue != null) {
+ jsonWriter.writeUntypedField("nullValue", this.nullValue);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java
index 0a054976cdc6..b8a9efc38bcc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java
@@ -307,10 +307,18 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("integrationRuntime", this.integrationRuntime);
jsonWriter.writeJsonField("continuationSettings", this.continuationSettings);
jsonWriter.writeJsonField("compute", this.compute);
- jsonWriter.writeUntypedField("traceLevel", this.traceLevel);
- jsonWriter.writeUntypedField("continueOnError", this.continueOnError);
- jsonWriter.writeUntypedField("runConcurrently", this.runConcurrently);
- jsonWriter.writeUntypedField("sourceStagingConcurrency", this.sourceStagingConcurrency);
+ if (this.traceLevel != null) {
+ jsonWriter.writeUntypedField("traceLevel", this.traceLevel);
+ }
+ if (this.continueOnError != null) {
+ jsonWriter.writeUntypedField("continueOnError", this.continueOnError);
+ }
+ if (this.runConcurrently != null) {
+ jsonWriter.writeUntypedField("runConcurrently", this.runConcurrently);
+ }
+ if (this.sourceStagingConcurrency != null) {
+ jsonWriter.writeUntypedField("sourceStagingConcurrency", this.sourceStagingConcurrency);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java
index 0141b1980428..f2cd25978881 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java
@@ -217,10 +217,18 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("integrationRuntime", integrationRuntime());
jsonWriter.writeJsonField("continuationSettings", continuationSettings());
jsonWriter.writeJsonField("compute", compute());
- jsonWriter.writeUntypedField("traceLevel", traceLevel());
- jsonWriter.writeUntypedField("continueOnError", continueOnError());
- jsonWriter.writeUntypedField("runConcurrently", runConcurrently());
- jsonWriter.writeUntypedField("sourceStagingConcurrency", sourceStagingConcurrency());
+ if (traceLevel() != null) {
+ jsonWriter.writeUntypedField("traceLevel", traceLevel());
+ }
+ if (continueOnError() != null) {
+ jsonWriter.writeUntypedField("continueOnError", continueOnError());
+ }
+ if (runConcurrently() != null) {
+ jsonWriter.writeUntypedField("runConcurrently", runConcurrently());
+ }
+ if (sourceStagingConcurrency() != null) {
+ jsonWriter.writeUntypedField("sourceStagingConcurrency", sourceStagingConcurrency());
+ }
jsonWriter.writeMapField("sinks", this.sinks, (writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("queries", this.queries, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java
index 7891fbde1933..b255ae91ad7c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java
@@ -425,9 +425,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("packageLocation", this.packageLocation);
jsonWriter.writeJsonField("connectVia", this.connectVia);
- jsonWriter.writeUntypedField("runtime", this.runtime);
- jsonWriter.writeUntypedField("loggingLevel", this.loggingLevel);
- jsonWriter.writeUntypedField("environmentPath", this.environmentPath);
+ if (this.runtime != null) {
+ jsonWriter.writeUntypedField("runtime", this.runtime);
+ }
+ if (this.loggingLevel != null) {
+ jsonWriter.writeUntypedField("loggingLevel", this.loggingLevel);
+ }
+ if (this.environmentPath != null) {
+ jsonWriter.writeUntypedField("environmentPath", this.environmentPath);
+ }
jsonWriter.writeJsonField("executionCredential", this.executionCredential);
jsonWriter.writeMapField("projectParameters", this.projectParameters,
(writer, element) -> writer.writeJson(element));
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java
index 8a0de38071ca..897be6a19af5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java
@@ -153,7 +153,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("userId", this.userId);
+ if (this.userId != null) {
+ jsonWriter.writeUntypedField("userId", this.userId);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java
index 6d5407470501..b7f20735d058 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java
@@ -230,12 +230,22 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("folderPath", this.folderPath);
- jsonWriter.writeUntypedField("fileName", this.fileName);
- jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
- jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ if (this.folderPath != null) {
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ }
+ if (this.fileName != null) {
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ }
+ if (this.modifiedDatetimeStart != null) {
+ jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
+ }
+ if (this.modifiedDatetimeEnd != null) {
+ jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ }
jsonWriter.writeJsonField("format", this.format);
- jsonWriter.writeUntypedField("fileFilter", this.fileFilter);
+ if (this.fileFilter != null) {
+ jsonWriter.writeUntypedField("fileFilter", this.fileFilter);
+ }
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java
index c21b2d740e19..ac86aea0d0bd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java
@@ -264,14 +264,22 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("port", this.port);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.enableServerCertificateValidation != null) {
+ jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java
index 9ee221f7670e..4a7a652a615f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java
@@ -61,7 +61,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java
index 98d4f3d02e6c..e5bd14def6b6 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java
@@ -510,22 +510,42 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
- jsonWriter.writeUntypedField("clientCustomerID", this.clientCustomerId);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
+ if (this.clientCustomerId != null) {
+ jsonWriter.writeUntypedField("clientCustomerID", this.clientCustomerId);
+ }
jsonWriter.writeJsonField("developerToken", this.developerToken);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
jsonWriter.writeJsonField("refreshToken", this.refreshToken);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("email", this.email);
- jsonWriter.writeUntypedField("keyFilePath", this.keyFilePath);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ if (this.email != null) {
+ jsonWriter.writeUntypedField("email", this.email);
+ }
+ if (this.keyFilePath != null) {
+ jsonWriter.writeUntypedField("keyFilePath", this.keyFilePath);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
jsonWriter.writeJsonField("privateKey", this.privateKey);
- jsonWriter.writeUntypedField("loginCustomerID", this.loginCustomerId);
- jsonWriter.writeUntypedField("googleAdsApiVersion", this.googleAdsApiVersion);
- jsonWriter.writeUntypedField("supportLegacyDataTypes", this.supportLegacyDataTypes);
+ if (this.loginCustomerId != null) {
+ jsonWriter.writeUntypedField("loginCustomerID", this.loginCustomerId);
+ }
+ if (this.googleAdsApiVersion != null) {
+ jsonWriter.writeUntypedField("googleAdsApiVersion", this.googleAdsApiVersion);
+ }
+ if (this.supportLegacyDataTypes != null) {
+ jsonWriter.writeUntypedField("supportLegacyDataTypes", this.supportLegacyDataTypes);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java
index 22bf53cf6ee7..c5cfa13f1146 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java
@@ -118,9 +118,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("dataset", this.dataset);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.dataset != null) {
+ jsonWriter.writeUntypedField("dataset", this.dataset);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java
index 266d11110cad..1439927c32ea 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java
@@ -399,15 +399,29 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("project", this.project);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("additionalProjects", this.additionalProjects);
- jsonWriter.writeUntypedField("requestGoogleDriveScope", this.requestGoogleDriveScope);
+ if (this.additionalProjects != null) {
+ jsonWriter.writeUntypedField("additionalProjects", this.additionalProjects);
+ }
+ if (this.requestGoogleDriveScope != null) {
+ jsonWriter.writeUntypedField("requestGoogleDriveScope", this.requestGoogleDriveScope);
+ }
jsonWriter.writeJsonField("refreshToken", this.refreshToken);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("email", this.email);
- jsonWriter.writeUntypedField("keyFilePath", this.keyFilePath);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ if (this.email != null) {
+ jsonWriter.writeUntypedField("email", this.email);
+ }
+ if (this.keyFilePath != null) {
+ jsonWriter.writeUntypedField("keyFilePath", this.keyFilePath);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2DatasetTypeProperties.java
index 93b7a4a53e62..2bfbd377705c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2DatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2DatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("dataset", this.dataset);
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.dataset != null) {
+ jsonWriter.writeUntypedField("dataset", this.dataset);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2LinkedServiceTypeProperties.java
index 15694155068f..2b4a03a2a9af 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryV2LinkedServiceTypeProperties.java
@@ -253,7 +253,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("projectId", this.projectId);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
jsonWriter.writeJsonField("refreshToken", this.refreshToken);
jsonWriter.writeJsonField("keyFileContent", this.keyFileContent);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java
index 4516b7332e6c..e237f11a35af 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java
@@ -155,9 +155,13 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ if (this.accessKeyId != null) {
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ }
jsonWriter.writeJsonField("secretAccessKey", this.secretAccessKey);
- jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ if (this.serviceUrl != null) {
+ jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java
index 33f07c91b5cf..d00e6288a1dd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java
index 791488c012be..c086b170c81f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java
@@ -331,18 +331,34 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("pwd", this.pwd);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
- jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("sslMode", this.sslMode);
- jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout);
- jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ if (this.host != null) {
+ jsonWriter.writeUntypedField("host", this.host);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
+ if (this.sslMode != null) {
+ jsonWriter.writeUntypedField("sslMode", this.sslMode);
+ }
+ if (this.connectionTimeout != null) {
+ jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout);
+ }
+ if (this.commandTimeout != null) {
+ jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java
index 7e733f2e31f2..d25ed377dd4b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java
@@ -352,14 +352,28 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("httpPath", this.httpPath);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.httpPath != null) {
+ jsonWriter.writeUntypedField("httpPath", this.httpPath);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.allowHostnameCNMismatch != null) {
+ jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java
index ca0d3994b5dd..ea5ffb250f95 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java
@@ -254,7 +254,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
(writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("arguments", this.arguments, (writer, element) -> writer.writeUntyped(element));
jsonWriter.writeStringField("getDebugInfo", this.getDebugInfo == null ? null : this.getDebugInfo.toString());
- jsonWriter.writeUntypedField("scriptPath", this.scriptPath);
+ if (this.scriptPath != null) {
+ jsonWriter.writeUntypedField("scriptPath", this.scriptPath);
+ }
jsonWriter.writeJsonField("scriptLinkedService", this.scriptLinkedService);
jsonWriter.writeMapField("defines", this.defines, (writer, element) -> writer.writeUntyped(element));
jsonWriter.writeMapField("variables", this.variables, (writer, element) -> writer.writeUntyped(element));
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java
index 59152334ac9e..7e9be64af23f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java
@@ -268,13 +268,19 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("clusterUri", this.clusterUri);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeJsonField("linkedServiceName", this.linkedServiceName);
jsonWriter.writeJsonField("hcatalogLinkedServiceName", this.hcatalogLinkedServiceName);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("isEspEnabled", this.isEspEnabled);
- jsonWriter.writeUntypedField("fileSystem", this.fileSystem);
+ if (this.isEspEnabled != null) {
+ jsonWriter.writeUntypedField("isEspEnabled", this.isEspEnabled);
+ }
+ if (this.fileSystem != null) {
+ jsonWriter.writeUntypedField("fileSystem", this.fileSystem);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java
index 50ca704200e5..4180dd72cd53 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java
@@ -1028,33 +1028,71 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("hostSubscriptionId", this.hostSubscriptionId);
jsonWriter.writeUntypedField("tenant", this.tenant);
jsonWriter.writeUntypedField("clusterResourceGroup", this.clusterResourceGroup);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("clusterNamePrefix", this.clusterNamePrefix);
- jsonWriter.writeUntypedField("clusterUserName", this.clusterUsername);
+ if (this.clusterNamePrefix != null) {
+ jsonWriter.writeUntypedField("clusterNamePrefix", this.clusterNamePrefix);
+ }
+ if (this.clusterUsername != null) {
+ jsonWriter.writeUntypedField("clusterUserName", this.clusterUsername);
+ }
jsonWriter.writeJsonField("clusterPassword", this.clusterPassword);
- jsonWriter.writeUntypedField("clusterSshUserName", this.clusterSshUsername);
+ if (this.clusterSshUsername != null) {
+ jsonWriter.writeUntypedField("clusterSshUserName", this.clusterSshUsername);
+ }
jsonWriter.writeJsonField("clusterSshPassword", this.clusterSshPassword);
jsonWriter.writeArrayField("additionalLinkedServiceNames", this.additionalLinkedServiceNames,
(writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("hcatalogLinkedServiceName", this.hcatalogLinkedServiceName);
- jsonWriter.writeUntypedField("clusterType", this.clusterType);
- jsonWriter.writeUntypedField("sparkVersion", this.sparkVersion);
- jsonWriter.writeUntypedField("coreConfiguration", this.coreConfiguration);
- jsonWriter.writeUntypedField("hBaseConfiguration", this.hBaseConfiguration);
- jsonWriter.writeUntypedField("hdfsConfiguration", this.hdfsConfiguration);
- jsonWriter.writeUntypedField("hiveConfiguration", this.hiveConfiguration);
- jsonWriter.writeUntypedField("mapReduceConfiguration", this.mapReduceConfiguration);
- jsonWriter.writeUntypedField("oozieConfiguration", this.oozieConfiguration);
- jsonWriter.writeUntypedField("stormConfiguration", this.stormConfiguration);
- jsonWriter.writeUntypedField("yarnConfiguration", this.yarnConfiguration);
+ if (this.clusterType != null) {
+ jsonWriter.writeUntypedField("clusterType", this.clusterType);
+ }
+ if (this.sparkVersion != null) {
+ jsonWriter.writeUntypedField("sparkVersion", this.sparkVersion);
+ }
+ if (this.coreConfiguration != null) {
+ jsonWriter.writeUntypedField("coreConfiguration", this.coreConfiguration);
+ }
+ if (this.hBaseConfiguration != null) {
+ jsonWriter.writeUntypedField("hBaseConfiguration", this.hBaseConfiguration);
+ }
+ if (this.hdfsConfiguration != null) {
+ jsonWriter.writeUntypedField("hdfsConfiguration", this.hdfsConfiguration);
+ }
+ if (this.hiveConfiguration != null) {
+ jsonWriter.writeUntypedField("hiveConfiguration", this.hiveConfiguration);
+ }
+ if (this.mapReduceConfiguration != null) {
+ jsonWriter.writeUntypedField("mapReduceConfiguration", this.mapReduceConfiguration);
+ }
+ if (this.oozieConfiguration != null) {
+ jsonWriter.writeUntypedField("oozieConfiguration", this.oozieConfiguration);
+ }
+ if (this.stormConfiguration != null) {
+ jsonWriter.writeUntypedField("stormConfiguration", this.stormConfiguration);
+ }
+ if (this.yarnConfiguration != null) {
+ jsonWriter.writeUntypedField("yarnConfiguration", this.yarnConfiguration);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("headNodeSize", this.headNodeSize);
- jsonWriter.writeUntypedField("dataNodeSize", this.dataNodeSize);
- jsonWriter.writeUntypedField("zookeeperNodeSize", this.zookeeperNodeSize);
+ if (this.headNodeSize != null) {
+ jsonWriter.writeUntypedField("headNodeSize", this.headNodeSize);
+ }
+ if (this.dataNodeSize != null) {
+ jsonWriter.writeUntypedField("dataNodeSize", this.dataNodeSize);
+ }
+ if (this.zookeeperNodeSize != null) {
+ jsonWriter.writeUntypedField("zookeeperNodeSize", this.zookeeperNodeSize);
+ }
jsonWriter.writeArrayField("scriptActions", this.scriptActions, (writer, element) -> writer.writeJson(element));
- jsonWriter.writeUntypedField("virtualNetworkId", this.virtualNetworkId);
- jsonWriter.writeUntypedField("subnetName", this.subnetName);
+ if (this.virtualNetworkId != null) {
+ jsonWriter.writeUntypedField("virtualNetworkId", this.virtualNetworkId);
+ }
+ if (this.subnetName != null) {
+ jsonWriter.writeUntypedField("subnetName", this.subnetName);
+ }
jsonWriter.writeJsonField("credential", this.credential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java
index 3957adbd53fd..be1b641a4474 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java
@@ -201,9 +201,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeArrayField("storageLinkedServices", this.storageLinkedServices,
(writer, element) -> writer.writeJson(element));
- jsonWriter.writeUntypedField("arguments", this.arguments);
+ if (this.arguments != null) {
+ jsonWriter.writeUntypedField("arguments", this.arguments);
+ }
jsonWriter.writeStringField("getDebugInfo", this.getDebugInfo == null ? null : this.getDebugInfo.toString());
- jsonWriter.writeUntypedField("scriptPath", this.scriptPath);
+ if (this.scriptPath != null) {
+ jsonWriter.writeUntypedField("scriptPath", this.scriptPath);
+ }
jsonWriter.writeJsonField("scriptLinkedService", this.scriptLinkedService);
jsonWriter.writeMapField("defines", this.defines, (writer, element) -> writer.writeUntyped(element));
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java
index e88cb8519c09..40ca8d8da625 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java
@@ -274,7 +274,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("getDebugInfo", this.getDebugInfo == null ? null : this.getDebugInfo.toString());
jsonWriter.writeJsonField("sparkJobLinkedService", this.sparkJobLinkedService);
jsonWriter.writeStringField("className", this.className);
- jsonWriter.writeUntypedField("proxyUser", this.proxyUser);
+ if (this.proxyUser != null) {
+ jsonWriter.writeUntypedField("proxyUser", this.proxyUser);
+ }
jsonWriter.writeMapField("sparkConfig", this.sparkConfig, (writer, element) -> writer.writeUntyped(element));
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java
index 3d147775ee2d..45b78e3eae35 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java
@@ -386,7 +386,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeArrayField("arguments", this.arguments, (writer, element) -> writer.writeUntyped(element));
jsonWriter.writeStringField("getDebugInfo", this.getDebugInfo == null ? null : this.getDebugInfo.toString());
jsonWriter.writeJsonField("fileLinkedService", this.fileLinkedService);
- jsonWriter.writeUntypedField("combiner", this.combiner);
+ if (this.combiner != null) {
+ jsonWriter.writeUntypedField("combiner", this.combiner);
+ }
jsonWriter.writeArrayField("commandEnvironment", this.commandEnvironment,
(writer, element) -> writer.writeUntyped(element));
jsonWriter.writeMapField("defines", this.defines, (writer, element) -> writer.writeUntyped(element));
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java
index 40590f850174..408e6f784c4b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java
@@ -185,9 +185,13 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("url", this.url);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java
index 3ff988d6e2af..0d8f7fb4d722 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java
index e31f467e6249..ea5b3aa576a1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java
@@ -509,21 +509,43 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("port", this.port);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
jsonWriter.writeStringField("serverType", this.serverType == null ? null : this.serverType.toString());
jsonWriter.writeStringField("thriftTransportProtocol",
this.thriftTransportProtocol == null ? null : this.thriftTransportProtocol.toString());
- jsonWriter.writeUntypedField("serviceDiscoveryMode", this.serviceDiscoveryMode);
- jsonWriter.writeUntypedField("zooKeeperNameSpace", this.zooKeeperNameSpace);
- jsonWriter.writeUntypedField("useNativeQuery", this.useNativeQuery);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.serviceDiscoveryMode != null) {
+ jsonWriter.writeUntypedField("serviceDiscoveryMode", this.serviceDiscoveryMode);
+ }
+ if (this.zooKeeperNameSpace != null) {
+ jsonWriter.writeUntypedField("zooKeeperNameSpace", this.zooKeeperNameSpace);
+ }
+ if (this.useNativeQuery != null) {
+ jsonWriter.writeUntypedField("useNativeQuery", this.useNativeQuery);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("httpPath", this.httpPath);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
- jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ if (this.httpPath != null) {
+ jsonWriter.writeUntypedField("httpPath", this.httpPath);
+ }
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
+ if (this.allowHostnameCNMismatch != null) {
+ jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java
index 01748c1c7de8..c54740c22b67 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java
@@ -207,10 +207,18 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("relativeUrl", this.relativeUrl);
- jsonWriter.writeUntypedField("requestMethod", this.requestMethod);
- jsonWriter.writeUntypedField("requestBody", this.requestBody);
- jsonWriter.writeUntypedField("additionalHeaders", this.additionalHeaders);
+ if (this.relativeUrl != null) {
+ jsonWriter.writeUntypedField("relativeUrl", this.relativeUrl);
+ }
+ if (this.requestMethod != null) {
+ jsonWriter.writeUntypedField("requestMethod", this.requestMethod);
+ }
+ if (this.requestBody != null) {
+ jsonWriter.writeUntypedField("requestBody", this.requestBody);
+ }
+ if (this.additionalHeaders != null) {
+ jsonWriter.writeUntypedField("additionalHeaders", this.additionalHeaders);
+ }
jsonWriter.writeJsonField("format", this.format);
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java
index e11114973ef1..5e3e0ef4144c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java
@@ -306,13 +306,23 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("url", this.url);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("authHeaders", this.authHeaders);
- jsonWriter.writeUntypedField("embeddedCertData", this.embeddedCertData);
- jsonWriter.writeUntypedField("certThumbprint", this.certThumbprint);
+ if (this.authHeaders != null) {
+ jsonWriter.writeUntypedField("authHeaders", this.authHeaders);
+ }
+ if (this.embeddedCertData != null) {
+ jsonWriter.writeUntypedField("embeddedCertData", this.embeddedCertData);
+ }
+ if (this.certThumbprint != null) {
+ jsonWriter.writeUntypedField("certThumbprint", this.certThumbprint);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ if (this.enableServerCertificateValidation != null) {
+ jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java
index 2b8e1d982644..afbd6f02c064 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java
@@ -268,9 +268,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
jsonWriter.writeJsonField("accessToken", this.accessToken);
jsonWriter.writeJsonField("refreshToken", this.refreshToken);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java
index a8f443216ac6..a7dc86ff5208 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java
index 6ee3a2560fb4..c48cdfacb8a5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java
@@ -11,6 +11,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.models.ImpalaAuthenticationType;
+import com.azure.resourcemanager.datafactory.models.ImpalaThriftTransportProtocol;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import java.io.IOException;
@@ -44,11 +45,22 @@ public final class ImpalaLinkedServiceTypeProperties implements JsonSerializable
*/
private SecretBase password;
+ /*
+ * The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary.
+ */
+ private ImpalaThriftTransportProtocol thriftTransportProtocol;
+
/*
* Specifies whether the connections to the server are encrypted using SSL. The default value is false.
*/
private Object enableSsl;
+ /*
+ * Specify whether to enable server SSL certificate validation when you connect.Always use System Trust Store (for
+ * V2 only). The default value is true.
+ */
+ private Object enableServerCertificateValidation;
+
/*
* The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over
* SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file
@@ -189,6 +201,29 @@ public ImpalaLinkedServiceTypeProperties withPassword(SecretBase password) {
return this;
}
+ /**
+ * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer (for V2 only).
+ * Default value is Binary.
+ *
+ * @return the thriftTransportProtocol value.
+ */
+ public ImpalaThriftTransportProtocol thriftTransportProtocol() {
+ return this.thriftTransportProtocol;
+ }
+
+ /**
+ * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer (for V2 only).
+ * Default value is Binary.
+ *
+ * @param thriftTransportProtocol the thriftTransportProtocol value to set.
+ * @return the ImpalaLinkedServiceTypeProperties object itself.
+ */
+ public ImpalaLinkedServiceTypeProperties
+ withThriftTransportProtocol(ImpalaThriftTransportProtocol thriftTransportProtocol) {
+ this.thriftTransportProtocol = thriftTransportProtocol;
+ return this;
+ }
+
/**
* Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default
* value is false.
@@ -211,6 +246,29 @@ public ImpalaLinkedServiceTypeProperties withEnableSsl(Object enableSsl) {
return this;
}
+ /**
+ * Get the enableServerCertificateValidation property: Specify whether to enable server SSL certificate validation
+ * when you connect.Always use System Trust Store (for V2 only). The default value is true.
+ *
+ * @return the enableServerCertificateValidation value.
+ */
+ public Object enableServerCertificateValidation() {
+ return this.enableServerCertificateValidation;
+ }
+
+ /**
+ * Set the enableServerCertificateValidation property: Specify whether to enable server SSL certificate validation
+ * when you connect.Always use System Trust Store (for V2 only). The default value is true.
+ *
+ * @param enableServerCertificateValidation the enableServerCertificateValidation value to set.
+ * @return the ImpalaLinkedServiceTypeProperties object itself.
+ */
+ public ImpalaLinkedServiceTypeProperties
+ withEnableServerCertificateValidation(Object enableServerCertificateValidation) {
+ this.enableServerCertificateValidation = enableServerCertificateValidation;
+ return this;
+ }
+
/**
* Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
* the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
@@ -355,14 +413,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
- jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ jsonWriter.writeStringField("thriftTransportProtocol",
+ this.thriftTransportProtocol == null ? null : this.thriftTransportProtocol.toString());
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.enableServerCertificateValidation != null) {
+ jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
+ if (this.allowHostnameCNMismatch != null) {
+ jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
@@ -395,8 +472,14 @@ public static ImpalaLinkedServiceTypeProperties fromJson(JsonReader jsonReader)
deserializedImpalaLinkedServiceTypeProperties.username = reader.readUntyped();
} else if ("password".equals(fieldName)) {
deserializedImpalaLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("thriftTransportProtocol".equals(fieldName)) {
+ deserializedImpalaLinkedServiceTypeProperties.thriftTransportProtocol
+ = ImpalaThriftTransportProtocol.fromString(reader.getString());
} else if ("enableSsl".equals(fieldName)) {
deserializedImpalaLinkedServiceTypeProperties.enableSsl = reader.readUntyped();
+ } else if ("enableServerCertificateValidation".equals(fieldName)) {
+ deserializedImpalaLinkedServiceTypeProperties.enableServerCertificateValidation
+ = reader.readUntyped();
} else if ("trustedCertPath".equals(fieldName)) {
deserializedImpalaLinkedServiceTypeProperties.trustedCertPath = reader.readUntyped();
} else if ("useSystemTrustStore".equals(fieldName)) {
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java
index aa13825cfa55..8defeed29962 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java
@@ -218,9 +218,13 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java
index 5cc2931ca14f..a68e83508ec9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java
@@ -61,7 +61,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java
index 4e30d786a32b..4e6f21fcd875 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java
@@ -268,11 +268,19 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeUntypedField("username", this.username);
- jsonWriter.writeUntypedField("port", this.port);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java
index ac6cecea64cd..2627aa2a93ac 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java
@@ -136,7 +136,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("encodingName", this.encodingName);
+ if (this.encodingName != null) {
+ jsonWriter.writeUntypedField("encodingName", this.encodingName);
+ }
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java
index 367da2aba9a4..3e3e19f0b080 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java
@@ -274,13 +274,23 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("workspaceId", this.workspaceId);
- jsonWriter.writeUntypedField("artifactId", this.artifactId);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.workspaceId != null) {
+ jsonWriter.writeUntypedField("workspaceId", this.workspaceId);
+ }
+ if (this.artifactId != null) {
+ jsonWriter.writeUntypedField("artifactId", this.artifactId);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java
index 81a6c059d67f..a2bb2d9c07f5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseTableDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java
index bda72ed5f63b..9330da852638 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java
@@ -135,7 +135,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("source", this.source);
jsonWriter.writeJsonField("dataset", this.dataset);
- jsonWriter.writeUntypedField("firstRowOnly", this.firstRowOnly);
+ if (this.firstRowOnly != null) {
+ jsonWriter.writeUntypedField("firstRowOnly", this.firstRowOnly);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java
index 8515841630fb..d68900b4905b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java
@@ -210,9 +210,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeJsonField("accessToken", this.accessToken);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java
index 923af3f78834..cb9677bf6889 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java
@@ -314,14 +314,30 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("driverVersion", this.driverVersion);
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
- jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("sslMode", this.sslMode);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ if (this.driverVersion != null) {
+ jsonWriter.writeUntypedField("driverVersion", this.driverVersion);
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
+ if (this.sslMode != null) {
+ jsonWriter.writeUntypedField("sslMode", this.sslMode);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java
index dd34302872c2..53b438911d0f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java
@@ -241,9 +241,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("endpoint", this.endpoint);
jsonWriter.writeUntypedField("clientId", this.clientId);
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java
index c1969f4c473e..a6be7dde1fa2 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java
@@ -218,9 +218,13 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java
index a14e425b9be8..1c28aa94039c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java
@@ -62,7 +62,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java
index 34870c6d2d2c..6aad63c14690 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java
@@ -136,7 +136,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("connectionString", this.connectionString);
jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("driverVersion", this.driverVersion);
+ if (this.driverVersion != null) {
+ jsonWriter.writeUntypedField("driverVersion", this.driverVersion);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java
index 08bd9fa1d35f..d70ad29da505 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java
@@ -326,12 +326,22 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("databaseName", this.databaseName);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("authSource", this.authSource);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ if (this.authSource != null) {
+ jsonWriter.writeUntypedField("authSource", this.authSource);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java
index 61bc20c6709d..0e68fc25da5f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java
@@ -494,23 +494,53 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("driverVersion", this.driverVersion);
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
- jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("sslMode", this.sslMode);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ if (this.driverVersion != null) {
+ jsonWriter.writeUntypedField("driverVersion", this.driverVersion);
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
+ if (this.sslMode != null) {
+ jsonWriter.writeUntypedField("sslMode", this.sslMode);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("allowZeroDateTime", this.allowZeroDateTime);
- jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout);
- jsonWriter.writeUntypedField("convertZeroDateTime", this.convertZeroDateTime);
- jsonWriter.writeUntypedField("guidFormat", this.guidFormat);
- jsonWriter.writeUntypedField("sslCert", this.sslCert);
- jsonWriter.writeUntypedField("sslKey", this.sslKey);
- jsonWriter.writeUntypedField("treatTinyAsBoolean", this.treatTinyAsBoolean);
+ if (this.allowZeroDateTime != null) {
+ jsonWriter.writeUntypedField("allowZeroDateTime", this.allowZeroDateTime);
+ }
+ if (this.connectionTimeout != null) {
+ jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout);
+ }
+ if (this.convertZeroDateTime != null) {
+ jsonWriter.writeUntypedField("convertZeroDateTime", this.convertZeroDateTime);
+ }
+ if (this.guidFormat != null) {
+ jsonWriter.writeUntypedField("guidFormat", this.guidFormat);
+ }
+ if (this.sslCert != null) {
+ jsonWriter.writeUntypedField("sslCert", this.sslCert);
+ }
+ if (this.sslKey != null) {
+ jsonWriter.writeUntypedField("sslKey", this.sslKey);
+ }
+ if (this.treatTinyAsBoolean != null) {
+ jsonWriter.writeUntypedField("treatTinyAsBoolean", this.treatTinyAsBoolean);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java
index b4c76ac43aac..ac8f91d84a38 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java
@@ -61,7 +61,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java
index 7726af5367fe..b9543f7c8652 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java
@@ -120,7 +120,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeJsonField("pwd", this.pwd);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java
index ada67e37b9c9..60f547fa6668 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java
index bf1186a6db08..3098b4f28219 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java
@@ -448,13 +448,25 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("url", this.url);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("authHeaders", this.authHeaders);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
- jsonWriter.writeUntypedField("aadResourceId", this.aadResourceId);
+ if (this.authHeaders != null) {
+ jsonWriter.writeUntypedField("authHeaders", this.authHeaders);
+ }
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
+ if (this.aadResourceId != null) {
+ jsonWriter.writeUntypedField("aadResourceId", this.aadResourceId);
+ }
jsonWriter.writeStringField("aadServicePrincipalCredentialType",
this.aadServicePrincipalCredentialType == null ? null : this.aadServicePrincipalCredentialType.toString());
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java
index 1a798bd92d44..924bef515bb5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java
@@ -61,7 +61,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("path", this.path);
+ if (this.path != null) {
+ jsonWriter.writeUntypedField("path", this.path);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java
index 3d02d96dba49..0736c070be62 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java
@@ -217,9 +217,13 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java
index 97701bac19df..c863bb1029c7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java
@@ -61,7 +61,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java
index b21d647b6ef4..427cc66f3983 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java
@@ -100,7 +100,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("predicate", this.predicate);
+ if (this.predicate != null) {
+ jsonWriter.writeUntypedField("predicate", this.predicate);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java
index 94441306d6ec..f6aef62ac72b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java
@@ -300,7 +300,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("servicePrincipalTenantId", this.servicePrincipalTenantId);
jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalEmbeddedCert", this.servicePrincipalEmbeddedCert);
jsonWriter.writeJsonField("servicePrincipalEmbeddedCertPassword", this.servicePrincipalEmbeddedCertPassword);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java
index 6a5d5c84230c..4ea21f7736dd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java
@@ -155,9 +155,13 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ if (this.accessKeyId != null) {
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ }
jsonWriter.writeJsonField("secretAccessKey", this.secretAccessKey);
- jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ if (this.serviceUrl != null) {
+ jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java
index 7197d2456b76..74866f398eb5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java
@@ -522,23 +522,51 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("encryptionClient", this.encryptionClient);
- jsonWriter.writeUntypedField("encryptionTypesClient", this.encryptionTypesClient);
- jsonWriter.writeUntypedField("cryptoChecksumClient", this.cryptoChecksumClient);
- jsonWriter.writeUntypedField("cryptoChecksumTypesClient", this.cryptoChecksumTypesClient);
- jsonWriter.writeUntypedField("initialLobFetchSize", this.initialLobFetchSize);
- jsonWriter.writeUntypedField("fetchSize", this.fetchSize);
- jsonWriter.writeUntypedField("statementCacheSize", this.statementCacheSize);
- jsonWriter.writeUntypedField("initializationString", this.initializationString);
- jsonWriter.writeUntypedField("enableBulkLoad", this.enableBulkLoad);
- jsonWriter.writeUntypedField("supportV1DataTypes", this.supportV1DataTypes);
- jsonWriter.writeUntypedField("fetchTswtzAsTimestamp", this.fetchTswtzAsTimestamp);
+ if (this.encryptionClient != null) {
+ jsonWriter.writeUntypedField("encryptionClient", this.encryptionClient);
+ }
+ if (this.encryptionTypesClient != null) {
+ jsonWriter.writeUntypedField("encryptionTypesClient", this.encryptionTypesClient);
+ }
+ if (this.cryptoChecksumClient != null) {
+ jsonWriter.writeUntypedField("cryptoChecksumClient", this.cryptoChecksumClient);
+ }
+ if (this.cryptoChecksumTypesClient != null) {
+ jsonWriter.writeUntypedField("cryptoChecksumTypesClient", this.cryptoChecksumTypesClient);
+ }
+ if (this.initialLobFetchSize != null) {
+ jsonWriter.writeUntypedField("initialLobFetchSize", this.initialLobFetchSize);
+ }
+ if (this.fetchSize != null) {
+ jsonWriter.writeUntypedField("fetchSize", this.fetchSize);
+ }
+ if (this.statementCacheSize != null) {
+ jsonWriter.writeUntypedField("statementCacheSize", this.statementCacheSize);
+ }
+ if (this.initializationString != null) {
+ jsonWriter.writeUntypedField("initializationString", this.initializationString);
+ }
+ if (this.enableBulkLoad != null) {
+ jsonWriter.writeUntypedField("enableBulkLoad", this.enableBulkLoad);
+ }
+ if (this.supportV1DataTypes != null) {
+ jsonWriter.writeUntypedField("supportV1DataTypes", this.supportV1DataTypes);
+ }
+ if (this.fetchTswtzAsTimestamp != null) {
+ jsonWriter.writeUntypedField("fetchTswtzAsTimestamp", this.fetchTswtzAsTimestamp);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java
index bf5f4e6be265..c087886ae54f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java
@@ -250,9 +250,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeUntypedField("username", this.username);
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java
index c090c29731bd..08a209917fbf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java
@@ -117,9 +117,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java
index 5eb2bb9b4954..6bc64cb6dc1e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java
@@ -100,7 +100,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("orcCompressionCodec", this.orcCompressionCodec);
+ if (this.orcCompressionCodec != null) {
+ jsonWriter.writeUntypedField("orcCompressionCodec", this.orcCompressionCodec);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java
index c4f245fc2abc..90862e2fbf18 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java
@@ -100,7 +100,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("compressionCodec", this.compressionCodec);
+ if (this.compressionCodec != null) {
+ jsonWriter.writeUntypedField("compressionCodec", this.compressionCodec);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java
index ed2faa0ff9ee..4db541a89e26 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java
@@ -241,9 +241,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeUntypedField("clientId", this.clientId);
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java
index 700c4a80833c..eba7cc408fd4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java
index c133f3b3616b..8d08969ddadc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java
@@ -381,15 +381,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("httpPath", this.httpPath);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.httpPath != null) {
+ jsonWriter.writeUntypedField("httpPath", this.httpPath);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
- jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
+ if (this.allowHostnameCNMismatch != null) {
+ jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java
index c9584d57c8af..d184175eaf0b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java
@@ -114,9 +114,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2LinkedServiceTypeProperties.java
index b925a32b49cc..69f043f7a417 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2LinkedServiceTypeProperties.java
@@ -597,19 +597,45 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("database", this.database);
jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
jsonWriter.writeUntypedField("sslMode", this.sslMode);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("pooling", this.pooling);
- jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout);
- jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
- jsonWriter.writeUntypedField("trustServerCertificate", this.trustServerCertificate);
- jsonWriter.writeUntypedField("sslCertificate", this.sslCertificate);
- jsonWriter.writeUntypedField("sslKey", this.sslKey);
- jsonWriter.writeUntypedField("sslPassword", this.sslPassword);
- jsonWriter.writeUntypedField("readBufferSize", this.readBufferSize);
- jsonWriter.writeUntypedField("logParameters", this.logParameters);
- jsonWriter.writeUntypedField("timezone", this.timezone);
- jsonWriter.writeUntypedField("encoding", this.encoding);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.pooling != null) {
+ jsonWriter.writeUntypedField("pooling", this.pooling);
+ }
+ if (this.connectionTimeout != null) {
+ jsonWriter.writeUntypedField("connectionTimeout", this.connectionTimeout);
+ }
+ if (this.commandTimeout != null) {
+ jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ }
+ if (this.trustServerCertificate != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", this.trustServerCertificate);
+ }
+ if (this.sslCertificate != null) {
+ jsonWriter.writeUntypedField("sslCertificate", this.sslCertificate);
+ }
+ if (this.sslKey != null) {
+ jsonWriter.writeUntypedField("sslKey", this.sslKey);
+ }
+ if (this.sslPassword != null) {
+ jsonWriter.writeUntypedField("sslPassword", this.sslPassword);
+ }
+ if (this.readBufferSize != null) {
+ jsonWriter.writeUntypedField("readBufferSize", this.readBufferSize);
+ }
+ if (this.logParameters != null) {
+ jsonWriter.writeUntypedField("logParameters", this.logParameters);
+ }
+ if (this.timezone != null) {
+ jsonWriter.writeUntypedField("timezone", this.timezone);
+ }
+ if (this.encoding != null) {
+ jsonWriter.writeUntypedField("encoding", this.encoding);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2TableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2TableDatasetTypeProperties.java
index 4a245fc468c2..37f3b6fa9ad4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2TableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlV2TableDatasetTypeProperties.java
@@ -87,8 +87,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java
index 6cc4025ff6eb..0ff5ebc87d5e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java
index cf27294e217d..23dfb81b166c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java
@@ -472,17 +472,37 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("catalog", this.catalog);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("serverVersion", this.serverVersion);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.serverVersion != null) {
+ jsonWriter.writeUntypedField("serverVersion", this.serverVersion);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
- jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
- jsonWriter.writeUntypedField("timeZoneID", this.timeZoneId);
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.enableServerCertificateValidation != null) {
+ jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
+ if (this.allowHostnameCNMismatch != null) {
+ jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
+ if (this.timeZoneId != null) {
+ jsonWriter.writeUntypedField("timeZoneID", this.timeZoneId);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java
index 737df0552e6e..e5b961918292 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java
@@ -280,14 +280,24 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
- jsonWriter.writeUntypedField("endpoint", this.endpoint);
- jsonWriter.writeUntypedField("companyId", this.companyId);
- jsonWriter.writeUntypedField("consumerKey", this.consumerKey);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
+ if (this.endpoint != null) {
+ jsonWriter.writeUntypedField("endpoint", this.endpoint);
+ }
+ if (this.companyId != null) {
+ jsonWriter.writeUntypedField("companyId", this.companyId);
+ }
+ if (this.consumerKey != null) {
+ jsonWriter.writeUntypedField("consumerKey", this.consumerKey);
+ }
jsonWriter.writeJsonField("consumerSecret", this.consumerSecret);
jsonWriter.writeJsonField("accessToken", this.accessToken);
jsonWriter.writeJsonField("accessTokenSecret", this.accessTokenSecret);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java
index 0a61b20a4165..61f0c9be3826 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java
@@ -62,7 +62,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java
index 75c8d0f981d3..4987493d7069 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java
@@ -250,9 +250,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("endpoint", this.endpoint);
jsonWriter.writeUntypedField("clientId", this.clientId);
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java
index b3c2320357b3..80fce9123e53 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java
@@ -171,9 +171,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("relativeUrl", this.relativeUrl);
- jsonWriter.writeUntypedField("requestMethod", this.requestMethod);
- jsonWriter.writeUntypedField("requestBody", this.requestBody);
+ if (this.relativeUrl != null) {
+ jsonWriter.writeUntypedField("relativeUrl", this.relativeUrl);
+ }
+ if (this.requestMethod != null) {
+ jsonWriter.writeUntypedField("requestMethod", this.requestMethod);
+ }
+ if (this.requestBody != null) {
+ jsonWriter.writeUntypedField("requestBody", this.requestBody);
+ }
jsonWriter.writeMapField("additionalHeaders", this.additionalHeaders,
(writer, element) -> writer.writeUntyped(element));
jsonWriter.writeMapField("paginationRules", this.paginationRules,
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java
index 82f439ff43a9..07c838a47dc8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java
@@ -653,23 +653,47 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("url", this.url);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.enableServerCertificateValidation != null) {
+ jsonWriter.writeUntypedField("enableServerCertificateValidation", this.enableServerCertificateValidation);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("authHeaders", this.authHeaders);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.authHeaders != null) {
+ jsonWriter.writeUntypedField("authHeaders", this.authHeaders);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
- jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
- jsonWriter.writeUntypedField("aadResourceId", this.aadResourceId);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
+ if (this.azureCloudType != null) {
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ }
+ if (this.aadResourceId != null) {
+ jsonWriter.writeUntypedField("aadResourceId", this.aadResourceId);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("credential", this.credential);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("tokenEndpoint", this.tokenEndpoint);
- jsonWriter.writeUntypedField("resource", this.resource);
- jsonWriter.writeUntypedField("scope", this.scope);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.tokenEndpoint != null) {
+ jsonWriter.writeUntypedField("tokenEndpoint", this.tokenEndpoint);
+ }
+ if (this.resource != null) {
+ jsonWriter.writeUntypedField("resource", this.resource);
+ }
+ if (this.scope != null) {
+ jsonWriter.writeUntypedField("scope", this.scope);
+ }
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalEmbeddedCert", this.servicePrincipalEmbeddedCert);
jsonWriter.writeJsonField("servicePrincipalEmbeddedCertPassword", this.servicePrincipalEmbeddedCertPassword);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java
index f9bb4fa07664..2b4386b5f456 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java
@@ -208,11 +208,17 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.environmentUrl != null) {
+ jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeJsonField("securityToken", this.securityToken);
- jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ if (this.apiVersion != null) {
+ jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java
index 292163ee7b12..a748fe9d8e2a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java
@@ -239,12 +239,22 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java
index df8bfbe15c60..602a4493b3dd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java
@@ -64,7 +64,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
+ if (this.objectApiName != null) {
+ jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java
index f3268f90ff84..58088040236c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java
@@ -237,12 +237,20 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.environmentUrl != null) {
+ jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeJsonField("securityToken", this.securityToken);
- jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
- jsonWriter.writeUntypedField("extendedProperties", this.extendedProperties);
+ if (this.apiVersion != null) {
+ jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ }
+ if (this.extendedProperties != null) {
+ jsonWriter.writeUntypedField("extendedProperties", this.extendedProperties);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java
index d76a8483e60f..50d12707fb17 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java
@@ -64,7 +64,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
+ if (this.objectApiName != null) {
+ jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2LinkedServiceTypeProperties.java
index b367a1f5bb54..5768d1579d66 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2LinkedServiceTypeProperties.java
@@ -208,11 +208,19 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.environmentUrl != null) {
+ jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
+ }
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ if (this.apiVersion != null) {
+ jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2ObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2ObjectDatasetTypeProperties.java
index 38606372f3d8..ade938ee9b47 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2ObjectDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudV2ObjectDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
- jsonWriter.writeUntypedField("reportId", this.reportId);
+ if (this.objectApiName != null) {
+ jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
+ }
+ if (this.reportId != null) {
+ jsonWriter.writeUntypedField("reportId", this.reportId);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2LinkedServiceTypeProperties.java
index d8914eae1c83..8b2513b96d2c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2LinkedServiceTypeProperties.java
@@ -208,11 +208,19 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
- jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.environmentUrl != null) {
+ jsonWriter.writeUntypedField("environmentUrl", this.environmentUrl);
+ }
+ if (this.authenticationType != null) {
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ if (this.apiVersion != null) {
+ jsonWriter.writeUntypedField("apiVersion", this.apiVersion);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2ObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2ObjectDatasetTypeProperties.java
index 421cdc77b339..66ca6245d4c5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2ObjectDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceV2ObjectDatasetTypeProperties.java
@@ -89,8 +89,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
- jsonWriter.writeUntypedField("reportId", this.reportId);
+ if (this.objectApiName != null) {
+ jsonWriter.writeUntypedField("objectApiName", this.objectApiName);
+ }
+ if (this.reportId != null) {
+ jsonWriter.writeUntypedField("reportId", this.reportId);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java
index cc3225c18490..fbb999c03b67 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java
@@ -222,7 +222,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("server", this.server);
jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
jsonWriter.writeUntypedField("clientId", this.clientId);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java
index 01d99f7b6da3..c73b17ec6187 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java
@@ -160,7 +160,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("url", this.url);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java
index a3be9f729487..415160e4f88f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java
@@ -159,7 +159,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("url", this.url);
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java
index 0e900f8a2525..edb60a85a328 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java
@@ -198,11 +198,17 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java
index e05056614d4d..f3a64977ff8b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java
@@ -86,8 +86,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java
index 216ee147787e..66963101881b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOdpLinkedServiceTypeProperties.java
@@ -532,23 +532,55 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
- jsonWriter.writeUntypedField("clientId", this.clientId);
- jsonWriter.writeUntypedField("language", this.language);
- jsonWriter.writeUntypedField("systemId", this.systemId);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.systemNumber != null) {
+ jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
+ if (this.language != null) {
+ jsonWriter.writeUntypedField("language", this.language);
+ }
+ if (this.systemId != null) {
+ jsonWriter.writeUntypedField("systemId", this.systemId);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("messageServer", this.messageServer);
- jsonWriter.writeUntypedField("messageServerService", this.messageServerService);
- jsonWriter.writeUntypedField("sncMode", this.sncMode);
- jsonWriter.writeUntypedField("sncMyName", this.sncMyName);
- jsonWriter.writeUntypedField("sncPartnerName", this.sncPartnerName);
- jsonWriter.writeUntypedField("sncLibraryPath", this.sncLibraryPath);
- jsonWriter.writeUntypedField("sncQop", this.sncQop);
- jsonWriter.writeUntypedField("x509CertificatePath", this.x509CertificatePath);
- jsonWriter.writeUntypedField("logonGroup", this.logonGroup);
- jsonWriter.writeUntypedField("subscriberName", this.subscriberName);
+ if (this.messageServer != null) {
+ jsonWriter.writeUntypedField("messageServer", this.messageServer);
+ }
+ if (this.messageServerService != null) {
+ jsonWriter.writeUntypedField("messageServerService", this.messageServerService);
+ }
+ if (this.sncMode != null) {
+ jsonWriter.writeUntypedField("sncMode", this.sncMode);
+ }
+ if (this.sncMyName != null) {
+ jsonWriter.writeUntypedField("sncMyName", this.sncMyName);
+ }
+ if (this.sncPartnerName != null) {
+ jsonWriter.writeUntypedField("sncPartnerName", this.sncPartnerName);
+ }
+ if (this.sncLibraryPath != null) {
+ jsonWriter.writeUntypedField("sncLibraryPath", this.sncLibraryPath);
+ }
+ if (this.sncQop != null) {
+ jsonWriter.writeUntypedField("sncQop", this.sncQop);
+ }
+ if (this.x509CertificatePath != null) {
+ jsonWriter.writeUntypedField("x509CertificatePath", this.x509CertificatePath);
+ }
+ if (this.logonGroup != null) {
+ jsonWriter.writeUntypedField("logonGroup", this.logonGroup);
+ }
+ if (this.subscriberName != null) {
+ jsonWriter.writeUntypedField("subscriberName", this.subscriberName);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java
index 14b6dc56fa20..03b658aabdf8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java
@@ -344,16 +344,34 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
- jsonWriter.writeUntypedField("clientId", this.clientId);
- jsonWriter.writeUntypedField("language", this.language);
- jsonWriter.writeUntypedField("systemId", this.systemId);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.systemNumber != null) {
+ jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
+ if (this.language != null) {
+ jsonWriter.writeUntypedField("language", this.language);
+ }
+ if (this.systemId != null) {
+ jsonWriter.writeUntypedField("systemId", this.systemId);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("messageServer", this.messageServer);
- jsonWriter.writeUntypedField("messageServerService", this.messageServerService);
- jsonWriter.writeUntypedField("logonGroup", this.logonGroup);
+ if (this.messageServer != null) {
+ jsonWriter.writeUntypedField("messageServer", this.messageServer);
+ }
+ if (this.messageServerService != null) {
+ jsonWriter.writeUntypedField("messageServerService", this.messageServerService);
+ }
+ if (this.logonGroup != null) {
+ jsonWriter.writeUntypedField("logonGroup", this.logonGroup);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java
index 693119e52b67..e3209aba3c06 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java
@@ -132,8 +132,12 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("openHubDestinationName", this.openHubDestinationName);
- jsonWriter.writeUntypedField("excludeLastRequest", this.excludeLastRequest);
- jsonWriter.writeUntypedField("baseRequestId", this.baseRequestId);
+ if (this.excludeLastRequest != null) {
+ jsonWriter.writeUntypedField("excludeLastRequest", this.excludeLastRequest);
+ }
+ if (this.baseRequestId != null) {
+ jsonWriter.writeUntypedField("baseRequestId", this.baseRequestId);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java
index 63e81d95b17c..50357e93d16c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java
@@ -481,21 +481,49 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
- jsonWriter.writeUntypedField("clientId", this.clientId);
- jsonWriter.writeUntypedField("language", this.language);
- jsonWriter.writeUntypedField("systemId", this.systemId);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.systemNumber != null) {
+ jsonWriter.writeUntypedField("systemNumber", this.systemNumber);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
+ if (this.language != null) {
+ jsonWriter.writeUntypedField("language", this.language);
+ }
+ if (this.systemId != null) {
+ jsonWriter.writeUntypedField("systemId", this.systemId);
+ }
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("messageServer", this.messageServer);
- jsonWriter.writeUntypedField("messageServerService", this.messageServerService);
- jsonWriter.writeUntypedField("sncMode", this.sncMode);
- jsonWriter.writeUntypedField("sncMyName", this.sncMyName);
- jsonWriter.writeUntypedField("sncPartnerName", this.sncPartnerName);
- jsonWriter.writeUntypedField("sncLibraryPath", this.sncLibraryPath);
- jsonWriter.writeUntypedField("sncQop", this.sncQop);
- jsonWriter.writeUntypedField("logonGroup", this.logonGroup);
+ if (this.messageServer != null) {
+ jsonWriter.writeUntypedField("messageServer", this.messageServer);
+ }
+ if (this.messageServerService != null) {
+ jsonWriter.writeUntypedField("messageServerService", this.messageServerService);
+ }
+ if (this.sncMode != null) {
+ jsonWriter.writeUntypedField("sncMode", this.sncMode);
+ }
+ if (this.sncMyName != null) {
+ jsonWriter.writeUntypedField("sncMyName", this.sncMyName);
+ }
+ if (this.sncPartnerName != null) {
+ jsonWriter.writeUntypedField("sncPartnerName", this.sncPartnerName);
+ }
+ if (this.sncLibraryPath != null) {
+ jsonWriter.writeUntypedField("sncLibraryPath", this.sncLibraryPath);
+ }
+ if (this.sncQop != null) {
+ jsonWriter.writeUntypedField("sncQop", this.sncQop);
+ }
+ if (this.logonGroup != null) {
+ jsonWriter.writeUntypedField("logonGroup", this.logonGroup);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java
index 4c7addb4e61c..b8170e83db30 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java
@@ -153,10 +153,14 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("scriptBlockExecutionTimeout", this.scriptBlockExecutionTimeout);
+ if (this.scriptBlockExecutionTimeout != null) {
+ jsonWriter.writeUntypedField("scriptBlockExecutionTimeout", this.scriptBlockExecutionTimeout);
+ }
jsonWriter.writeArrayField("scripts", this.scripts, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("logSettings", this.logSettings);
- jsonWriter.writeUntypedField("returnMultistatementResult", this.returnMultistatementResult);
+ if (this.returnMultistatementResult != null) {
+ jsonWriter.writeUntypedField("returnMultistatementResult", this.returnMultistatementResult);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java
index 132797347587..5d872eaa9132 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java
@@ -324,13 +324,23 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("endpoint", this.endpoint);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2DatasetTypeProperties.java
index 9a0ae8150aa7..ef03fd1b040c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2DatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2DatasetTypeProperties.java
@@ -87,7 +87,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
jsonWriter.writeStringField("valueType", this.valueType == null ? null : this.valueType.toString());
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2LinkedServiceTypeProperties.java
index e91cc006593e..8fa1c2a537ec 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowV2LinkedServiceTypeProperties.java
@@ -267,11 +267,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("endpoint", this.endpoint);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("grantType", this.grantType);
+ if (this.grantType != null) {
+ jsonWriter.writeUntypedField("grantType", this.grantType);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java
index 8b64ef72b03a..5e44303a8e61 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServicePrincipalCredentialTypeProperties.java
@@ -117,9 +117,13 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java
index 2930fd8efdf6..a30d7f05333c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java
@@ -112,7 +112,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("variableName", this.variableName);
- jsonWriter.writeUntypedField("value", this.value);
+ if (this.value != null) {
+ jsonWriter.writeUntypedField("value", this.value);
+ }
jsonWriter.writeBooleanField("setSystemVariable", this.setSystemVariable);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java
index ec7c623d62f2..c50f9cc4cdd7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java
@@ -360,17 +360,27 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("port", this.port);
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("privateKeyPath", this.privateKeyPath);
+ if (this.privateKeyPath != null) {
+ jsonWriter.writeUntypedField("privateKeyPath", this.privateKeyPath);
+ }
jsonWriter.writeJsonField("privateKeyContent", this.privateKeyContent);
jsonWriter.writeJsonField("passPhrase", this.passPhrase);
- jsonWriter.writeUntypedField("skipHostKeyValidation", this.skipHostKeyValidation);
- jsonWriter.writeUntypedField("hostKeyFingerprint", this.hostKeyFingerprint);
+ if (this.skipHostKeyValidation != null) {
+ jsonWriter.writeUntypedField("skipHostKeyValidation", this.skipHostKeyValidation);
+ }
+ if (this.hostKeyFingerprint != null) {
+ jsonWriter.writeUntypedField("hostKeyFingerprint", this.hostKeyFingerprint);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java
index 187b43a590d6..4d94ccc507ea 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java
@@ -64,7 +64,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("listName", this.listName);
+ if (this.listName != null) {
+ jsonWriter.writeUntypedField("listName", this.listName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java
index e8036ffb40c9..c3597298e3f5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java
@@ -302,7 +302,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("tenantId", this.tenantId);
jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalEmbeddedCert", this.servicePrincipalEmbeddedCert);
jsonWriter.writeJsonField("servicePrincipalEmbeddedCertPassword", this.servicePrincipalEmbeddedCertPassword);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java
index fd30224ecd00..bb0a8e0b12f1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java
@@ -212,9 +212,15 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeJsonField("accessToken", this.accessToken);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java
index 0a5691214142..be16ac269eb9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java
@@ -90,8 +90,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedV2ServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedV2ServiceTypeProperties.java
index 3ad6bde47771..7791e7a5a2ec 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedV2ServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedV2ServiceTypeProperties.java
@@ -493,19 +493,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("accountIdentifier", this.accountIdentifier);
jsonWriter.writeUntypedField("database", this.database);
jsonWriter.writeUntypedField("warehouse", this.warehouse);
- jsonWriter.writeUntypedField("user", this.user);
+ if (this.user != null) {
+ jsonWriter.writeUntypedField("user", this.user);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("tenantId", this.tenantId);
- jsonWriter.writeUntypedField("scope", this.scope);
+ if (this.tenantId != null) {
+ jsonWriter.writeUntypedField("tenantId", this.tenantId);
+ }
+ if (this.scope != null) {
+ jsonWriter.writeUntypedField("scope", this.scope);
+ }
jsonWriter.writeJsonField("privateKey", this.privateKey);
jsonWriter.writeJsonField("privateKeyPassphrase", this.privateKeyPassphrase);
- jsonWriter.writeUntypedField("role", this.role);
- jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.role != null) {
+ jsonWriter.writeUntypedField("role", this.role);
+ }
+ if (this.host != null) {
+ jsonWriter.writeUntypedField("host", this.host);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java
index 1045f8917994..a25e29752b84 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java
index 44c8c39427cc..2a0503eb1a3f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java
@@ -438,14 +438,28 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("serverType", this.serverType == null ? null : this.serverType.toString());
jsonWriter.writeStringField("thriftTransportProtocol",
this.thriftTransportProtocol == null ? null : this.thriftTransportProtocol.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("httpPath", this.httpPath);
- jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
- jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
- jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
- jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
- jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ if (this.httpPath != null) {
+ jsonWriter.writeUntypedField("httpPath", this.httpPath);
+ }
+ if (this.enableSsl != null) {
+ jsonWriter.writeUntypedField("enableSsl", this.enableSsl);
+ }
+ if (this.trustedCertPath != null) {
+ jsonWriter.writeUntypedField("trustedCertPath", this.trustedCertPath);
+ }
+ if (this.useSystemTrustStore != null) {
+ jsonWriter.writeUntypedField("useSystemTrustStore", this.useSystemTrustStore);
+ }
+ if (this.allowHostnameCNMismatch != null) {
+ jsonWriter.writeUntypedField("allowHostNameCNMismatch", this.allowHostnameCNMismatch);
+ }
+ if (this.allowSelfSignedServerCert != null) {
+ jsonWriter.writeUntypedField("allowSelfSignedServerCert", this.allowSelfSignedServerCert);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java
index 0e098a9f5d33..63acf869af69 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java
@@ -404,29 +404,71 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("server", server());
- jsonWriter.writeUntypedField("database", database());
- jsonWriter.writeUntypedField("encrypt", encrypt());
- jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
- jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
- jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
- jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
- jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
- jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
- jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
- jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
- jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
- jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
- jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
- jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
- jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
- jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
- jsonWriter.writeUntypedField("packetSize", packetSize());
- jsonWriter.writeUntypedField("pooling", pooling());
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ if (server() != null) {
+ jsonWriter.writeUntypedField("server", server());
+ }
+ if (database() != null) {
+ jsonWriter.writeUntypedField("database", database());
+ }
+ if (encrypt() != null) {
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ }
+ if (trustServerCertificate() != null) {
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ }
+ if (hostnameInCertificate() != null) {
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ }
+ if (applicationIntent() != null) {
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ }
+ if (connectTimeout() != null) {
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ }
+ if (connectRetryCount() != null) {
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ }
+ if (connectRetryInterval() != null) {
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ }
+ if (loadBalanceTimeout() != null) {
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ }
+ if (commandTimeout() != null) {
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ }
+ if (integratedSecurity() != null) {
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ }
+ if (failoverPartner() != null) {
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ }
+ if (maxPoolSize() != null) {
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ }
+ if (minPoolSize() != null) {
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ }
+ if (multipleActiveResultSets() != null) {
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ }
+ if (multiSubnetFailover() != null) {
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ }
+ if (packetSize() != null) {
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ }
+ if (pooling() != null) {
+ jsonWriter.writeUntypedField("pooling", pooling());
+ }
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java
index b99f01e1c67e..1a2f0efccc8f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java
@@ -99,7 +99,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("storedProcedureName", this.storedProcedureName);
- jsonWriter.writeUntypedField("storedProcedureParameters", this.storedProcedureParameters);
+ if (this.storedProcedureParameters != null) {
+ jsonWriter.writeUntypedField("storedProcedureParameters", this.storedProcedureParameters);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java
index eda34a65682a..ea53c3e05606 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java
@@ -118,9 +118,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java
index c63279fd5929..159f4d89dd1d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java
@@ -280,14 +280,28 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
- jsonWriter.writeUntypedField("host", this.host);
- jsonWriter.writeUntypedField("clientId", this.clientId);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
+ if (this.host != null) {
+ jsonWriter.writeUntypedField("host", this.host);
+ }
+ if (this.clientId != null) {
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ }
jsonWriter.writeJsonField("clientSecret", this.clientSecret);
- jsonWriter.writeUntypedField("redirectUri", this.redirectUri);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.redirectUri != null) {
+ jsonWriter.writeUntypedField("redirectUri", this.redirectUri);
+ }
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java
index 1b50ec67a0de..b9e8002db897 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java
@@ -96,7 +96,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("accessCredential", this.accessCredential);
- jsonWriter.writeUntypedField("logRefreshInterval", this.logRefreshInterval);
+ if (this.logRefreshInterval != null) {
+ jsonWriter.writeUntypedField("logRefreshInterval", this.logRefreshInterval);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java
index 9d629f978233..40746b6f4aca 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java
@@ -259,10 +259,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("packagePassword", this.packagePassword);
jsonWriter.writeJsonField("accessCredential", this.accessCredential);
- jsonWriter.writeUntypedField("configurationPath", this.configurationPath);
+ if (this.configurationPath != null) {
+ jsonWriter.writeUntypedField("configurationPath", this.configurationPath);
+ }
jsonWriter.writeJsonField("configurationAccessCredential", this.configurationAccessCredential);
jsonWriter.writeStringField("packageName", this.packageName);
- jsonWriter.writeUntypedField("packageContent", this.packageContent);
+ if (this.packageContent != null) {
+ jsonWriter.writeUntypedField("packageContent", this.packageContent);
+ }
jsonWriter.writeStringField("packageLastModifiedDate", this.packageLastModifiedDate);
jsonWriter.writeArrayField("childPackages", this.childPackages, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java
index 9c10577fcc75..8a6cb923d05e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java
@@ -234,10 +234,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("server", this.server);
jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java
index fbeccdd2d4e7..ba53fd0fc297 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java
@@ -61,7 +61,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseNotebookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseNotebookActivityTypeProperties.java
index c03762d09142..5a09cc0f457a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseNotebookActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseNotebookActivityTypeProperties.java
@@ -337,10 +337,18 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("notebook", this.notebook);
jsonWriter.writeJsonField("sparkPool", this.sparkPool);
jsonWriter.writeMapField("parameters", this.parameters, (writer, element) -> writer.writeJson(element));
- jsonWriter.writeUntypedField("executorSize", this.executorSize);
- jsonWriter.writeUntypedField("conf", this.conf);
- jsonWriter.writeUntypedField("driverSize", this.driverSize);
- jsonWriter.writeUntypedField("numExecutors", this.numExecutors);
+ if (this.executorSize != null) {
+ jsonWriter.writeUntypedField("executorSize", this.executorSize);
+ }
+ if (this.conf != null) {
+ jsonWriter.writeUntypedField("conf", this.conf);
+ }
+ if (this.driverSize != null) {
+ jsonWriter.writeUntypedField("driverSize", this.driverSize);
+ }
+ if (this.numExecutors != null) {
+ jsonWriter.writeUntypedField("numExecutors", this.numExecutors);
+ }
jsonWriter.writeStringField("configurationType",
this.configurationType == null ? null : this.configurationType.toString());
jsonWriter.writeJsonField("targetSparkConfiguration", this.targetSparkConfiguration);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java
index aee8169f53cf..ba1f71fb3e19 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java
@@ -506,18 +506,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("sparkJob", this.sparkJob);
jsonWriter.writeArrayField("args", this.arguments, (writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("file", this.file);
- jsonWriter.writeUntypedField("scanFolder", this.scanFolder);
- jsonWriter.writeUntypedField("className", this.className);
+ if (this.file != null) {
+ jsonWriter.writeUntypedField("file", this.file);
+ }
+ if (this.scanFolder != null) {
+ jsonWriter.writeUntypedField("scanFolder", this.scanFolder);
+ }
+ if (this.className != null) {
+ jsonWriter.writeUntypedField("className", this.className);
+ }
jsonWriter.writeArrayField("files", this.files, (writer, element) -> writer.writeUntyped(element));
jsonWriter.writeArrayField("pythonCodeReference", this.pythonCodeReference,
(writer, element) -> writer.writeUntyped(element));
jsonWriter.writeArrayField("filesV2", this.filesV2, (writer, element) -> writer.writeUntyped(element));
jsonWriter.writeJsonField("targetBigDataPool", this.targetBigDataPool);
- jsonWriter.writeUntypedField("executorSize", this.executorSize);
- jsonWriter.writeUntypedField("conf", this.conf);
- jsonWriter.writeUntypedField("driverSize", this.driverSize);
- jsonWriter.writeUntypedField("numExecutors", this.numExecutors);
+ if (this.executorSize != null) {
+ jsonWriter.writeUntypedField("executorSize", this.executorSize);
+ }
+ if (this.conf != null) {
+ jsonWriter.writeUntypedField("conf", this.conf);
+ }
+ if (this.driverSize != null) {
+ jsonWriter.writeUntypedField("driverSize", this.driverSize);
+ }
+ if (this.numExecutors != null) {
+ jsonWriter.writeUntypedField("numExecutors", this.numExecutors);
+ }
jsonWriter.writeStringField("configurationType",
this.configurationType == null ? null : this.configurationType.toString());
jsonWriter.writeJsonField("targetSparkConfiguration", this.targetSparkConfiguration);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java
index b31df3093bca..d3bf68e0b465 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java
@@ -216,7 +216,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
jsonWriter.writeUntypedField("url", this.url);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeJsonField("apiToken", this.apiToken);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java
index a80427922ade..2fa4c16ced4d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java
@@ -371,18 +371,36 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
- jsonWriter.writeUntypedField("username", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("username", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
- jsonWriter.writeUntypedField("sslMode", this.sslMode);
- jsonWriter.writeUntypedField("portNumber", this.portNumber);
- jsonWriter.writeUntypedField("httpsPortNumber", this.httpsPortNumber);
- jsonWriter.writeUntypedField("useDataEncryption", this.useDataEncryption);
- jsonWriter.writeUntypedField("characterSet", this.characterSet);
- jsonWriter.writeUntypedField("maxRespSize", this.maxRespSize);
+ if (this.sslMode != null) {
+ jsonWriter.writeUntypedField("sslMode", this.sslMode);
+ }
+ if (this.portNumber != null) {
+ jsonWriter.writeUntypedField("portNumber", this.portNumber);
+ }
+ if (this.httpsPortNumber != null) {
+ jsonWriter.writeUntypedField("httpsPortNumber", this.httpsPortNumber);
+ }
+ if (this.useDataEncryption != null) {
+ jsonWriter.writeUntypedField("useDataEncryption", this.useDataEncryption);
+ }
+ if (this.characterSet != null) {
+ jsonWriter.writeUntypedField("characterSet", this.characterSet);
+ }
+ if (this.maxRespSize != null) {
+ jsonWriter.writeUntypedField("maxRespSize", this.maxRespSize);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java
index 1e8238b794b4..6fa0cfc44dfc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java
@@ -86,8 +86,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("database", this.database);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java
index 6db347a95c8d..3e6c29c41459 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java
@@ -284,7 +284,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeIntField("maxConcurrency", this.maxConcurrency);
jsonWriter.writeStringField("endTime",
this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime));
- jsonWriter.writeUntypedField("delay", this.delay);
+ if (this.delay != null) {
+ jsonWriter.writeUntypedField("delay", this.delay);
+ }
jsonWriter.writeJsonField("retryPolicy", this.retryPolicy);
jsonWriter.writeArrayField("dependsOn", this.dependsOn, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java
index 11a0f362ad52..58a44e751a95 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java
@@ -141,7 +141,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("expression", this.expression);
jsonWriter.writeArrayField("activities", this.activities, (writer, element) -> writer.writeJson(element));
- jsonWriter.writeUntypedField("timeout", this.timeout);
+ if (this.timeout != null) {
+ jsonWriter.writeUntypedField("timeout", this.timeout);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java
index 71d49021d87d..56e0a160a976 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java
@@ -188,10 +188,18 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("dataset", this.dataset);
- jsonWriter.writeUntypedField("timeout", this.timeout);
- jsonWriter.writeUntypedField("sleep", this.sleep);
- jsonWriter.writeUntypedField("minimumSize", this.minimumSize);
- jsonWriter.writeUntypedField("childItems", this.childItems);
+ if (this.timeout != null) {
+ jsonWriter.writeUntypedField("timeout", this.timeout);
+ }
+ if (this.sleep != null) {
+ jsonWriter.writeUntypedField("sleep", this.sleep);
+ }
+ if (this.minimumSize != null) {
+ jsonWriter.writeUntypedField("minimumSize", this.minimumSize);
+ }
+ if (this.childItems != null) {
+ jsonWriter.writeUntypedField("childItems", this.childItems);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java
index 98ccae80c3f8..a2e8f67ec11a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java
@@ -113,9 +113,15 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("tableName", this.tableName);
- jsonWriter.writeUntypedField("table", this.table);
- jsonWriter.writeUntypedField("schema", this.schema);
+ if (this.tableName != null) {
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java
index 39f567a9f638..54a51379abc7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java
@@ -220,11 +220,21 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionString", this.connectionString);
- jsonWriter.writeUntypedField("server", this.server);
- jsonWriter.writeUntypedField("port", this.port);
- jsonWriter.writeUntypedField("uid", this.uid);
- jsonWriter.writeUntypedField("database", this.database);
+ if (this.connectionString != null) {
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ }
+ if (this.server != null) {
+ jsonWriter.writeUntypedField("server", this.server);
+ }
+ if (this.port != null) {
+ jsonWriter.writeUntypedField("port", this.port);
+ }
+ if (this.uid != null) {
+ jsonWriter.writeUntypedField("uid", this.uid);
+ }
+ if (this.database != null) {
+ jsonWriter.writeUntypedField("database", this.database);
+ }
jsonWriter.writeJsonField("pwd", this.pwd);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseLinkedServiceTypeProperties.java
index 2ad51c4fc746..d2d5ea213684 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseLinkedServiceTypeProperties.java
@@ -316,12 +316,20 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("artifactId", this.artifactId);
jsonWriter.writeUntypedField("endpoint", this.endpoint);
- jsonWriter.writeUntypedField("workspaceId", this.workspaceId);
- jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ if (this.workspaceId != null) {
+ jsonWriter.writeUntypedField("workspaceId", this.workspaceId);
+ }
+ if (this.servicePrincipalId != null) {
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ }
jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
- jsonWriter.writeUntypedField("tenant", this.tenant);
+ if (this.tenant != null) {
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
- jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ if (this.servicePrincipalCredentialType != null) {
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ }
jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseTableDatasetTypeProperties.java
index edf3f288af94..4cdd44950c20 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WarehouseTableDatasetTypeProperties.java
@@ -91,8 +91,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("schema", this.schema);
- jsonWriter.writeUntypedField("table", this.table);
+ if (this.schema != null) {
+ jsonWriter.writeUntypedField("schema", this.schema);
+ }
+ if (this.table != null) {
+ jsonWriter.writeUntypedField("table", this.table);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java
index 08a3be1ad6b1..88162b535199 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java
@@ -366,10 +366,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("method", this.method == null ? null : this.method.toString());
jsonWriter.writeUntypedField("url", this.url);
jsonWriter.writeMapField("headers", this.headers, (writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("body", this.body);
+ if (this.body != null) {
+ jsonWriter.writeUntypedField("body", this.body);
+ }
jsonWriter.writeJsonField("authentication", this.authentication);
jsonWriter.writeBooleanField("disableCertValidation", this.disableCertValidation);
- jsonWriter.writeUntypedField("httpRequestTimeout", this.httpRequestTimeout);
+ if (this.httpRequestTimeout != null) {
+ jsonWriter.writeUntypedField("httpRequestTimeout", this.httpRequestTimeout);
+ }
jsonWriter.writeBooleanField("turnOffAsync", this.turnOffAsync);
jsonWriter.writeArrayField("datasets", this.datasets, (writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("linkedServices", this.linkedServices,
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java
index e923944703f9..1bc87ed9f130 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java
@@ -101,7 +101,9 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeUntypedField("index", this.index);
- jsonWriter.writeUntypedField("path", this.path);
+ if (this.path != null) {
+ jsonWriter.writeUntypedField("path", this.path);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java
index c39bb7a716f6..6b75f973ef27 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java
@@ -256,9 +256,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("url", this.url);
jsonWriter.writeStringField("timeout", this.timeout);
jsonWriter.writeMapField("headers", this.headers, (writer, element) -> writer.writeUntyped(element));
- jsonWriter.writeUntypedField("body", this.body);
+ if (this.body != null) {
+ jsonWriter.writeUntypedField("body", this.body);
+ }
jsonWriter.writeJsonField("authentication", this.authentication);
- jsonWriter.writeUntypedField("reportStatusOnCallBack", this.reportStatusOnCallBack);
+ if (this.reportStatusOnCallBack != null) {
+ jsonWriter.writeUntypedField("reportStatusOnCallBack", this.reportStatusOnCallBack);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java
index 4719a05a75db..7cf96ed91627 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java
@@ -262,13 +262,23 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
- jsonWriter.writeUntypedField("host", this.host);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
+ if (this.host != null) {
+ jsonWriter.writeUntypedField("host", this.host);
+ }
jsonWriter.writeJsonField("consumerKey", this.consumerKey);
jsonWriter.writeJsonField("privateKey", this.privateKey);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java
index 1daec0d1c4ae..c67017a0e4e7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java
@@ -161,8 +161,12 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("location", this.location);
- jsonWriter.writeUntypedField("encodingName", this.encodingName);
- jsonWriter.writeUntypedField("nullValue", this.nullValue);
+ if (this.encodingName != null) {
+ jsonWriter.writeUntypedField("encodingName", this.encodingName);
+ }
+ if (this.nullValue != null) {
+ jsonWriter.writeUntypedField("nullValue", this.nullValue);
+ }
jsonWriter.writeJsonField("compression", this.compression);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java
index 3d35e39e1ad4..007a8b780617 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java
@@ -215,7 +215,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("authenticationType",
this.authenticationType == null ? null : this.authenticationType.toString());
jsonWriter.writeUntypedField("url", this.url);
- jsonWriter.writeUntypedField("userName", this.username);
+ if (this.username != null) {
+ jsonWriter.writeUntypedField("userName", this.username);
+ }
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeJsonField("apiToken", this.apiToken);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java
index 698302d0c149..53018762c8d5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java
@@ -228,12 +228,22 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
- jsonWriter.writeUntypedField("endpoint", this.endpoint);
+ if (this.connectionProperties != null) {
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ }
+ if (this.endpoint != null) {
+ jsonWriter.writeUntypedField("endpoint", this.endpoint);
+ }
jsonWriter.writeJsonField("accessToken", this.accessToken);
- jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
- jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
- jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ if (this.useEncryptedEndpoints != null) {
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ }
+ if (this.useHostVerification != null) {
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ }
+ if (this.usePeerVerification != null) {
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ }
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java
index 10179409b557..96dcfee4568e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Activity.java
@@ -358,6 +358,8 @@ public static Activity fromJson(JsonReader jsonReader) throws IOException {
return DatabricksSparkJarActivity.fromJson(readerToUse.reset());
} else if ("DatabricksSparkPython".equals(discriminatorValue)) {
return DatabricksSparkPythonActivity.fromJson(readerToUse.reset());
+ } else if ("DatabricksJob".equals(discriminatorValue)) {
+ return DatabricksJobActivity.fromJson(readerToUse.reset());
} else if ("AzureFunctionActivity".equals(discriminatorValue)) {
return AzureFunctionActivity.fromJson(readerToUse.reset());
} else if ("ExecuteDataFlow".equals(discriminatorValue)) {
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java
index 93d3d84679a7..3d04d4e141dc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ActivityPolicy.java
@@ -197,8 +197,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("timeout", this.timeout);
- jsonWriter.writeUntypedField("retry", this.retry);
+ if (this.timeout != null) {
+ jsonWriter.writeUntypedField("timeout", this.timeout);
+ }
+ if (this.retry != null) {
+ jsonWriter.writeUntypedField("retry", this.retry);
+ }
jsonWriter.writeNumberField("retryIntervalInSeconds", this.retryIntervalInSeconds);
jsonWriter.writeBooleanField("secureInput", this.secureInput);
jsonWriter.writeBooleanField("secureOutput", this.secureOutput);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java
index cf183e423579..fed2908ba3ce 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsObjectDataset.java
@@ -180,8 +180,12 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("linkedServiceName", linkedServiceName());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeUntypedField("structure", structure());
- jsonWriter.writeUntypedField("schema", schema());
+ if (structure() != null) {
+ jsonWriter.writeUntypedField("structure", structure());
+ }
+ if (schema() != null) {
+ jsonWriter.writeUntypedField("schema", schema());
+ }
jsonWriter.writeMapField("parameters", parameters(), (writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("annotations", annotations(), (writer, element) -> writer.writeUntyped(element));
jsonWriter.writeJsonField("folder", folder());
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java
index d38ffea70bf7..5ac5f9d62b6b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsSource.java
@@ -134,14 +134,28 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeUntypedField("sourceRetryCount", sourceRetryCount());
- jsonWriter.writeUntypedField("sourceRetryWait", sourceRetryWait());
- jsonWriter.writeUntypedField("maxConcurrentConnections", maxConcurrentConnections());
- jsonWriter.writeUntypedField("disableMetricsCollection", disableMetricsCollection());
- jsonWriter.writeUntypedField("queryTimeout", queryTimeout());
- jsonWriter.writeUntypedField("additionalColumns", additionalColumns());
+ if (sourceRetryCount() != null) {
+ jsonWriter.writeUntypedField("sourceRetryCount", sourceRetryCount());
+ }
+ if (sourceRetryWait() != null) {
+ jsonWriter.writeUntypedField("sourceRetryWait", sourceRetryWait());
+ }
+ if (maxConcurrentConnections() != null) {
+ jsonWriter.writeUntypedField("maxConcurrentConnections", maxConcurrentConnections());
+ }
+ if (disableMetricsCollection() != null) {
+ jsonWriter.writeUntypedField("disableMetricsCollection", disableMetricsCollection());
+ }
+ if (queryTimeout() != null) {
+ jsonWriter.writeUntypedField("queryTimeout", queryTimeout());
+ }
+ if (additionalColumns() != null) {
+ jsonWriter.writeUntypedField("additionalColumns", additionalColumns());
+ }
jsonWriter.writeStringField("type", this.type);
- jsonWriter.writeUntypedField("query", this.query);
+ if (this.query != null) {
+ jsonWriter.writeUntypedField("query", this.query);
+ }
if (additionalProperties() != null) {
for (Map.Entry additionalProperty : additionalProperties().entrySet()) {
jsonWriter.writeUntypedField(additionalProperty.getKey(), additionalProperty.getValue());
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java
new file mode 100644
index 000000000000..1be1d6eee83b
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datafactory.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0.
+ */
+public final class AmazonRdsForOracleAuthenticationType
+ extends ExpandableStringEnum {
+ /**
+ * Static value Basic for AmazonRdsForOracleAuthenticationType.
+ */
+ public static final AmazonRdsForOracleAuthenticationType BASIC = fromString("Basic");
+
+ /**
+ * Creates a new instance of AmazonRdsForOracleAuthenticationType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AmazonRdsForOracleAuthenticationType() {
+ }
+
+ /**
+ * Creates or finds a AmazonRdsForOracleAuthenticationType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AmazonRdsForOracleAuthenticationType.
+ */
+ public static AmazonRdsForOracleAuthenticationType fromString(String name) {
+ return fromString(name, AmazonRdsForOracleAuthenticationType.class);
+ }
+
+ /**
+ * Gets known AmazonRdsForOracleAuthenticationType values.
+ *
+ * @return known AmazonRdsForOracleAuthenticationType values.
+ */
+ public static Collection values() {
+ return values(AmazonRdsForOracleAuthenticationType.class);
+ }
+}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java
index 2eddd52b9c01..d5b0b3f0b4f0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java
@@ -16,7 +16,8 @@
import java.util.Map;
/**
- * AmazonRdsForOracle database.
+ * AmazonRdsForOracle database. This linked service has supported version property. The Version 1.0 is scheduled for
+ * deprecation while your pipeline will continue to run after EOL but without any bug fix or new features.
*/
@Fluent
public final class AmazonRdsForOracleLinkedService extends LinkedService {
@@ -102,7 +103,7 @@ public AmazonRdsForOracleLinkedService withAnnotations(List