diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
index 735dd6a5a4dee..cb51ed1b051a7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.31 (Unreleased)
+## 1.0.0-beta.1 (2024-11-15)
+
+- 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
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md
index afff5f187a489..2b2cdb55ab198 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.0.0-beta.30
+ 1.0.0-beta.31
```
[//]: # ({x-version-update-end})
@@ -72,30 +72,33 @@ See [API design][design] for general introduction on design and key concepts on
```java
// storage account
-StorageAccount storageAccount = storageManager.storageAccounts().define(STORAGE_ACCOUNT)
+StorageAccount storageAccount = storageManager.storageAccounts()
+ .define(STORAGE_ACCOUNT)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroup)
.create();
final String storageAccountKey = storageAccount.getKeys().iterator().next().value();
-final String connectionString = getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment());
+final String connectionString
+ = getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment());
// container
final String containerName = "adf";
-storageManager.blobContainers().defineContainer(containerName)
+storageManager.blobContainers()
+ .defineContainer(containerName)
.withExistingStorageAccount(resourceGroup, STORAGE_ACCOUNT)
.withPublicAccess(PublicAccess.NONE)
.create();
// blob as input
-BlobClient blobClient = new BlobClientBuilder()
- .connectionString(connectionString)
+BlobClient blobClient = new BlobClientBuilder().connectionString(connectionString)
.containerName(containerName)
.blobName("input/data.txt")
.buildClient();
blobClient.upload(BinaryData.fromString("data"));
// data factory
-Factory dataFactory = manager.factories().define(DATA_FACTORY)
+Factory dataFactory = manager.factories()
+ .define(DATA_FACTORY)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroup)
.create();
@@ -106,15 +109,16 @@ connectionStringProperty.put("type", "SecureString");
connectionStringProperty.put("value", connectionString);
final String linkedServiceName = "LinkedService";
-manager.linkedServices().define(linkedServiceName)
+manager.linkedServices()
+ .define(linkedServiceName)
.withExistingFactory(resourceGroup, DATA_FACTORY)
- .withProperties(new AzureStorageLinkedService()
- .withConnectionString(connectionStringProperty))
+ .withProperties(new AzureStorageLinkedService().withConnectionString(connectionStringProperty))
.create();
// input dataset
final String inputDatasetName = "InputDataset";
-manager.datasets().define(inputDatasetName)
+manager.datasets()
+ .define(inputDatasetName)
.withExistingFactory(resourceGroup, DATA_FACTORY)
.withProperties(new AzureBlobDataset()
.withLinkedServiceName(new LinkedServiceReference().withReferenceName(linkedServiceName))
@@ -125,7 +129,8 @@ manager.datasets().define(inputDatasetName)
// output dataset
final String outputDatasetName = "OutputDataset";
-manager.datasets().define(outputDatasetName)
+manager.datasets()
+ .define(outputDatasetName)
.withExistingFactory(resourceGroup, DATA_FACTORY)
.withProperties(new AzureBlobDataset()
.withLinkedServiceName(new LinkedServiceReference().withReferenceName(linkedServiceName))
@@ -135,14 +140,15 @@ manager.datasets().define(outputDatasetName)
.create();
// pipeline
-PipelineResource pipeline = manager.pipelines().define("CopyBlobPipeline")
+PipelineResource pipeline = manager.pipelines()
+ .define("CopyBlobPipeline")
.withExistingFactory(resourceGroup, DATA_FACTORY)
- .withActivities(Collections.singletonList(new CopyActivity()
- .withName("CopyBlob")
+ .withActivities(Collections.singletonList(new CopyActivity().withName("CopyBlob")
.withSource(new BlobSource())
.withSink(new BlobSink())
.withInputs(Collections.singletonList(new DatasetReference().withReferenceName(inputDatasetName)))
- .withOutputs(Collections.singletonList(new DatasetReference().withReferenceName(outputDatasetName)))))
+ .withOutputs(
+ Collections.singletonList(new DatasetReference().withReferenceName(outputDatasetName)))))
.create();
// run pipeline
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
index 74a9065b465d5..497193440a4bd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
@@ -46,13 +46,9 @@
0
0
true
+ false
-
- com.azure
- azure-json
- 1.3.0
-
com.azure
azure-core
@@ -63,6 +59,11 @@
azure-core-management
1.15.6
+
+ com.azure
+ azure-json
+ 1.3.0
+
com.azure
azure-core-test
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java
index 81e28abacde1c..ac431b8e989a3 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java
@@ -11,15 +11,15 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -43,8 +43,8 @@
import com.azure.resourcemanager.datafactory.implementation.OperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.PipelineRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.PipelinesImpl;
-import com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.PrivateEndPointConnectionsImpl;
+import com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.TriggersImpl;
@@ -66,8 +66,8 @@
import com.azure.resourcemanager.datafactory.models.Operations;
import com.azure.resourcemanager.datafactory.models.PipelineRuns;
import com.azure.resourcemanager.datafactory.models.Pipelines;
-import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations;
import com.azure.resourcemanager.datafactory.models.PrivateEndPointConnections;
+import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionOperations;
import com.azure.resourcemanager.datafactory.models.PrivateLinkResources;
import com.azure.resourcemanager.datafactory.models.TriggerRuns;
import com.azure.resourcemanager.datafactory.models.Triggers;
@@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
- .append("1.0.0-beta.30");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -327,7 +327,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
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 3f69aa1cc079d..afe99cf6139b6 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
@@ -363,7 +363,6 @@ public AmazonRdsForSqlServerLinkedServiceTypeProperties withPooling(Object pooli
*/
@Override
public void validate() {
- super.validate();
if (password() != null) {
password().validate();
}
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 fd1991ac18d97..6855193b6443f 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
@@ -23,6 +23,65 @@ public final class AzurePostgreSqlLinkedServiceTypeProperties
*/
private Object connectionString;
+ /*
+ * Server name for connection. Type: string.
+ */
+ private Object server;
+
+ /*
+ * The port for the connection. Type: integer.
+ */
+ private Object port;
+
+ /*
+ * Username for authentication. Type: string.
+ */
+ private Object username;
+
+ /*
+ * Database name for connection. Type: string.
+ */
+ private Object database;
+
+ /*
+ * SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full.
+ * Type: integer.
+ */
+ private Object sslMode;
+
+ /*
+ * The time to wait (in seconds) while trying to establish a connection before terminating the attempt and
+ * generating an error. Type: integer.
+ */
+ private Object timeout;
+
+ /*
+ * The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an
+ * error. Set to zero for infinity. Type: integer.
+ */
+ private Object commandTimeout;
+
+ /*
+ * Whether to trust the server certificate without validating it. Type: boolean.
+ */
+ private Object trustServerCertificate;
+
+ /*
+ * Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring
+ * large values from the database. Type: integer.
+ */
+ private Object readBufferSize;
+
+ /*
+ * Gets or sets the session timezone. Type: string.
+ */
+ private Object timezone;
+
+ /*
+ * Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string
+ */
+ private Object encoding;
+
/*
* The Azure key vault secret reference of password in connection string.
*/
@@ -62,6 +121,238 @@ public AzurePostgreSqlLinkedServiceTypeProperties withConnectionString(Object co
return this;
}
+ /**
+ * Get the server property: Server name for connection. Type: string.
+ *
+ * @return the server value.
+ */
+ public Object server() {
+ return this.server;
+ }
+
+ /**
+ * Set the server property: Server name for connection. Type: string.
+ *
+ * @param server the server value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withServer(Object server) {
+ this.server = server;
+ return this;
+ }
+
+ /**
+ * Get the port property: The port for the connection. Type: integer.
+ *
+ * @return the port value.
+ */
+ public Object port() {
+ return this.port;
+ }
+
+ /**
+ * Set the port property: The port for the connection. Type: integer.
+ *
+ * @param port the port value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withPort(Object port) {
+ this.port = port;
+ return this;
+ }
+
+ /**
+ * Get the username property: Username for authentication. Type: string.
+ *
+ * @return the username value.
+ */
+ public Object username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: Username for authentication. Type: string.
+ *
+ * @param username the username value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withUsername(Object username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the database property: Database name for connection. Type: string.
+ *
+ * @return the database value.
+ */
+ public Object database() {
+ return this.database;
+ }
+
+ /**
+ * Set the database property: Database name for connection. Type: string.
+ *
+ * @param database the database value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withDatabase(Object database) {
+ this.database = database;
+ return this;
+ }
+
+ /**
+ * Get the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4:
+ * verify-ca, 5: verify-full. Type: integer.
+ *
+ * @return the sslMode value.
+ */
+ public Object sslMode() {
+ return this.sslMode;
+ }
+
+ /**
+ * Set the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4:
+ * verify-ca, 5: verify-full. Type: integer.
+ *
+ * @param sslMode the sslMode value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withSslMode(Object sslMode) {
+ this.sslMode = sslMode;
+ return this;
+ }
+
+ /**
+ * Get the timeout property: The time to wait (in seconds) while trying to establish a connection before terminating
+ * the attempt and generating an error. Type: integer.
+ *
+ * @return the timeout value.
+ */
+ public Object timeout() {
+ return this.timeout;
+ }
+
+ /**
+ * Set the timeout property: The time to wait (in seconds) while trying to establish a connection before terminating
+ * the attempt and generating an error. Type: integer.
+ *
+ * @param timeout the timeout value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withTimeout(Object timeout) {
+ this.timeout = timeout;
+ return this;
+ }
+
+ /**
+ * Get the commandTimeout property: The time to wait (in seconds) while trying to execute a command before
+ * terminating the attempt and generating an error. Set to zero for infinity. Type: integer.
+ *
+ * @return the commandTimeout value.
+ */
+ public Object commandTimeout() {
+ return this.commandTimeout;
+ }
+
+ /**
+ * Set the commandTimeout property: The time to wait (in seconds) while trying to execute a command before
+ * terminating the attempt and generating an error. Set to zero for infinity. Type: integer.
+ *
+ * @param commandTimeout the commandTimeout value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withCommandTimeout(Object commandTimeout) {
+ this.commandTimeout = commandTimeout;
+ return this;
+ }
+
+ /**
+ * Get the trustServerCertificate property: Whether to trust the server certificate without validating it. Type:
+ * boolean.
+ *
+ * @return the trustServerCertificate value.
+ */
+ public Object trustServerCertificate() {
+ return this.trustServerCertificate;
+ }
+
+ /**
+ * Set the trustServerCertificate property: Whether to trust the server certificate without validating it. Type:
+ * boolean.
+ *
+ * @param trustServerCertificate the trustServerCertificate value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withTrustServerCertificate(Object trustServerCertificate) {
+ this.trustServerCertificate = trustServerCertificate;
+ return this;
+ }
+
+ /**
+ * Get the readBufferSize property: Determines the size of the internal buffer uses when reading. Increasing may
+ * improve performance if transferring large values from the database. Type: integer.
+ *
+ * @return the readBufferSize value.
+ */
+ public Object readBufferSize() {
+ return this.readBufferSize;
+ }
+
+ /**
+ * Set the readBufferSize property: Determines the size of the internal buffer uses when reading. Increasing may
+ * improve performance if transferring large values from the database. Type: integer.
+ *
+ * @param readBufferSize the readBufferSize value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withReadBufferSize(Object readBufferSize) {
+ this.readBufferSize = readBufferSize;
+ return this;
+ }
+
+ /**
+ * Get the timezone property: Gets or sets the session timezone. Type: string.
+ *
+ * @return the timezone value.
+ */
+ public Object timezone() {
+ return this.timezone;
+ }
+
+ /**
+ * Set the timezone property: Gets or sets the session timezone. Type: string.
+ *
+ * @param timezone the timezone value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withTimezone(Object timezone) {
+ this.timezone = timezone;
+ return this;
+ }
+
+ /**
+ * Get the encoding property: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string
+ * data. Type: string.
+ *
+ * @return the encoding value.
+ */
+ public Object encoding() {
+ return this.encoding;
+ }
+
+ /**
+ * Set the encoding property: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string
+ * data. Type: string.
+ *
+ * @param encoding the encoding value to set.
+ * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself.
+ */
+ public AzurePostgreSqlLinkedServiceTypeProperties withEncoding(Object encoding) {
+ this.encoding = encoding;
+ return this;
+ }
+
/**
* Get the password property: The Azure key vault secret reference of password in connection string.
*
@@ -122,6 +413,17 @@ public void validate() {
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);
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
@@ -145,6 +447,29 @@ public static AzurePostgreSqlLinkedServiceTypeProperties fromJson(JsonReader jso
if ("connectionString".equals(fieldName)) {
deserializedAzurePostgreSqlLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("server".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.server = reader.readUntyped();
+ } else if ("port".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.port = reader.readUntyped();
+ } else if ("username".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("database".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.database = reader.readUntyped();
+ } else if ("sslMode".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.sslMode = reader.readUntyped();
+ } else if ("timeout".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.timeout = reader.readUntyped();
+ } else if ("commandTimeout".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.commandTimeout = reader.readUntyped();
+ } else if ("trustServerCertificate".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.trustServerCertificate
+ = reader.readUntyped();
+ } else if ("readBufferSize".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.readBufferSize = reader.readUntyped();
+ } else if ("timezone".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.timezone = reader.readUntyped();
+ } else if ("encoding".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.encoding = reader.readUntyped();
} else if ("password".equals(fieldName)) {
deserializedAzurePostgreSqlLinkedServiceTypeProperties.password
= AzureKeyVaultSecretReference.fromJson(reader);
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 433233dc0aad0..664376a56f588 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
@@ -542,7 +542,6 @@ public AzureSqlDWLinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (password() != null) {
password().validate();
}
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 72fc89b3a3683..1a3516e04bb25 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
@@ -569,7 +569,6 @@ public AzureSqlDatabaseLinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (password() != null) {
password().validate();
}
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 6b4a1c2148ed3..ad6b6aa08c83b 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
@@ -568,7 +568,6 @@ public AzureSqlMILinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (password() != null) {
password().validate();
}
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 78c8768b0aff3..45b8db7cc344c 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
@@ -128,10 +128,15 @@ public AzureTableStorageLinkedServiceTypeProperties withEncryptedCredential(Stri
*/
@Override
public void validate() {
- super.validate();
if (credential() != null) {
credential().validate();
}
+ if (accountKey() != null) {
+ accountKey().validate();
+ }
+ if (sasToken() != null) {
+ sasToken().validate();
+ }
}
/**
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 33475bf2c7ef5..0141b19804282 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
@@ -5,6 +5,7 @@
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.JsonToken;
import com.azure.json.JsonWriter;
@@ -172,7 +173,6 @@ public ExecutePowerQueryActivityTypeProperties withSourceStagingConcurrency(Obje
*/
@Override
public void validate() {
- super.validate();
if (sinks() != null) {
sinks().values().forEach(e -> {
if (e != null) {
@@ -183,8 +183,29 @@ public void validate() {
if (queries() != null) {
queries().forEach(e -> e.validate());
}
+ if (dataFlow() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property dataFlow in model ExecutePowerQueryActivityTypeProperties"));
+ } else {
+ dataFlow().validate();
+ }
+ if (staging() != null) {
+ staging().validate();
+ }
+ if (integrationRuntime() != null) {
+ integrationRuntime().validate();
+ }
+ if (continuationSettings() != null) {
+ continuationSettings().validate();
+ }
+ if (compute() != null) {
+ compute().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(ExecutePowerQueryActivityTypeProperties.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java
index 3357e534d23be..f24ddea1be2f9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryInner.java
@@ -46,9 +46,9 @@ public final class FactoryInner extends Resource {
private Map additionalProperties;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -56,9 +56,9 @@ public final class FactoryInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FactoryInner class.
@@ -125,13 +125,13 @@ public FactoryInner withAdditionalProperties(Map additionalPrope
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -145,13 +145,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IcebergDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IcebergDatasetTypeProperties.java
new file mode 100644
index 0000000000000..2a52e9419c482
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IcebergDatasetTypeProperties.java
@@ -0,0 +1,107 @@
+// 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 com.azure.resourcemanager.datafactory.models.DatasetLocation;
+import java.io.IOException;
+
+/**
+ * Iceberg dataset properties.
+ */
+@Fluent
+public final class IcebergDatasetTypeProperties implements JsonSerializable {
+ /*
+ * The location of the iceberg storage. Setting a file name is not allowed for iceberg format.
+ */
+ private DatasetLocation location;
+
+ /**
+ * Creates an instance of IcebergDatasetTypeProperties class.
+ */
+ public IcebergDatasetTypeProperties() {
+ }
+
+ /**
+ * Get the location property: The location of the iceberg storage. Setting a file name is not allowed for iceberg
+ * format.
+ *
+ * @return the location value.
+ */
+ public DatasetLocation location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The location of the iceberg storage. Setting a file name is not allowed for iceberg
+ * format.
+ *
+ * @param location the location value to set.
+ * @return the IcebergDatasetTypeProperties object itself.
+ */
+ public IcebergDatasetTypeProperties withLocation(DatasetLocation location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (location() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property location in model IcebergDatasetTypeProperties"));
+ } else {
+ location().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(IcebergDatasetTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("location", this.location);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of IcebergDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of IcebergDatasetTypeProperties 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 IcebergDatasetTypeProperties.
+ */
+ public static IcebergDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ IcebergDatasetTypeProperties deserializedIcebergDatasetTypeProperties = new IcebergDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("location".equals(fieldName)) {
+ deserializedIcebergDatasetTypeProperties.location = DatasetLocation.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedIcebergDatasetTypeProperties;
+ });
+ }
+}
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 febd8c48bdd02..923af3f788344 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
@@ -19,7 +19,8 @@
public final class MariaDBLinkedServiceTypeProperties implements JsonSerializable {
/*
* The version of the MariaDB driver. Type: string. V1 or empty for legacy driver, V2 for new driver. V1 can support
- * connection string and property bag, V2 can only support connection string.
+ * connection string and property bag, V2 can only support connection string. The legacy driver is scheduled for
+ * deprecation by October 2024.
*/
private Object driverVersion;
@@ -48,6 +49,19 @@ public final class MariaDBLinkedServiceTypeProperties implements JsonSerializabl
*/
private Object database;
+ /*
+ * This option specifies whether the driver uses TLS encryption and verification when connecting to MariaDB. E.g.,
+ * SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / PREFERRED (1) (Default) / REQUIRED (2) / VERIFY_CA (3) /
+ * VERIFY_IDENTITY (4), REQUIRED (2) is recommended to only allow connections encrypted with SSL/TLS.
+ */
+ private Object sslMode;
+
+ /*
+ * This option specifies whether to use a CA certificate from the system trust store, or from a specified PEM file.
+ * E.g. UseSystemTrustStore=<0/1>; Options: Enabled (1) / Disabled (0) (Default)
+ */
+ private Object useSystemTrustStore;
+
/*
* The Azure key vault secret reference of password in connection string.
*/
@@ -67,7 +81,8 @@ public MariaDBLinkedServiceTypeProperties() {
/**
* Get the driverVersion property: The version of the MariaDB driver. Type: string. V1 or empty for legacy driver,
- * V2 for new driver. V1 can support connection string and property bag, V2 can only support connection string.
+ * V2 for new driver. V1 can support connection string and property bag, V2 can only support connection string. The
+ * legacy driver is scheduled for deprecation by October 2024.
*
* @return the driverVersion value.
*/
@@ -77,7 +92,8 @@ public Object driverVersion() {
/**
* Set the driverVersion property: The version of the MariaDB driver. Type: string. V1 or empty for legacy driver,
- * V2 for new driver. V1 can support connection string and property bag, V2 can only support connection string.
+ * V2 for new driver. V1 can support connection string and property bag, V2 can only support connection string. The
+ * legacy driver is scheduled for deprecation by October 2024.
*
* @param driverVersion the driverVersion value to set.
* @return the MariaDBLinkedServiceTypeProperties object itself.
@@ -189,6 +205,56 @@ public MariaDBLinkedServiceTypeProperties withDatabase(Object database) {
return this;
}
+ /**
+ * Get the sslMode property: This option specifies whether the driver uses TLS encryption and verification when
+ * connecting to MariaDB. E.g., SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / PREFERRED (1) (Default) /
+ * REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4), REQUIRED (2) is recommended to only allow connections
+ * encrypted with SSL/TLS.
+ *
+ * @return the sslMode value.
+ */
+ public Object sslMode() {
+ return this.sslMode;
+ }
+
+ /**
+ * Set the sslMode property: This option specifies whether the driver uses TLS encryption and verification when
+ * connecting to MariaDB. E.g., SSLMode=<0/1/2/3/4>. Options: DISABLED (0) / PREFERRED (1) (Default) /
+ * REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4), REQUIRED (2) is recommended to only allow connections
+ * encrypted with SSL/TLS.
+ *
+ * @param sslMode the sslMode value to set.
+ * @return the MariaDBLinkedServiceTypeProperties object itself.
+ */
+ public MariaDBLinkedServiceTypeProperties withSslMode(Object sslMode) {
+ this.sslMode = sslMode;
+ return this;
+ }
+
+ /**
+ * Get the useSystemTrustStore property: This option specifies whether to use a CA certificate from the system trust
+ * store, or from a specified PEM file. E.g. UseSystemTrustStore=<0/1>; Options: Enabled (1) / Disabled (0)
+ * (Default).
+ *
+ * @return the useSystemTrustStore value.
+ */
+ public Object useSystemTrustStore() {
+ return this.useSystemTrustStore;
+ }
+
+ /**
+ * Set the useSystemTrustStore property: This option specifies whether to use a CA certificate from the system trust
+ * store, or from a specified PEM file. E.g. UseSystemTrustStore=<0/1>; Options: Enabled (1) / Disabled (0)
+ * (Default).
+ *
+ * @param useSystemTrustStore the useSystemTrustStore value to set.
+ * @return the MariaDBLinkedServiceTypeProperties object itself.
+ */
+ public MariaDBLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) {
+ this.useSystemTrustStore = useSystemTrustStore;
+ return this;
+ }
+
/**
* Get the password property: The Azure key vault secret reference of password in connection string.
*
@@ -254,6 +320,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
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);
jsonWriter.writeJsonField("password", this.password);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
@@ -287,6 +355,10 @@ public static MariaDBLinkedServiceTypeProperties fromJson(JsonReader jsonReader)
deserializedMariaDBLinkedServiceTypeProperties.username = reader.readUntyped();
} else if ("database".equals(fieldName)) {
deserializedMariaDBLinkedServiceTypeProperties.database = reader.readUntyped();
+ } else if ("sslMode".equals(fieldName)) {
+ deserializedMariaDBLinkedServiceTypeProperties.sslMode = reader.readUntyped();
+ } else if ("useSystemTrustStore".equals(fieldName)) {
+ deserializedMariaDBLinkedServiceTypeProperties.useSystemTrustStore = reader.readUntyped();
} else if ("password".equals(fieldName)) {
deserializedMariaDBLinkedServiceTypeProperties.password
= AzureKeyVaultSecretReference.fromJson(reader);
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 c623d9ccaf2c6..61bc20c6709d6 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
@@ -69,6 +69,44 @@ public final class MySqlLinkedServiceTypeProperties implements JsonSerializable<
*/
private String encryptedCredential;
+ /*
+ * This allows the special “zero” date value 0000-00-00 to be retrieved from the database. Type: boolean.
+ */
+ private Object allowZeroDateTime;
+
+ /*
+ * The length of time (in seconds) to wait for a connection to the server before terminating the attempt and
+ * generating an error. Type: integer.
+ */
+ private Object connectionTimeout;
+
+ /*
+ * True to return DateTime.MinValue for date or datetime columns that have disallowed values. Type: boolean.
+ */
+ private Object convertZeroDateTime;
+
+ /*
+ * Determines which column type (if any) should be read as a GUID. Type: string. None: No column types are
+ * automatically read as a Guid; Char36: All CHAR(36) columns are read/written as a Guid using lowercase hex with
+ * hyphens, which matches UUID.
+ */
+ private Object guidFormat;
+
+ /*
+ * The path to the client’s SSL certificate file in PEM format. SslKey must also be specified. Type: string.
+ */
+ private Object sslCert;
+
+ /*
+ * The path to the client’s SSL private key in PEM format. SslCert must also be specified. Type: string.
+ */
+ private Object sslKey;
+
+ /*
+ * When set to true, TINYINT(1) values are returned as booleans. Type: bool.
+ */
+ private Object treatTinyAsBoolean;
+
/**
* Creates an instance of MySqlLinkedServiceTypeProperties class.
*/
@@ -285,6 +323,160 @@ public MySqlLinkedServiceTypeProperties withEncryptedCredential(String encrypted
return this;
}
+ /**
+ * Get the allowZeroDateTime property: This allows the special “zero” date value 0000-00-00 to be retrieved from the
+ * database. Type: boolean.
+ *
+ * @return the allowZeroDateTime value.
+ */
+ public Object allowZeroDateTime() {
+ return this.allowZeroDateTime;
+ }
+
+ /**
+ * Set the allowZeroDateTime property: This allows the special “zero” date value 0000-00-00 to be retrieved from the
+ * database. Type: boolean.
+ *
+ * @param allowZeroDateTime the allowZeroDateTime value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withAllowZeroDateTime(Object allowZeroDateTime) {
+ this.allowZeroDateTime = allowZeroDateTime;
+ return this;
+ }
+
+ /**
+ * Get the connectionTimeout property: The length of time (in seconds) to wait for a connection to the server before
+ * terminating the attempt and generating an error. Type: integer.
+ *
+ * @return the connectionTimeout value.
+ */
+ public Object connectionTimeout() {
+ return this.connectionTimeout;
+ }
+
+ /**
+ * Set the connectionTimeout property: The length of time (in seconds) to wait for a connection to the server before
+ * terminating the attempt and generating an error. Type: integer.
+ *
+ * @param connectionTimeout the connectionTimeout value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withConnectionTimeout(Object connectionTimeout) {
+ this.connectionTimeout = connectionTimeout;
+ return this;
+ }
+
+ /**
+ * Get the convertZeroDateTime property: True to return DateTime.MinValue for date or datetime columns that have
+ * disallowed values. Type: boolean.
+ *
+ * @return the convertZeroDateTime value.
+ */
+ public Object convertZeroDateTime() {
+ return this.convertZeroDateTime;
+ }
+
+ /**
+ * Set the convertZeroDateTime property: True to return DateTime.MinValue for date or datetime columns that have
+ * disallowed values. Type: boolean.
+ *
+ * @param convertZeroDateTime the convertZeroDateTime value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withConvertZeroDateTime(Object convertZeroDateTime) {
+ this.convertZeroDateTime = convertZeroDateTime;
+ return this;
+ }
+
+ /**
+ * Get the guidFormat property: Determines which column type (if any) should be read as a GUID. Type: string. None:
+ * No column types are automatically read as a Guid; Char36: All CHAR(36) columns are read/written as a Guid using
+ * lowercase hex with hyphens, which matches UUID.
+ *
+ * @return the guidFormat value.
+ */
+ public Object guidFormat() {
+ return this.guidFormat;
+ }
+
+ /**
+ * Set the guidFormat property: Determines which column type (if any) should be read as a GUID. Type: string. None:
+ * No column types are automatically read as a Guid; Char36: All CHAR(36) columns are read/written as a Guid using
+ * lowercase hex with hyphens, which matches UUID.
+ *
+ * @param guidFormat the guidFormat value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withGuidFormat(Object guidFormat) {
+ this.guidFormat = guidFormat;
+ return this;
+ }
+
+ /**
+ * Get the sslCert property: The path to the client’s SSL certificate file in PEM format. SslKey must also be
+ * specified. Type: string.
+ *
+ * @return the sslCert value.
+ */
+ public Object sslCert() {
+ return this.sslCert;
+ }
+
+ /**
+ * Set the sslCert property: The path to the client’s SSL certificate file in PEM format. SslKey must also be
+ * specified. Type: string.
+ *
+ * @param sslCert the sslCert value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withSslCert(Object sslCert) {
+ this.sslCert = sslCert;
+ return this;
+ }
+
+ /**
+ * Get the sslKey property: The path to the client’s SSL private key in PEM format. SslCert must also be specified.
+ * Type: string.
+ *
+ * @return the sslKey value.
+ */
+ public Object sslKey() {
+ return this.sslKey;
+ }
+
+ /**
+ * Set the sslKey property: The path to the client’s SSL private key in PEM format. SslCert must also be specified.
+ * Type: string.
+ *
+ * @param sslKey the sslKey value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withSslKey(Object sslKey) {
+ this.sslKey = sslKey;
+ return this;
+ }
+
+ /**
+ * Get the treatTinyAsBoolean property: When set to true, TINYINT(1) values are returned as booleans. Type: bool.
+ *
+ * @return the treatTinyAsBoolean value.
+ */
+ public Object treatTinyAsBoolean() {
+ return this.treatTinyAsBoolean;
+ }
+
+ /**
+ * Set the treatTinyAsBoolean property: When set to true, TINYINT(1) values are returned as booleans. Type: bool.
+ *
+ * @param treatTinyAsBoolean the treatTinyAsBoolean value to set.
+ * @return the MySqlLinkedServiceTypeProperties object itself.
+ */
+ public MySqlLinkedServiceTypeProperties withTreatTinyAsBoolean(Object treatTinyAsBoolean) {
+ this.treatTinyAsBoolean = treatTinyAsBoolean;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -312,6 +504,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
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);
return jsonWriter.writeEndObject();
}
@@ -352,6 +551,20 @@ public static MySqlLinkedServiceTypeProperties fromJson(JsonReader jsonReader) t
= AzureKeyVaultSecretReference.fromJson(reader);
} else if ("encryptedCredential".equals(fieldName)) {
deserializedMySqlLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("allowZeroDateTime".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.allowZeroDateTime = reader.readUntyped();
+ } else if ("connectionTimeout".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.connectionTimeout = reader.readUntyped();
+ } else if ("convertZeroDateTime".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.convertZeroDateTime = reader.readUntyped();
+ } else if ("guidFormat".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.guidFormat = reader.readUntyped();
+ } else if ("sslCert".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.sslCert = reader.readUntyped();
+ } else if ("sslKey".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.sslKey = reader.readUntyped();
+ } else if ("treatTinyAsBoolean".equals(fieldName)) {
+ deserializedMySqlLinkedServiceTypeProperties.treatTinyAsBoolean = reader.readUntyped();
} else {
reader.skipChildren();
}
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 81bcfed63827b..b925a32b49cc7 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
@@ -39,6 +39,11 @@ public final class PostgreSqlV2LinkedServiceTypeProperties
*/
private Object database;
+ /*
+ * The authentication type to use. Type: string.
+ */
+ private Object authenticationType;
+
/*
* SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full.
* Type: integer.
@@ -205,6 +210,26 @@ public PostgreSqlV2LinkedServiceTypeProperties withDatabase(Object database) {
return this;
}
+ /**
+ * Get the authenticationType property: The authentication type to use. Type: string.
+ *
+ * @return the authenticationType value.
+ */
+ public Object authenticationType() {
+ return this.authenticationType;
+ }
+
+ /**
+ * Set the authenticationType property: The authentication type to use. Type: string.
+ *
+ * @param authenticationType the authenticationType value to set.
+ * @return the PostgreSqlV2LinkedServiceTypeProperties object itself.
+ */
+ public PostgreSqlV2LinkedServiceTypeProperties withAuthenticationType(Object authenticationType) {
+ this.authenticationType = authenticationType;
+ return this;
+ }
+
/**
* Get the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4:
* verify-ca, 5: verify-full. Type: integer.
@@ -544,6 +569,11 @@ public void validate() {
.log(new IllegalArgumentException(
"Missing required property database in model PostgreSqlV2LinkedServiceTypeProperties"));
}
+ if (authenticationType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property authenticationType in model PostgreSqlV2LinkedServiceTypeProperties"));
+ }
if (sslMode() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -565,6 +595,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("server", this.server);
jsonWriter.writeUntypedField("username", this.username);
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);
@@ -607,6 +638,8 @@ public static PostgreSqlV2LinkedServiceTypeProperties fromJson(JsonReader jsonRe
deserializedPostgreSqlV2LinkedServiceTypeProperties.username = reader.readUntyped();
} else if ("database".equals(fieldName)) {
deserializedPostgreSqlV2LinkedServiceTypeProperties.database = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedPostgreSqlV2LinkedServiceTypeProperties.authenticationType = reader.readUntyped();
} else if ("sslMode".equals(fieldName)) {
deserializedPostgreSqlV2LinkedServiceTypeProperties.sslMode = reader.readUntyped();
} else if ("port".equals(fieldName)) {
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 4705f7807303c..fedce0d3a0067 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
@@ -80,6 +80,11 @@ public final class SnowflakeLinkedV2ServiceTypeProperties
*/
private SecretBase privateKeyPassphrase;
+ /*
+ * The host name of the Snowflake account.
+ */
+ private Object host;
+
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
@@ -345,6 +350,26 @@ public SnowflakeLinkedV2ServiceTypeProperties withPrivateKeyPassphrase(SecretBas
return this;
}
+ /**
+ * Get the host property: The host name of the Snowflake account.
+ *
+ * @return the host value.
+ */
+ public Object host() {
+ return this.host;
+ }
+
+ /**
+ * Set the host property: The host name of the Snowflake account.
+ *
+ * @param host the host value to set.
+ * @return the SnowflakeLinkedV2ServiceTypeProperties object itself.
+ */
+ public SnowflakeLinkedV2ServiceTypeProperties withHost(Object host) {
+ this.host = host;
+ return this;
+ }
+
/**
* Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
* using the integration runtime credential manager. Type: string.
@@ -423,6 +448,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeUntypedField("scope", this.scope);
jsonWriter.writeJsonField("privateKey", this.privateKey);
jsonWriter.writeJsonField("privateKeyPassphrase", this.privateKeyPassphrase);
+ jsonWriter.writeUntypedField("host", this.host);
jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
return jsonWriter.writeEndObject();
}
@@ -470,6 +496,8 @@ public static SnowflakeLinkedV2ServiceTypeProperties fromJson(JsonReader jsonRea
} else if ("privateKeyPassphrase".equals(fieldName)) {
deserializedSnowflakeLinkedV2ServiceTypeProperties.privateKeyPassphrase
= SecretBase.fromJson(reader);
+ } else if ("host".equals(fieldName)) {
+ deserializedSnowflakeLinkedV2ServiceTypeProperties.host = reader.readUntyped();
} else if ("encryptedCredential".equals(fieldName)) {
deserializedSnowflakeLinkedV2ServiceTypeProperties.encryptedCredential = reader.getString();
} else {
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 990d5cd8a59ed..0e098a9f5d335 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
@@ -387,7 +387,6 @@ public SqlServerLinkedServiceTypeProperties withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (password() != null) {
password().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java
index f7aa8ce115419..a8b083a34e5fa 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java
@@ -13,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollerFactory;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -42,8 +42,8 @@
import com.azure.resourcemanager.datafactory.fluent.OperationsClient;
import com.azure.resourcemanager.datafactory.fluent.PipelineRunsClient;
import com.azure.resourcemanager.datafactory.fluent.PipelinesClient;
-import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient;
import com.azure.resourcemanager.datafactory.fluent.PrivateEndPointConnectionsClient;
+import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient;
import com.azure.resourcemanager.datafactory.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.datafactory.fluent.TriggerRunsClient;
import com.azure.resourcemanager.datafactory.fluent.TriggersClient;
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java
index 99f1479a8f339..f66adc152159f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesImpl.java
@@ -23,8 +23,8 @@
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource;
-import com.azure.resourcemanager.datafactory.models.IntegrationRuntimes;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse;
+import com.azure.resourcemanager.datafactory.models.IntegrationRuntimes;
import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest;
public final class IntegrationRuntimesImpl implements IntegrationRuntimes {
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java
index fba65ca5e9094..021d88dc94d24 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsImpl.java
@@ -9,8 +9,8 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.fluent.PrivateEndPointConnectionsClient;
import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner;
-import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource;
import com.azure.resourcemanager.datafactory.models.PrivateEndPointConnections;
+import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource;
public final class PrivateEndPointConnectionsImpl implements PrivateEndPointConnections {
private static final ClientLogger LOGGER = new ClientLogger(PrivateEndPointConnectionsImpl.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java
index 538e0e23926c6..5e10c47079c83 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersImpl.java
@@ -16,8 +16,8 @@
import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters;
import com.azure.resourcemanager.datafactory.models.TriggerQueryResponse;
import com.azure.resourcemanager.datafactory.models.TriggerResource;
-import com.azure.resourcemanager.datafactory.models.Triggers;
import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus;
+import com.azure.resourcemanager.datafactory.models.Triggers;
public final class TriggersImpl implements Triggers {
private static final ClientLogger LOGGER = new ClientLogger(TriggersImpl.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java
index ff68f2f97f778..512620279e784 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonMwsLinkedService.java
@@ -347,7 +347,6 @@ public AmazonMwsLinkedService withEncryptedCredential(String encryptedCredential
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -355,6 +354,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonMwsLinkedService.class);
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 09b73f360d137..99c2a0397509e 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
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -147,12 +148,30 @@ public AmazonMwsObjectDataset withTableName(Object tableName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AmazonMwsObjectDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AmazonMwsObjectDataset.class);
+
/**
* {@inheritDoc}
*/
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 1b88c960675a3..d38ffea70bf7a 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
@@ -126,7 +126,6 @@ public AmazonMwsSource withDisableMetricsCollection(Object disableMetricsCollect
*/
@Override
public void validate() {
- super.validate();
}
/**
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 fb7a44d33c994..5159525138e6f 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
@@ -180,7 +180,6 @@ public AmazonRdsForOracleLinkedService withEncryptedCredential(String encryptedC
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -188,6 +187,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForOracleLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java
index 87214d2233f37..db3e4cebfd877 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleSource.java
@@ -219,7 +219,6 @@ public AmazonRdsForOracleSource withDisableMetricsCollection(Object disableMetri
*/
@Override
public void validate() {
- super.validate();
if (partitionSettings() != null) {
partitionSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java
index 3f9fe8b53d088..c3fd1789a9031 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -174,12 +175,30 @@ public AmazonRdsForOracleTableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AmazonRdsForOracleTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForOracleTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java
index 64ae768092a70..17c08c744cbbc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerLinkedService.java
@@ -753,7 +753,6 @@ public AmazonRdsForSqlServerLinkedService withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -761,6 +760,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForSqlServerLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java
index 6e30434c5c7d7..561ee63341ac0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java
@@ -288,7 +288,6 @@ public AmazonRdsForSqlServerSource withDisableMetricsCollection(Object disableMe
*/
@Override
public void validate() {
- super.validate();
if (partitionSettings() != null) {
partitionSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java
index 1f77c4e45bbbd..da262679c0697 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -174,12 +175,30 @@ public AmazonRdsForSqlServerTableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AmazonRdsForSqlServerTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForSqlServerTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java
index 6b6e5feeba8e9..664321c20a0ca 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftLinkedService.java
@@ -256,7 +256,6 @@ public AmazonRedshiftLinkedService withEncryptedCredential(String encryptedCrede
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -264,6 +263,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonRedshiftLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java
index 23df97e0dc0e5..08d34d374641a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftSource.java
@@ -155,7 +155,6 @@ public AmazonRedshiftSource withDisableMetricsCollection(Object disableMetricsCo
*/
@Override
public void validate() {
- super.validate();
if (redshiftUnloadSettings() != null) {
redshiftUnloadSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java
index 21486152a68b5..155e7ebc39ecf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRedshiftTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -195,12 +196,30 @@ public AmazonRedshiftTableDataset withSchemaTypePropertiesSchema(Object schema)
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AmazonRedshiftTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AmazonRedshiftTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java
index 411803d26e60c..2ee59166e1c25 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLinkedService.java
@@ -235,7 +235,6 @@ public AmazonS3CompatibleLinkedService withEncryptedCredential(String encryptedC
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -243,6 +242,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonS3CompatibleLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java
index 85879937f3eb9..1f54d89337aeb 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleLocation.java
@@ -117,7 +117,6 @@ public AmazonS3CompatibleLocation withFileName(Object fileName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java
index 9d1cbbaf6be73..313c59cb474c0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3CompatibleReadSettings.java
@@ -336,7 +336,6 @@ public AmazonS3CompatibleReadSettings withDisableMetricsCollection(Object disabl
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java
index dc2829d3cad8c..0ebae08a48abf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Dataset.java
@@ -317,7 +317,6 @@ public AmazonS3Dataset withCompression(DatasetCompression compression) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -325,6 +324,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AmazonS3Dataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonS3Dataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java
index e8ea532805739..9207009e9e01b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3LinkedService.java
@@ -257,7 +257,6 @@ public AmazonS3LinkedService withEncryptedCredential(String encryptedCredential)
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -265,6 +264,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonS3LinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java
index b49923bbb8789..e2c01e403b59b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3Location.java
@@ -115,7 +115,6 @@ public AmazonS3Location withFileName(Object fileName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java
index 24f4f0dd93b2a..e54b858e7d0d1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonS3ReadSettings.java
@@ -336,7 +336,6 @@ public AmazonS3ReadSettings withDisableMetricsCollection(Object disableMetricsCo
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java
index 0682491eb59a1..ac3b0fd777a57 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java
@@ -178,7 +178,6 @@ public AppFiguresLinkedService withClientKey(SecretBase clientKey) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -186,6 +185,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AppFiguresLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java
index c0d10f6a558d3..3cdbb8092dcc4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppendVariableActivity.java
@@ -164,7 +164,6 @@ public AppendVariableActivity withValue(Object value) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -172,6 +171,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model AppendVariableActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AppendVariableActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java
index 2724e680a1eff..3fda079f7f735 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AsanaLinkedService.java
@@ -155,7 +155,6 @@ public AsanaLinkedService withEncryptedCredential(String encryptedCredential) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -163,6 +162,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AsanaLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java
index 3b5c377401a53..0bc77de2553c2 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -195,12 +196,29 @@ public AvroDataset withAvroCompressionLevel(Integer avroCompressionLevel) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property linkedServiceName in model AvroDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AvroDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java
index 7dae87b63031f..6e0fa6a939422 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java
@@ -63,7 +63,6 @@ public AvroFormat withDeserializer(Object deserializer) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java
index 2811c35188a57..6b5e00799e79e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSink.java
@@ -149,7 +149,6 @@ public AvroSink withDisableMetricsCollection(Object disableMetricsCollection) {
*/
@Override
public void validate() {
- super.validate();
if (storeSettings() != null) {
storeSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java
index 797779349591b..828251184dfa8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroSource.java
@@ -134,7 +134,6 @@ public AvroSource withDisableMetricsCollection(Object disableMetricsCollection)
*/
@Override
public void validate() {
- super.validate();
if (storeSettings() != null) {
storeSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java
index e5d13d6b93ee5..7c27e01b0c6eb 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroWriteSettings.java
@@ -153,7 +153,6 @@ public AvroWriteSettings withFileNamePrefix(Object fileNamePrefix) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java
index c1a608f8aa74e..b6182b1f785d1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzPowerShellSetup.java
@@ -82,7 +82,6 @@ public AzPowerShellSetup withVersion(String version) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java
index 08cd8f8866226..c5e858da23aac 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java
@@ -270,7 +270,6 @@ public AzureBatchLinkedService withCredential(CredentialReference credential) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -278,6 +277,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureBatchLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java
index 4a81357629ce0..ffc4787586b97 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -291,12 +292,30 @@ public AzureBlobDataset withCompression(DatasetCompression compression) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureBlobDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureBlobDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java
index 0cc2e2f2bbfdb..89e0a7234b61b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -220,12 +221,30 @@ public AzureBlobFSDataset withCompression(DatasetCompression compression) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureBlobFSDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureBlobFSDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java
index 44b2f58c45af0..3f05388c1b401 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java
@@ -411,7 +411,6 @@ public AzureBlobFSLinkedService withSasToken(SecretBase sasToken) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -419,6 +418,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureBlobFSLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java
index 9b444f842b3f7..6cac1de79d00f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLocation.java
@@ -90,7 +90,6 @@ public AzureBlobFSLocation withFileName(Object fileName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java
index c4673ffa065c2..ae28792935428 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSReadSettings.java
@@ -309,7 +309,6 @@ public AzureBlobFSReadSettings withDisableMetricsCollection(Object disableMetric
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java
index 91aed7fee1b31..18b13377c8d45 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSink.java
@@ -155,7 +155,6 @@ public AzureBlobFSSink withDisableMetricsCollection(Object disableMetricsCollect
*/
@Override
public void validate() {
- super.validate();
if (metadata() != null) {
metadata().forEach(e -> e.validate());
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java
index 299d0a649acd1..76e5e971bd9ea 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSSource.java
@@ -161,7 +161,6 @@ public AzureBlobFSSource withDisableMetricsCollection(Object disableMetricsColle
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java
index db03a50b421dc..5e16f8fe55250 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSWriteSettings.java
@@ -109,7 +109,9 @@ public AzureBlobFSWriteSettings withMetadata(List metadata) {
*/
@Override
public void validate() {
- super.validate();
+ if (metadata() != null) {
+ metadata().forEach(e -> e.validate());
+ }
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java
index f9fdca757d67c..d4c861b8d6bef 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java
@@ -454,7 +454,6 @@ public AzureBlobStorageLinkedService withContainerUri(Object containerUri) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -462,6 +461,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureBlobStorageLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java
index f34879047cfa4..96876a9a04f32 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLocation.java
@@ -90,7 +90,6 @@ public AzureBlobStorageLocation withFileName(Object fileName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java
index 1b0bac54a7055..350df778c7bce 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageReadSettings.java
@@ -336,7 +336,6 @@ public AzureBlobStorageReadSettings withDisableMetricsCollection(Object disableM
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java
index 0b8f73036dcf8..ff3afd542e630 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageWriteSettings.java
@@ -109,7 +109,9 @@ public AzureBlobStorageWriteSettings withMetadata(List metadata) {
*/
@Override
public void validate() {
- super.validate();
+ if (metadata() != null) {
+ metadata().forEach(e -> e.validate());
+ }
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java
index 65c1e5f4799cf..3c3cdc81913e1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerCommandActivity.java
@@ -185,7 +185,6 @@ public AzureDataExplorerCommandActivity withCommandTimeout(Object commandTimeout
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -193,6 +192,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property name in model AzureDataExplorerCommandActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerCommandActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java
index f16b7e22195c9..b43bc692ca401 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java
@@ -254,7 +254,6 @@ public AzureDataExplorerLinkedService withCredential(CredentialReference credent
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -262,6 +261,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java
index 0b1cdcf3a01e4..1e8d54809ba9f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSink.java
@@ -180,7 +180,6 @@ public AzureDataExplorerSink withDisableMetricsCollection(Object disableMetricsC
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java
index 47269e42e4e8c..a2e8dc25c90fa 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerSource.java
@@ -194,7 +194,6 @@ public AzureDataExplorerSource withDisableMetricsCollection(Object disableMetric
*/
@Override
public void validate() {
- super.validate();
if (query() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property query in model AzureDataExplorerSource"));
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java
index 38e867ff243f5..3f0b6913d812c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerTableDataset.java
@@ -150,7 +150,6 @@ public AzureDataExplorerTableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -158,6 +157,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureDataExplorerTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerTableDataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java
index 9c18cfffbeb57..c2f297c9efe9e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeAnalyticsLinkedService.java
@@ -308,7 +308,6 @@ public AzureDataLakeAnalyticsLinkedService withEncryptedCredential(String encryp
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -316,6 +315,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeAnalyticsLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java
index 51252a28d078b..e43c42bc62b5f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -220,12 +221,30 @@ public AzureDataLakeStoreDataset withCompression(DatasetCompression compression)
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureDataLakeStoreDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeStoreDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java
index 6cc99147827f8..e591059b69606 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLinkedService.java
@@ -356,7 +356,6 @@ public AzureDataLakeStoreLinkedService withCredential(CredentialReference creden
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -364,6 +363,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeStoreLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java
index 19666aec20c81..3f14656369090 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreLocation.java
@@ -63,7 +63,6 @@ public AzureDataLakeStoreLocation withFileName(Object fileName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java
index 3948f9203502e..bb2952de7736f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreReadSettings.java
@@ -369,7 +369,6 @@ public AzureDataLakeStoreReadSettings withDisableMetricsCollection(Object disabl
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java
index 5dd39463572a7..2287fff59c717 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSink.java
@@ -151,7 +151,6 @@ public AzureDataLakeStoreSink withDisableMetricsCollection(Object disableMetrics
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java
index 439a567f0b373..619dca745a2eb 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreSource.java
@@ -109,7 +109,6 @@ public AzureDataLakeStoreSource withDisableMetricsCollection(Object disableMetri
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java
index c0788778cae8f..2330a488ad971 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataLakeStoreWriteSettings.java
@@ -112,7 +112,9 @@ public AzureDataLakeStoreWriteSettings withMetadata(List metadata)
*/
@Override
public void validate() {
- super.validate();
+ if (metadata() != null) {
+ metadata().forEach(e -> e.validate());
+ }
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java
index ec5b45e09a500..428216d7a8fff 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -170,12 +171,30 @@ public AzureDatabricksDeltaLakeDataset withDatabase(Object database) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureDatabricksDeltaLakeDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksDeltaLakeDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java
index 2b4a0d517774c..edf1b11259f0a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeExportCommand.java
@@ -101,7 +101,6 @@ public AzureDatabricksDeltaLakeExportCommand withTimestampFormat(Object timestam
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java
index 8ad6957b6b32b..32e59dfc5df33 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeImportCommand.java
@@ -101,7 +101,6 @@ public AzureDatabricksDeltaLakeImportCommand withTimestampFormat(Object timestam
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java
index 0595517c9229d..9193468475c03 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeLinkedService.java
@@ -258,7 +258,6 @@ public AzureDatabricksDeltaLakeLinkedService withWorkspaceResourceId(Object work
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -266,6 +265,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksDeltaLakeLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java
index 9fc1e73abb031..8c0e6d6ceb849 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSink.java
@@ -149,7 +149,6 @@ public AzureDatabricksDeltaLakeSink withDisableMetricsCollection(Object disableM
*/
@Override
public void validate() {
- super.validate();
if (importSettings() != null) {
importSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java
index ce05fb71c6d75..2253ae058442b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksDeltaLakeSource.java
@@ -133,7 +133,6 @@ public AzureDatabricksDeltaLakeSource withDisableMetricsCollection(Object disabl
*/
@Override
public void validate() {
- super.validate();
if (exportSettings() != null) {
exportSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java
index ee0c0227291c3..48a52f60eaafc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java
@@ -593,7 +593,6 @@ public AzureDatabricksLinkedService withCredential(CredentialReference credentia
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -601,6 +600,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java
index c4b52acaea6f4..2d7665831b082 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLinkedService.java
@@ -396,7 +396,6 @@ public AzureFileStorageLinkedService withCredential(CredentialReference credenti
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -404,6 +403,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFileStorageLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java
index ed0bc0346ec18..1646d189d8753 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageLocation.java
@@ -63,7 +63,6 @@ public AzureFileStorageLocation withFileName(Object fileName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java
index 88d9eb22d025f..1ae956621d31c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageReadSettings.java
@@ -337,7 +337,6 @@ public AzureFileStorageReadSettings withDisableMetricsCollection(Object disableM
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java
index 90db664622137..8cc7de1145bf5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFileStorageWriteSettings.java
@@ -82,7 +82,9 @@ public AzureFileStorageWriteSettings withMetadata(List metadata) {
*/
@Override
public void validate() {
- super.validate();
+ if (metadata() != null) {
+ metadata().forEach(e -> e.validate());
+ }
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java
index 764fac37fb245..e4dfcf36263a0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java
@@ -234,7 +234,6 @@ public AzureFunctionActivity withBody(Object body) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -242,6 +241,22 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model AzureFunctionActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java
index 2c4cd612a09b1..0fa3d9d576919 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionLinkedService.java
@@ -254,7 +254,6 @@ public AzureFunctionLinkedService withAuthentication(Object authentication) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -262,6 +261,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java
index bf8c259828cec..a98624549ef75 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultLinkedService.java
@@ -156,7 +156,6 @@ public AzureKeyVaultLinkedService withCredential(CredentialReference credential)
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -164,6 +163,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureKeyVaultLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java
index e96c8c8368f10..c2e0883c8683e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureKeyVaultSecretReference.java
@@ -124,7 +124,6 @@ public AzureKeyVaultSecretReference withSecretVersion(Object secretVersion) {
*/
@Override
public void validate() {
- super.validate();
if (store() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java
index c25efa96ab977..b5b6910ae7dbf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLBatchExecutionActivity.java
@@ -216,7 +216,6 @@ public AzureMLBatchExecutionActivity withWebServiceInputs(Map e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLBatchExecutionActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java
index 9411b35e943ff..505c9855beaa3 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLExecutePipelineActivity.java
@@ -347,7 +347,6 @@ public AzureMLExecutePipelineActivity withContinueOnStepFailure(Object continueO
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -355,6 +354,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property name in model AzureMLExecutePipelineActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLExecutePipelineActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java
index 9de423c45547f..3fe8daf7f6330 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLLinkedService.java
@@ -305,7 +305,6 @@ public AzureMLLinkedService withAuthentication(Object authentication) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -313,6 +312,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java
index f4d72e4467157..2aa50b3f6fb88 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLServiceLinkedService.java
@@ -308,7 +308,6 @@ public AzureMLServiceLinkedService withEncryptedCredential(String encryptedCrede
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -316,6 +315,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLServiceLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java
index c3260c0eb9258..9ba22cad6fa73 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMLUpdateResourceActivity.java
@@ -213,7 +213,6 @@ public AzureMLUpdateResourceActivity withTrainedModelFilePath(Object trainedMode
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -221,6 +220,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property name in model AzureMLUpdateResourceActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLUpdateResourceActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java
index 3090c25136b44..5cddb8d1fb027 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBLinkedService.java
@@ -180,7 +180,6 @@ public AzureMariaDBLinkedService withEncryptedCredential(String encryptedCredent
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -188,6 +187,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMariaDBLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java
index a704e9b8a8391..8ce75bab28351 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBSource.java
@@ -126,7 +126,6 @@ public AzureMariaDBSource withDisableMetricsCollection(Object disableMetricsColl
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java
index cfc08e2e36b1a..cb67a40c9bcae 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMariaDBTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -147,12 +148,30 @@ public AzureMariaDBTableDataset withTableName(Object tableName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureMariaDBTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureMariaDBTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java
index 8cc535568380a..15fc6d298e101 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlLinkedService.java
@@ -180,7 +180,6 @@ public AzureMySqlLinkedService withEncryptedCredential(String encryptedCredentia
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -188,6 +187,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMySqlLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java
index 0127452a37ec3..6c0a2f178160e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSink.java
@@ -126,7 +126,6 @@ public AzureMySqlSink withDisableMetricsCollection(Object disableMetricsCollecti
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java
index 2790e8e0ff994..a5eca8b3155f2 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlSource.java
@@ -124,7 +124,6 @@ public AzureMySqlSource withDisableMetricsCollection(Object disableMetricsCollec
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java
index 753271bdb271d..52611337cf032 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureMySqlTableDataset.java
@@ -175,7 +175,6 @@ public AzureMySqlTableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -183,6 +182,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureMySqlTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMySqlTableDataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java
index 2e28c589aa4df..1e1387cf77682 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlLinkedService.java
@@ -126,6 +126,271 @@ public AzurePostgreSqlLinkedService withConnectionString(Object connectionString
return this;
}
+ /**
+ * Get the server property: Server name for connection. Type: string.
+ *
+ * @return the server value.
+ */
+ public Object server() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server();
+ }
+
+ /**
+ * Set the server property: Server name for connection. Type: string.
+ *
+ * @param server the server value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withServer(Object server) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withServer(server);
+ return this;
+ }
+
+ /**
+ * Get the port property: The port for the connection. Type: integer.
+ *
+ * @return the port value.
+ */
+ public Object port() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port();
+ }
+
+ /**
+ * Set the port property: The port for the connection. Type: integer.
+ *
+ * @param port the port value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withPort(Object port) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withPort(port);
+ return this;
+ }
+
+ /**
+ * Get the username property: Username for authentication. Type: string.
+ *
+ * @return the username value.
+ */
+ public Object username() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username();
+ }
+
+ /**
+ * Set the username property: Username for authentication. Type: string.
+ *
+ * @param username the username value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withUsername(Object username) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withUsername(username);
+ return this;
+ }
+
+ /**
+ * Get the database property: Database name for connection. Type: string.
+ *
+ * @return the database value.
+ */
+ public Object database() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database();
+ }
+
+ /**
+ * Set the database property: Database name for connection. Type: string.
+ *
+ * @param database the database value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withDatabase(Object database) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withDatabase(database);
+ return this;
+ }
+
+ /**
+ * Get the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4:
+ * verify-ca, 5: verify-full. Type: integer.
+ *
+ * @return the sslMode value.
+ */
+ public Object sslMode() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sslMode();
+ }
+
+ /**
+ * Set the sslMode property: SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4:
+ * verify-ca, 5: verify-full. Type: integer.
+ *
+ * @param sslMode the sslMode value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withSslMode(Object sslMode) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withSslMode(sslMode);
+ return this;
+ }
+
+ /**
+ * Get the timeout property: The time to wait (in seconds) while trying to establish a connection before terminating
+ * the attempt and generating an error. Type: integer.
+ *
+ * @return the timeout value.
+ */
+ public Object timeout() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout();
+ }
+
+ /**
+ * Set the timeout property: The time to wait (in seconds) while trying to establish a connection before terminating
+ * the attempt and generating an error. Type: integer.
+ *
+ * @param timeout the timeout value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withTimeout(Object timeout) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withTimeout(timeout);
+ return this;
+ }
+
+ /**
+ * Get the commandTimeout property: The time to wait (in seconds) while trying to execute a command before
+ * terminating the attempt and generating an error. Set to zero for infinity. Type: integer.
+ *
+ * @return the commandTimeout value.
+ */
+ public Object commandTimeout() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandTimeout();
+ }
+
+ /**
+ * Set the commandTimeout property: The time to wait (in seconds) while trying to execute a command before
+ * terminating the attempt and generating an error. Set to zero for infinity. Type: integer.
+ *
+ * @param commandTimeout the commandTimeout value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withCommandTimeout(Object commandTimeout) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withCommandTimeout(commandTimeout);
+ return this;
+ }
+
+ /**
+ * Get the trustServerCertificate property: Whether to trust the server certificate without validating it. Type:
+ * boolean.
+ *
+ * @return the trustServerCertificate value.
+ */
+ public Object trustServerCertificate() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustServerCertificate();
+ }
+
+ /**
+ * Set the trustServerCertificate property: Whether to trust the server certificate without validating it. Type:
+ * boolean.
+ *
+ * @param trustServerCertificate the trustServerCertificate value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withTrustServerCertificate(Object trustServerCertificate) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withTrustServerCertificate(trustServerCertificate);
+ return this;
+ }
+
+ /**
+ * Get the readBufferSize property: Determines the size of the internal buffer uses when reading. Increasing may
+ * improve performance if transferring large values from the database. Type: integer.
+ *
+ * @return the readBufferSize value.
+ */
+ public Object readBufferSize() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().readBufferSize();
+ }
+
+ /**
+ * Set the readBufferSize property: Determines the size of the internal buffer uses when reading. Increasing may
+ * improve performance if transferring large values from the database. Type: integer.
+ *
+ * @param readBufferSize the readBufferSize value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withReadBufferSize(Object readBufferSize) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withReadBufferSize(readBufferSize);
+ return this;
+ }
+
+ /**
+ * Get the timezone property: Gets or sets the session timezone. Type: string.
+ *
+ * @return the timezone value.
+ */
+ public Object timezone() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timezone();
+ }
+
+ /**
+ * Set the timezone property: Gets or sets the session timezone. Type: string.
+ *
+ * @param timezone the timezone value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withTimezone(Object timezone) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withTimezone(timezone);
+ return this;
+ }
+
+ /**
+ * Get the encoding property: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string
+ * data. Type: string.
+ *
+ * @return the encoding value.
+ */
+ public Object encoding() {
+ return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encoding();
+ }
+
+ /**
+ * Set the encoding property: Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string
+ * data. Type: string.
+ *
+ * @param encoding the encoding value to set.
+ * @return the AzurePostgreSqlLinkedService object itself.
+ */
+ public AzurePostgreSqlLinkedService withEncoding(Object encoding) {
+ if (this.innerTypeProperties() == null) {
+ this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties();
+ }
+ this.innerTypeProperties().withEncoding(encoding);
+ return this;
+ }
+
/**
* Get the password property: The Azure key vault secret reference of password in connection string.
*
@@ -181,7 +446,6 @@ public AzurePostgreSqlLinkedService withEncryptedCredential(String encryptedCred
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -189,6 +453,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzurePostgreSqlLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java
index 6a0c41ee8e5a0..ac49a64ee80ea 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSink.java
@@ -126,7 +126,6 @@ public AzurePostgreSqlSink withDisableMetricsCollection(Object disableMetricsCol
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java
index 903e12771fa10..ba665bb74f491 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlSource.java
@@ -126,7 +126,6 @@ public AzurePostgreSqlSource withDisableMetricsCollection(Object disableMetricsC
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java
index aee04ae66b8fb..15cac38073811 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzurePostgreSqlTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -199,12 +200,30 @@ public AzurePostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema)
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzurePostgreSqlTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzurePostgreSqlTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java
index de929ce0a4082..7ad3d1b7edf77 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureQueueSink.java
@@ -99,7 +99,6 @@ public AzureQueueSink withDisableMetricsCollection(Object disableMetricsCollecti
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java
index 6133b503e8f9a..3d4a16adebc1b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexDataset.java
@@ -150,7 +150,6 @@ public AzureSearchIndexDataset withIndexName(Object indexName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -158,6 +157,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureSearchIndexDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSearchIndexDataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java
index a2992c67408ba..309cc26ecefbd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchIndexSink.java
@@ -124,7 +124,6 @@ public AzureSearchIndexSink withDisableMetricsCollection(Object disableMetricsCo
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java
index b11f1c40d28fa..3aa3da094e8db 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSearchLinkedService.java
@@ -178,7 +178,6 @@ public AzureSearchLinkedService withEncryptedCredential(String encryptedCredenti
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -186,6 +185,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSearchLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java
index ba1cb8ed4dff0..12ea89b990998 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWLinkedService.java
@@ -908,7 +908,6 @@ public AzureSqlDWLinkedService withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -916,6 +915,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDWLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java
index e8a4d18f14433..5124974d8297d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDWTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -199,12 +200,30 @@ public AzureSqlDWTableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureSqlDWTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDWTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java
index 2b76745566dd0..284a874ae70a5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlDatabaseLinkedService.java
@@ -933,7 +933,6 @@ public AzureSqlDatabaseLinkedService withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -941,6 +940,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSqlDatabaseLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java
index 0aabc9b904ba1..f3445755b518a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMILinkedService.java
@@ -931,7 +931,6 @@ public AzureSqlMILinkedService withPooling(Object pooling) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -939,6 +938,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSqlMILinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java
index bfd1336740b26..bfabc96c627a2 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlMITableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -199,12 +200,30 @@ public AzureSqlMITableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureSqlMITableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureSqlMITableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java
index e7eee9242f294..94a62b53ec7b2 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java
@@ -336,7 +336,6 @@ public AzureSqlSink withDisableMetricsCollection(Object disableMetricsCollection
*/
@Override
public void validate() {
- super.validate();
if (upsertSettings() != null) {
upsertSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java
index d3085da25ed57..51835b638dcb6 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java
@@ -290,7 +290,6 @@ public AzureSqlSource withDisableMetricsCollection(Object disableMetricsCollecti
*/
@Override
public void validate() {
- super.validate();
if (partitionSettings() != null) {
partitionSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java
index e0f6130c11d19..71d18e566ad1e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -199,12 +200,30 @@ public AzureSqlTableDataset withTable(Object table) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureSqlTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureSqlTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java
index 4af6fc9e25b39..25c7f42a7f342 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageLinkedService.java
@@ -228,7 +228,6 @@ public AzureStorageLinkedService withEncryptedCredential(String encryptedCredent
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -236,6 +235,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureStorageLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java
index 1f199dc828afb..2b4f9a1080cb0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java
@@ -185,7 +185,6 @@ public AzureSynapseArtifactsLinkedService withWorkspaceResourceId(Object workspa
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -193,6 +192,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSynapseArtifactsLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java
index f67725680ac0f..994ae32ca696f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java
@@ -150,7 +150,6 @@ public AzureTableDataset withTableName(Object tableName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -158,6 +157,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model AzureTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureTableDataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java
index 85b16b5cdb0eb..a63b70b720ec9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSink.java
@@ -207,7 +207,6 @@ public AzureTableSink withDisableMetricsCollection(Object disableMetricsCollecti
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java
index caab346587905..dad1b7bdc715c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableSource.java
@@ -153,7 +153,6 @@ public AzureTableSource withDisableMetricsCollection(Object disableMetricsCollec
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java
index dee22f518618b..3b4c417c23e7a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableStorageLinkedService.java
@@ -277,7 +277,6 @@ public AzureTableStorageLinkedService withEncryptedCredential(String encryptedCr
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -285,6 +284,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureTableStorageLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java
index f90626cc26ae2..bc35c87d2eaf9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -170,12 +171,30 @@ public BinaryDataset withCompression(DatasetCompression compression) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(
+ new IllegalArgumentException("Missing required property linkedServiceName in model BinaryDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(BinaryDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java
index 1fd740db67039..66a51443013ee 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryReadSettings.java
@@ -70,7 +70,6 @@ public BinaryReadSettings withCompressionProperties(CompressionReadSettings comp
*/
@Override
public void validate() {
- super.validate();
if (compressionProperties() != null) {
compressionProperties().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java
index accc6687a0d8b..cefaf7eed3279 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySink.java
@@ -124,7 +124,6 @@ public BinarySink withDisableMetricsCollection(Object disableMetricsCollection)
*/
@Override
public void validate() {
- super.validate();
if (storeSettings() != null) {
storeSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java
index 26946eb81f636..5f4f334311253 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinarySource.java
@@ -131,7 +131,6 @@ public BinarySource withDisableMetricsCollection(Object disableMetricsCollection
*/
@Override
public void validate() {
- super.validate();
if (storeSettings() != null) {
storeSettings().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java
index f1bb5c49b7ab4..1682a54a609e1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobEventsTrigger.java
@@ -228,7 +228,6 @@ public BlobEventsTrigger withScope(String scope) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -236,6 +235,9 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (pipelines() != null) {
+ pipelines().forEach(e -> e.validate());
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(BlobEventsTrigger.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java
index ae0f5cdc84c91..7c0841c32e122 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSink.java
@@ -234,7 +234,6 @@ public BlobSink withDisableMetricsCollection(Object disableMetricsCollection) {
*/
@Override
public void validate() {
- super.validate();
if (metadata() != null) {
metadata().forEach(e -> e.validate());
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java
index cb2e66a15d990..ea56ebacfc51a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobSource.java
@@ -161,7 +161,6 @@ public BlobSource withDisableMetricsCollection(Object disableMetricsCollection)
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java
index b009180bd5fbc..b4b59d0486b35 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BlobTrigger.java
@@ -174,7 +174,6 @@ public BlobTrigger withLinkedService(LinkedServiceReference linkedService) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(
@@ -182,6 +181,9 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (pipelines() != null) {
+ pipelines().forEach(e -> e.validate());
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(BlobTrigger.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java
index 0dd199707fffe..05bac2a6b96a1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraLinkedService.java
@@ -249,7 +249,6 @@ public CassandraLinkedService withEncryptedCredential(String encryptedCredential
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -257,6 +256,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CassandraLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java
index 35566c058cd80..5bb09655bf5be 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraSource.java
@@ -161,7 +161,6 @@ public CassandraSource withDisableMetricsCollection(Object disableMetricsCollect
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java
index 68d99ff5d5500..90f52a2dc3b12 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CassandraTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -174,12 +175,30 @@ public CassandraTableDataset withKeyspace(Object keyspace) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model CassandraTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(CassandraTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java
index e9642f4327669..e23d9c06a1153 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ChainingTrigger.java
@@ -170,7 +170,6 @@ public ChainingTrigger withRunDimension(String runDimension) {
*/
@Override
public void validate() {
- super.validate();
if (pipeline() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property pipeline in model ChainingTrigger"));
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java
index 7bc36097c2293..270a80016abe9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CmdkeySetup.java
@@ -128,7 +128,6 @@ public CmdkeySetup withPassword(SecretBase password) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java
index f9dae7b68f469..f9be1bb372551 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsEntityDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -147,12 +148,30 @@ public CommonDataServiceForAppsEntityDataset withEntityName(Object entityName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model CommonDataServiceForAppsEntityDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(CommonDataServiceForAppsEntityDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java
index 8a81af343a148..db466737d9db7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsLinkedService.java
@@ -448,7 +448,6 @@ public CommonDataServiceForAppsLinkedService withEncryptedCredential(String encr
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -456,6 +455,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CommonDataServiceForAppsLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java
index f9bf70fabe3d7..3f32d5c544e13 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSink.java
@@ -181,7 +181,6 @@ public CommonDataServiceForAppsSink withDisableMetricsCollection(Object disableM
*/
@Override
public void validate() {
- super.validate();
if (writeBehavior() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java
index 63e7f7a98e9ea..d20dece9e63f5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CommonDataServiceForAppsSource.java
@@ -137,7 +137,6 @@ public CommonDataServiceForAppsSource withDisableMetricsCollection(Object disabl
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java
index 754e8a58ce314..814dfcb7f605b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ComponentSetup.java
@@ -105,7 +105,6 @@ public ComponentSetup withLicenseKey(SecretBase licenseKey) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java
index 8f35344918f55..fa93f869f7093 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurLinkedService.java
@@ -301,7 +301,6 @@ public ConcurLinkedService withEncryptedCredential(String encryptedCredential) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -309,6 +308,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(ConcurLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java
index 90e7c4eeab857..9c7b83424701b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurObjectDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -147,12 +148,30 @@ public ConcurObjectDataset withTableName(Object tableName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model ConcurObjectDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(ConcurObjectDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java
index 0cf89b089f7b8..955da0a951773 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConcurSource.java
@@ -126,7 +126,6 @@ public ConcurSource withDisableMetricsCollection(Object disableMetricsCollection
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java
index b9903066b4a15..1761e6cb15aaa 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ControlActivity.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -100,9 +101,20 @@ public ControlActivity withUserProperties(List userProperties) {
*/
@Override
public void validate() {
- super.validate();
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model ControlActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(ControlActivity.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java
index 14e242a7406d5..d51febf07754c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyActivity.java
@@ -544,7 +544,6 @@ public CopyActivity withSkipErrorFile(SkipErrorFile skipErrorFile) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -558,6 +557,22 @@ public void validate() {
if (outputs() != null) {
outputs().forEach(e -> e.validate());
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model CopyActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CopyActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java
index b8205018c528c..a771d228461b0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopySink.java
@@ -308,6 +308,8 @@ public static CopySink fromJson(JsonReader jsonReader) throws IOException {
return ParquetSink.fromJson(readerToUse.reset());
} else if ("BinarySink".equals(discriminatorValue)) {
return BinarySink.fromJson(readerToUse.reset());
+ } else if ("IcebergSink".equals(discriminatorValue)) {
+ return IcebergSink.fromJson(readerToUse.reset());
} else if ("BlobSink".equals(discriminatorValue)) {
return BlobSink.fromJson(readerToUse.reset());
} else if ("FileSystemSink".equals(discriminatorValue)) {
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java
index a99102e6bd24c..5198d707e3bbf 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbLinkedService.java
@@ -407,7 +407,6 @@ public CosmosDbLinkedService withCredential(CredentialReference credential) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -415,6 +414,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CosmosDbLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java
index 5704355290fbd..2a2ce33501738 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiCollectionDataset.java
@@ -151,7 +151,6 @@ public CosmosDbMongoDbApiCollectionDataset withCollection(Object collection) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -159,6 +158,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model CosmosDbMongoDbApiCollectionDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CosmosDbMongoDbApiCollectionDataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java
index 39581470fbd8a..b1a15b40f8174 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiLinkedService.java
@@ -183,7 +183,6 @@ public CosmosDbMongoDbApiLinkedService withDatabase(Object database) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -191,6 +190,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CosmosDbMongoDbApiLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java
index 08a47c009d0d2..2cb5180d9d68c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSink.java
@@ -130,7 +130,6 @@ public CosmosDbMongoDbApiSink withDisableMetricsCollection(Object disableMetrics
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java
index 3f319408b95c1..b17d2d38c0387 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbMongoDbApiSource.java
@@ -225,7 +225,6 @@ public CosmosDbMongoDbApiSource withDisableMetricsCollection(Object disableMetri
*/
@Override
public void validate() {
- super.validate();
if (cursorMethods() != null) {
cursorMethods().validate();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java
index 1b228d0139d0b..2b6fd31fe90c4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiCollectionDataset.java
@@ -151,7 +151,6 @@ public CosmosDbSqlApiCollectionDataset withCollectionName(Object collectionName)
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -159,6 +158,23 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model CosmosDbSqlApiCollectionDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CosmosDbSqlApiCollectionDataset.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java
index eafdaa294c1a2..64f1c6e43a386 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSink.java
@@ -127,7 +127,6 @@ public CosmosDbSqlApiSink withDisableMetricsCollection(Object disableMetricsColl
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java
index db4d3769dc71c..4516b23e46ce3 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CosmosDbSqlApiSource.java
@@ -213,7 +213,6 @@ public CosmosDbSqlApiSource withDisableMetricsCollection(Object disableMetricsCo
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java
index 367ad448049bb..dd20990b21cbd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseLinkedService.java
@@ -180,7 +180,6 @@ public CouchbaseLinkedService withEncryptedCredential(String encryptedCredential
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -188,6 +187,16 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (connectVia() != null) {
+ connectVia().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CouchbaseLinkedService.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java
index 3b83054d25e15..fbc83d1000e59 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseSource.java
@@ -126,7 +126,6 @@ public CouchbaseSource withDisableMetricsCollection(Object disableMetricsCollect
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java
index e94a9b171d654..02d1e4791e8fe 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CouchbaseTableDataset.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -147,12 +148,30 @@ public CouchbaseTableDataset withTableName(Object tableName) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() != null) {
innerTypeProperties().validate();
}
+ if (linkedServiceName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property linkedServiceName in model CouchbaseTableDataset"));
+ } else {
+ linkedServiceName().validate();
+ }
+ if (parameters() != null) {
+ parameters().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (folder() != null) {
+ folder().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(CouchbaseTableDataset.class);
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java
index 9b37846fa5c47..3b59dea4867ce 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomActivity.java
@@ -303,7 +303,6 @@ public CustomActivity withAutoUserSpecification(Object autoUserSpecification) {
*/
@Override
public void validate() {
- super.validate();
if (innerTypeProperties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -311,6 +310,22 @@ public void validate() {
} else {
innerTypeProperties().validate();
}
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model CustomActivity"));
+ }
+ if (dependsOn() != null) {
+ dependsOn().forEach(e -> e.validate());
+ }
+ if (userProperties() != null) {
+ userProperties().forEach(e -> e.validate());
+ }
+ if (linkedServiceName() != null) {
+ linkedServiceName().validate();
+ }
+ if (policy() != null) {
+ policy().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CustomActivity.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java
index 9e5205a4fb66d..f3497f63b735a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomDataSourceLinkedService.java
@@ -117,12 +117,21 @@ public CustomDataSourceLinkedService withAnnotations(List